|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.jfimagine.jfdraw.gui.GlobalSettings
Global settings class. A class used to place global settings.
| Method Summary | |
Arrow |
getArrow()
get arrow format |
CanvasFormat |
getCanvasFormat()
get canvas format |
FillFormat |
getFillFormat()
get fill format |
FontFormat |
getFontFormat()
get font format |
java.lang.String |
getGlobalPath()
get the global path for open and save files. |
static GlobalSettings |
getInstance()
|
LineFormat |
getLineFormat()
get line format |
int |
getMeasure()
get measure type, english or metric |
int |
getScaleUnit()
Get the scale unit, a scale unit is something like << 1cm = 100 * [scaleUnit] >> |
double |
getScaleValue()
Get the scale value, a scale value is something like << 1cm = [scaleValue] * km >> |
int |
getScreenUnit()
Get the screen unit, a screen unit is something like << 1 * [screenUnit] = 1000 * meter >> We only allowed CM or INch for current screen unit. |
boolean |
isDisablePortSnapping()
if assigned disable port snapping. |
boolean |
isExportWithGrid()
Get if user would like to export/print graph with grid. |
boolean |
isExportWithRuler()
Get if user would like to export/print graph with ruler. |
boolean |
isHidePorts()
if assigned hidding ports . |
boolean |
isMetric()
Get if current measurement is metric or english |
void |
loadConfigFile()
Read content from a text config file. |
void |
setArrow(Arrow arrow)
set arrow format |
void |
setCanvasFormat(CanvasFormat canvasFormat)
set canvas format |
void |
setDisablePortSnapping(boolean disable)
set if hide or show ports. |
void |
setExportWithGrid(boolean withGrid)
Set export with grid, or not. |
void |
setExportWithRuler(boolean withRuler)
Set export with ruler, or not. |
void |
setFillFormat(FillFormat fillFormat)
set fill format |
void |
setFontFormat(FontFormat fontFormat)
set font format |
void |
setGlobalPath(java.lang.String path)
Set the global path. |
void |
setHidePorts(boolean hide)
set if hide or show ports. |
void |
setLineFormat(LineFormat lineFormat)
set line format |
void |
setMeasure(int measure)
set measure type, english or metric |
void |
setScaleUnit(int unit)
Set the scale unit |
void |
setScaleValue(double scale)
Set the scale value |
void |
setScreenUnit(int unit)
Set the screen unit We only allowed CM or INch for current screen unit. |
void |
writeConfigFile()
save text config file from current global settings definition. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public int getMeasure()
public void setMeasure(int measure)
measure - A new measurement type.public boolean isMetric()
public boolean isHidePorts()
public void setHidePorts(boolean hide)
public boolean isDisablePortSnapping()
public void setDisablePortSnapping(boolean disable)
public double getScaleValue()
public void setScaleValue(double scale)
scale - A new scale valuepublic int getScaleUnit()
public void setScaleUnit(int unit)
unit - A new scale unitpublic int getScreenUnit()
public void setScreenUnit(int unit)
unit - A new screen unitpublic java.lang.String getGlobalPath()
public void setGlobalPath(java.lang.String path)
path - A new global path.public boolean isExportWithGrid()
public void setExportWithGrid(boolean withGrid)
withGrid - if export with grid.public boolean isExportWithRuler()
public void setExportWithRuler(boolean withRuler)
withRuler - if export with ruler.public Arrow getArrow()
public void setArrow(Arrow arrow)
public LineFormat getLineFormat()
public void setLineFormat(LineFormat lineFormat)
public FillFormat getFillFormat()
public void setFillFormat(FillFormat fillFormat)
public FontFormat getFontFormat()
public void setFontFormat(FontFormat fontFormat)
public CanvasFormat getCanvasFormat()
public void setCanvasFormat(CanvasFormat canvasFormat)
public static GlobalSettings getInstance()
public void loadConfigFile()
public void writeConfigFile()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||