public class StyleConstants
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
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 and Description |
---|
StyleConstants() |
Modifier and Type | Method and Description |
---|---|
static Color |
convertColor(java.lang.Object anyValue)
Try to convert the given string value to a colour.
|
static java.lang.String |
convertLabel(java.lang.Object value)
Check if the given value is an instance of CharSequence (String is) and
return it as a string.
|
static Value |
convertValue(java.lang.Object value)
Convert an object to a value with units.
|
static float |
convertWidth(java.lang.Object value)
Try to convert an arbitrary value to a float.
|
public static Color convertColor(java.lang.Object anyValue)
anyValue
- The value to convert.public static java.lang.String convertLabel(java.lang.Object value)
value
- The value to convert.public static float convertWidth(java.lang.Object value)
value
- The input to convert.public static Value convertValue(java.lang.Object value)
value
- A Number or a CharSequence.