Class GraphViewSettings
java.lang.Object
com.marginallyclever.donatello.graphview.GraphViewSettings
This class holds the settings for the
GraphViewPanel class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfromJSON(org.json.JSONObject json) booleanget(int key) intbooleanbooleanbooleanintvoidreset()voidset(int key, boolean value) voidsetConnectionColor(Color color) voidsetConnectionPointColor(Color color) voidsetCornerRadius(int radius) voidsetDrawBackground(boolean drawBackgroundGrid) voidsetDrawCursor(boolean drawCursor) voidsetDrawOrigin(boolean drawOrigin) voidsetGridSize(int GRID_SIZE) voidsetNodeColorBackground(Color color) voidsetNodeColorBorder(Color color) voidsetNodeColorFontClean(Color color) voidsetNodeColorFontDirty(Color color) voidsetNodeColorInternalBorder(Color color) voidsetNodeColorProgressBar(Color color) voidsetNodeColorTitleBackground(Color color) voidsetNodeColorTitleFont(Color color) voidsetPanelColorBackground(Color color) voidsetPanelGridColor(Color color) org.json.JSONObjecttoJSON()
-
Constructor Details
-
GraphViewSettings
public GraphViewSettings()
-
-
Method Details
-
reset
public void reset() -
get
public boolean get(int key) -
set
public void set(int key, boolean value) -
toJSON
public org.json.JSONObject toJSON() -
fromJSON
- Throws:
IOException
-
getNodeColorBackground
-
setNodeColorBackground
-
getNodeColorBorder
-
setNodeColorBorder
-
getNodeColorInternalBorder
-
setNodeColorInternalBorder
-
getPanelColorBackground
-
setPanelColorBackground
-
getPanelGridColor
-
setPanelGridColor
-
getGridSize
public int getGridSize() -
setGridSize
public void setGridSize(int GRID_SIZE) -
getNodeColorFontClean
-
setNodeColorFontClean
-
getNodeColorFontDirty
-
setNodeColorFontDirty
-
getNodeColorTitleFont
-
setNodeColorTitleFont
-
getNodeColorTitleBackground
-
getNodeColorProgressBar
-
setNodeColorTitleBackground
-
setNodeColorProgressBar
-
getConnectionPointColor
-
setConnectionPointColor
-
getConnectionColor
-
setConnectionColor
-
getCornerRadius
public int getCornerRadius() -
setCornerRadius
public void setCornerRadius(int radius) -
getDrawBackgroundGrid
public boolean getDrawBackgroundGrid() -
setDrawBackground
public void setDrawBackground(boolean drawBackgroundGrid) -
getDrawCursor
public boolean getDrawCursor() -
setDrawCursor
public void setDrawCursor(boolean drawCursor) -
getDrawOrigin
public boolean getDrawOrigin() -
setDrawOrigin
public void setDrawOrigin(boolean drawOrigin)
-