Package jcckit.plot
Class ShapeAttributesHint
- java.lang.Object
-
- jcckit.plot.ShapeAttributesHint
-
- All Implemented Interfaces:
Cloneable,AttributesHint,Hint
public class ShapeAttributesHint extends Object implements AttributesHint, Cloneable
AnAttributesHintwhich wrapsShapeAttributes. Each call ofgetNextHint()returns a new instance of ShapeAttributes where fill color, line color and/or line thickness has been increased by a constant amount.- Author:
- Franz-Josef Elmer
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILL_COLOR_HSB_INCREMENT_KEYConfiguration parameter key.static StringINITIAL_ATTRIBUTES_KEYConfiguration parameter key.static StringLINE_COLOR_HSB_INCREMENT_KEYConfiguration parameter key.static StringLINE_THICKNESS_INCREMENT_KEYConfiguration parameter key.
-
Constructor Summary
Constructors Constructor Description ShapeAttributesHint(ConfigParameters config)Creates an instance from the specified configuration parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphicAttributesgetAttributes()Returns the wrappedShapeAttributesinstance.AttributesHintgetNextHint()Creates a new ShapeAttributesHint where all attributes has been incremented.
-
-
-
Field Detail
-
INITIAL_ATTRIBUTES_KEY
public static final String INITIAL_ATTRIBUTES_KEY
Configuration parameter key.- See Also:
- Constant Field Values
-
FILL_COLOR_HSB_INCREMENT_KEY
public static final String FILL_COLOR_HSB_INCREMENT_KEY
Configuration parameter key.- See Also:
- Constant Field Values
-
LINE_COLOR_HSB_INCREMENT_KEY
public static final String LINE_COLOR_HSB_INCREMENT_KEY
Configuration parameter key.- See Also:
- Constant Field Values
-
LINE_THICKNESS_INCREMENT_KEY
public static final String LINE_THICKNESS_INCREMENT_KEY
Configuration parameter key.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ShapeAttributesHint
public ShapeAttributesHint(ConfigParameters config)
Creates an instance from the specified configuration parameters.Key & Default Value Type Mandatory Description initialAttributes = default values of ShapeAttributesConfigParameters 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.
-
-
Method Detail
-
getNextHint
public AttributesHint getNextHint()
Creates a new ShapeAttributesHint where all attributes has been incremented.- Specified by:
getNextHintin interfaceAttributesHint
-
getAttributes
public GraphicAttributes getAttributes()
Returns the wrappedShapeAttributesinstance.- Specified by:
getAttributesin interfaceAttributesHint
-
-