Package com.jfcbuilder.builders
Class MarkerBuilder
java.lang.Object
com.jfcbuilder.builders.MarkerBuilder
Uses configured properties to Build a
ValueMarker
representing a plot overlay line.-
Method Summary
Modifier and TypeMethodDescriptionat
(double value) Sets the value at which the line show be drawn.org.jfree.chart.plot.ValueMarker
build()
Builds a ValueMarker from the configured properties.Sets the color to be used when drawing the linestatic MarkerBuilder
get()
Factory method for obtaining new instances of this class.Sets the orientation of the line to horizontal.Gets the currently configured line orientationorientation
(Orientation orientation) Sets the orientation of the line to be drawn.Sets the line style (Stroke
) to be used when drawing the linevertical()
Sets the orientation of the line to vertical.
-
Method Details
-
get
Factory method for obtaining new instances of this class.- Returns:
- New instance of this class
-
orientation
Sets the orientation of the line to be drawn.- Parameters:
orientation
- The desired orientation of the line- Returns:
- Reference to this builder for chaining method calls
-
horizontal
Sets the orientation of the line to horizontal.- Returns:
- Reference to this builder for chaining method calls
-
vertical
Sets the orientation of the line to vertical.- Returns:
- Reference to this builder for chaining method calls
-
orientation
Gets the currently configured line orientation- Returns:
- The configured orientation
-
at
Sets the value at which the line show be drawn.- Parameters:
value
- The desired line value- Returns:
- Reference to this builder for chaining method calls
-
color
Sets the color to be used when drawing the line- Parameters:
color
- The desired color- Returns:
- Reference to this builder for chaining method calls
-
style
Sets the line style (Stroke
) to be used when drawing the line- Parameters:
style
- The desired line style- Returns:
- Reference to this builder for chaining method calls
-
build
public org.jfree.chart.plot.ValueMarker build()Builds a ValueMarker from the configured properties.- Returns:
- The new ValueMarker instance
-