|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.ui.graphicGraph.stylesheet.StyleConstants
public class StyleConstants
The various constants and static constant conversion methods used for styling.
Nested Class Summary | |
---|---|
static class |
StyleConstants.ArrowShape
Possible shapes for arrows on edges. |
static class |
StyleConstants.FillMode
How to fill the contents of the element. |
static class |
StyleConstants.IconMode
Where to place the icon around the text (or instead of the text). |
static class |
StyleConstants.JComponents
Possible JComponents. |
static class |
StyleConstants.ShadowMode
How to draw the shadow of the element. |
static class |
StyleConstants.Shape
Possible shapes for elements. |
static class |
StyleConstants.ShapeKind
|
static class |
StyleConstants.SizeMode
How to set the size of the element. |
static class |
StyleConstants.SpriteOrientation
Orientation of a sprite toward its attachment point. |
static class |
StyleConstants.StrokeMode
How to draw the contour of the element. |
static class |
StyleConstants.TextAlignment
How to align words around their attach point. |
static class |
StyleConstants.TextBackgroundMode
|
static class |
StyleConstants.TextMode
How to draw the text of an element. |
static class |
StyleConstants.TextStyle
Variant of the font. |
static class |
StyleConstants.TextVisibilityMode
How to show the text of an element. |
static class |
StyleConstants.Units
The available units for numerical values. |
static class |
StyleConstants.VisibilityMode
How to show an element. |
Constructor Summary | |
---|---|
StyleConstants()
|
Method Summary | |
---|---|
static Color |
convertColor(Object anyValue)
Try to convert the given string value to a colour. |
static String |
convertLabel(Object value)
Check if the given value is an instance of CharSequence (String is) and return it as a string. |
static Value |
convertValue(Object value)
Convert an object to a value with units. |
static float |
convertWidth(Object value)
Try to convert an arbitrary value to a float. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StyleConstants()
Method Detail |
---|
public static Color convertColor(Object anyValue)
anyValue
- The value to convert.
public static String convertLabel(Object value)
value
- The value to convert.
public static float convertWidth(Object value)
value
- The input to convert.
public static Value convertValue(Object value)
value
- A Number or a CharSequence.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |