java.lang.Objectucot.ui.gui.dot.DotColorModel
public class DotColorModel
Class that implements a color model used in dot graph drawing environment. This model can be used for both main colors and highlights.
Nested Class Summary | |
---|---|
static class |
DotColorModel.ColorModel
ColorModel sets available for using with Dot |
Field Summary | |
---|---|
private static DotColorModel.ColorModel |
DEFAULT_COLOR
|
private java.lang.String |
edgeColor
|
private java.lang.String |
fillColor
|
private java.lang.String |
fontColor
|
private DotColorModel.ColorModel |
model
|
Constructor Summary | |
---|---|
private |
DotColorModel(java.lang.String drawColor,
java.lang.String fillColor)
Constructor for quick color model initialization. |
private |
DotColorModel(java.lang.String edgeColor,
java.lang.String fillColor,
java.lang.String fontColor)
Constructor which sets all the colors as specified. |
Method Summary | |
---|---|
private static DotColorModel |
blackOnWhite()
This static method creates a black text on white background dot color model. |
private static DotColorModel |
blue()
This static method creates a blue dot color model. |
static DotColorModel |
color(DotColorModel.ColorModel colorModel)
Static method for creating a color model from available sets. |
static DotColorModel |
color(java.lang.String colorModel)
Static method for creating a color model from available sets. |
java.lang.String |
getEdgeColor()
Method for acquiring the edge color. |
java.lang.String |
getFillColor()
Method for acquiring the fill color. |
java.lang.String |
getFontColor()
Method for acquiring the font color. |
java.lang.String |
getModel()
Method for acquiring the name of the current model. |
private static DotColorModel |
green()
This static method creates a green dot color model. |
private static DotColorModel |
red()
This static method creates a red dot color model. |
private static DotColorModel |
whiteOnBlack()
This static method creates a white text on black background dot color model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final DotColorModel.ColorModel DEFAULT_COLOR
private java.lang.String edgeColor
private java.lang.String fillColor
private java.lang.String fontColor
private DotColorModel.ColorModel model
Constructor Detail |
---|
private DotColorModel(java.lang.String edgeColor, java.lang.String fillColor, java.lang.String fontColor)
Constructor which sets all the colors as specified.
edgeColor
- Color
of edges in the graph.fillColor
- Color
for filling the elements on the graph.
Can also be used for graph background.fontColor
- Text color.private DotColorModel(java.lang.String drawColor, java.lang.String fillColor)
Constructor for quick color model initialization.
drawColor
- Color
for all edges and text in the graph.fillColor
- Background color for the whole graph and
all elements.Method Detail |
---|
public java.lang.String getEdgeColor()
Method for acquiring the edge color.
public java.lang.String getFillColor()
Method for acquiring the fill color.
public java.lang.String getFontColor()
Method for acquiring the font color.
public java.lang.String getModel()
Method for acquiring the name of the current model.
private static DotColorModel blue()
This static method creates a blue dot color model.
private static DotColorModel green()
This static method creates a green dot color model.
private static DotColorModel blackOnWhite()
This static method creates a black text on white background dot color model.
private static DotColorModel whiteOnBlack()
This static method creates a white text on black background dot color model.
private static DotColorModel red()
This static method creates a red dot color model.
public static DotColorModel color(DotColorModel.ColorModel colorModel)
Static method for creating a color model from available sets.
public static DotColorModel color(java.lang.String colorModel)
Static method for creating a color model from available sets.