Class MarkerBuilder

java.lang.Object
com.jfcbuilder.builders.MarkerBuilder

public class MarkerBuilder extends Object
Uses configured properties to Build a ValueMarker representing a plot overlay line.
  • Method Details

    • get

      public static MarkerBuilder get()
      Factory method for obtaining new instances of this class.
      Returns:
      New instance of this class
    • orientation

      public MarkerBuilder orientation(Orientation 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

      public MarkerBuilder horizontal()
      Sets the orientation of the line to horizontal.
      Returns:
      Reference to this builder for chaining method calls
    • vertical

      public MarkerBuilder vertical()
      Sets the orientation of the line to vertical.
      Returns:
      Reference to this builder for chaining method calls
    • orientation

      public Orientation orientation()
      Gets the currently configured line orientation
      Returns:
      The configured orientation
    • at

      public MarkerBuilder at(double value)
      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

      public MarkerBuilder color(Color 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

      public MarkerBuilder style(Stroke 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