public class ShapeAttributesHint extends Object implements AttributesHint, Cloneable
AttributesHint
which wraps ShapeAttributes
.
Each call of getNextHint()
returns a new instance of
ShapeAttributes where fill color, line color and/or
line thickness has been increased by a constant amount.Modifier and Type | Field and Description |
---|---|
static String |
FILL_COLOR_HSB_INCREMENT_KEY
Configuration parameter key.
|
static String |
INITIAL_ATTRIBUTES_KEY
Configuration parameter key.
|
static String |
LINE_COLOR_HSB_INCREMENT_KEY
Configuration parameter key.
|
static String |
LINE_THICKNESS_INCREMENT_KEY
Configuration parameter key.
|
Constructor and Description |
---|
ShapeAttributesHint(ConfigParameters config)
Creates an instance from the specified configuration parameters.
|
Modifier and Type | Method and Description |
---|---|
GraphicAttributes |
getAttributes()
Returns the wrapped
ShapeAttributes instance. |
AttributesHint |
getNextHint()
Creates a new ShapeAttributesHint where all attributes has been
incremented.
|
public static final String INITIAL_ATTRIBUTES_KEY
public static final String FILL_COLOR_HSB_INCREMENT_KEY
public static final String LINE_COLOR_HSB_INCREMENT_KEY
public static final String LINE_THICKNESS_INCREMENT_KEY
public ShapeAttributesHint(ConfigParameters config)
Key & Default Value | Type | Mandatory | Description |
---|---|---|---|
initialAttributes = default values of
ShapeAttributes |
ConfigParameters | no | Initial values of shape attributes. Note, that default fill and line colors are undefined (they depend on the Renderer). In this case color increments have no effects. |
fillColorHSBIncrement = 0 0 0 | double[] | no | Hue, saturation, and brightness increments of the fill color. |
lineColorHSBIncrement = 0 0 0 | double[] | no | Hue, saturation, and brightness increments of the line color. |
lineThicknessIncrement = 0 | double | no | Line thickness increment. |
public AttributesHint getNextHint()
getNextHint
in interface AttributesHint
public GraphicAttributes getAttributes()
ShapeAttributes
instance.getAttributes
in interface AttributesHint
Copyright © 2016. All Rights Reserved.