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 TypeMethodDescriptionvoid
fromJSON
(org.json.JSONObject json) boolean
get
(int key) int
boolean
boolean
boolean
int
void
reset()
void
set
(int key, boolean value) void
setConnectionColor
(Color color) void
setConnectionPointColor
(Color color) void
setCornerRadius
(int radius) void
setDrawBackground
(boolean drawBackgroundGrid) void
setDrawCursor
(boolean drawCursor) void
setDrawOrigin
(boolean drawOrigin) void
setGridSize
(int GRID_SIZE) void
setNodeColorBackground
(Color color) void
setNodeColorBorder
(Color color) void
setNodeColorFontClean
(Color color) void
setNodeColorFontDirty
(Color color) void
setNodeColorInternalBorder
(Color color) void
setNodeColorProgressBar
(Color color) void
setNodeColorTitleBackground
(Color color) void
setNodeColorTitleFont
(Color color) void
setPanelColorBackground
(Color color) void
setPanelGridColor
(Color color) org.json.JSONObject
toJSON()
-
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)
-