Public Member Functions | |
Object | clone () |
void | decLineWidth () |
DrawSettings () | |
int | getLineWidth () |
Color | getOverrideColor () |
DrawSettings | getTemporaryOverride (Color overrideColor) |
void | incLineWidth () |
void | setLineWidth (int lineWidth) |
void | setOverrideColor (Color overrideColor) |
Public Attributes | |
DrawType | drawType |
boolean | forceDraw = false |
Private Attributes | |
int | lineWidth = 1 |
Color | overrideColor |
General settings used for drawing triangles, lines and vertices. This class is used to override the default appearance of a triangle.
Definition at line 19 of file DrawSettings.java.
edu.tum.cs.vis.model.util.DrawSettings.DrawSettings | ( | ) | [inline] |
Default constructor. Initializes DrawSettings with default values which don't override the appearance.
Definition at line 24 of file DrawSettings.java.
Object edu.tum.cs.vis.model.util.DrawSettings.clone | ( | ) | [inline] |
Definition at line 88 of file DrawSettings.java.
void edu.tum.cs.vis.model.util.DrawSettings.decLineWidth | ( | ) | [inline] |
Decrease the line width for draw type lines (minimum is 1).
Definition at line 56 of file DrawSettings.java.
int edu.tum.cs.vis.model.util.DrawSettings.getLineWidth | ( | ) | [inline] |
Returns the current line width.
Definition at line 67 of file DrawSettings.java.
Color edu.tum.cs.vis.model.util.DrawSettings.getOverrideColor | ( | ) | [inline] |
Definition at line 116 of file DrawSettings.java.
DrawSettings edu.tum.cs.vis.model.util.DrawSettings.getTemporaryOverride | ( | Color | overrideColor | ) | [inline] |
Clones the calling draw settings object and sets the override color of the cloned object to the given one. The cloned object is then returned.
overrideColor | The new override color for the cloned object. |
Definition at line 107 of file DrawSettings.java.
void edu.tum.cs.vis.model.util.DrawSettings.incLineWidth | ( | ) | [inline] |
Increase the line width for draw type lines.
Definition at line 49 of file DrawSettings.java.
void edu.tum.cs.vis.model.util.DrawSettings.setLineWidth | ( | int | lineWidth | ) | [inline] |
lineWidth | the lineWidth to set |
Definition at line 83 of file DrawSettings.java.
void edu.tum.cs.vis.model.util.DrawSettings.setOverrideColor | ( | Color | overrideColor | ) | [inline] |
overrideColor | the overrideColor to set |
Definition at line 75 of file DrawSettings.java.
Type of drawing (only for triangles): filled, lines, points
Definition at line 36 of file DrawSettings.java.
boolean edu.tum.cs.vis.model.util.DrawSettings.forceDraw = false |
Forces the annotation or triangle to draw, even if it is unselected from the annotation list.
Definition at line 44 of file DrawSettings.java.
int edu.tum.cs.vis.model.util.DrawSettings.lineWidth = 1 [private] |
Line width for draw type lines
Definition at line 40 of file DrawSettings.java.
Color edu.tum.cs.vis.model.util.DrawSettings.overrideColor [private] |
Override color. If set, it overrides the appearance color.
Definition at line 32 of file DrawSettings.java.