Class Marker

java.lang.Object
org.jfree.chart.plot.Marker
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
IntervalMarker, ValueMarker

public abstract class Marker
extends Object
implements Serializable, Cloneable
The base class for markers that can be added to plots to highlight a value or range of values.
See Also:
Serialized Form
  • Constructor Details

    • Marker

      public Marker()
      Constructs a new marker.
    • Marker

      public Marker​(Paint paint)
      Constructs a new marker.
      Parameters:
      paint - the paint (null not permitted).
    • Marker

      public Marker​(Paint paint, Stroke stroke, Paint outlinePaint, Stroke outlineStroke, float alpha)
      Constructs a new marker.
      Parameters:
      paint - the paint (null not permitted).
      stroke - the stroke (null not permitted).
      outlinePaint - the outline paint (null permitted).
      outlineStroke - the outline stroke (null permitted).
      alpha - the alpha transparency.
  • Method Details

    • getPaint

      public Paint getPaint()
      Returns the paint.
      Returns:
      the paint (never null).
    • setPaint

      public void setPaint​(Paint paint)
      Sets the paint.
      Parameters:
      paint - the paint (null not permitted).
    • getStroke

      public Stroke getStroke()
      Returns the stroke.
      Returns:
      the stroke (never null).
    • setStroke

      public void setStroke​(Stroke stroke)
      Sets the stroke.
      Parameters:
      stroke - the stroke (null not permitted).
    • getOutlinePaint

      public Paint getOutlinePaint()
      Returns the outline paint.
      Returns:
      the outline paint (possibly null).
    • setOutlinePaint

      public void setOutlinePaint​(Paint paint)
      Sets the outline paint.
      Parameters:
      paint - the paint (null permitted).
    • getOutlineStroke

      public Stroke getOutlineStroke()
      Returns the outline stroke.
      Returns:
      the outline stroke (possibly null).
    • setOutlineStroke

      public void setOutlineStroke​(Stroke stroke)
      Sets the outline stroke.
      Parameters:
      stroke - the stroke (null permitted).
    • getAlpha

      public float getAlpha()
      Returns the alpha transparency.
      Returns:
      the alpha transparency.
    • setAlpha

      public void setAlpha​(float alpha)
      Sets the alpha transparency.
      Parameters:
      alpha - the alpha transparency.
    • getLabel

      public String getLabel()
      Returns the label (if null no label is displayed).
      Returns:
      The label (possibly null).
    • setLabel

      public void setLabel​(String label)
      Sets the label (if null no label is displayed).
      Parameters:
      label - the label (null permitted).
    • getLabelFont

      public Font getLabelFont()
      Returns the label font.
      Returns:
      the label font (never null).
    • setLabelFont

      public void setLabelFont​(Font font)
      Sets the label font.
      Parameters:
      font - the font (null not permitted).
    • getLabelPaint

      public Paint getLabelPaint()
      Returns the label paint.
      Returns:
      the label paint (never null).
    • setLabelPaint

      public void setLabelPaint​(Paint paint)
      Sets the label paint.
      Parameters:
      paint - the paint (null not permitted).
    • getLabelAnchor

      public org.jfree.ui.RectangleAnchor getLabelAnchor()
      Returns the label anchor.
      Returns:
      the label anchor (never null).
    • setLabelAnchor

      public void setLabelAnchor​(org.jfree.ui.RectangleAnchor anchor)
      Sets the label anchor.
      Parameters:
      anchor - the anchor (null not permitted).
    • getLabelOffset

      public org.jfree.ui.RectangleInsets getLabelOffset()
      Returns the label offset.
      Returns:
      the label offset (never null).
    • setLabelOffset

      public void setLabelOffset​(org.jfree.ui.RectangleInsets offset)
      Sets the label offset.
      Parameters:
      offset - the label offset (null not permitted).
    • getLabelTextAnchor

      public org.jfree.ui.TextAnchor getLabelTextAnchor()
      Returns the label text anchor.
      Returns:
      the label text anchor (never null).
    • setLabelTextAnchor

      public void setLabelTextAnchor​(org.jfree.ui.TextAnchor anchor)
      Sets the label text anchor.
      Parameters:
      anchor - the label text anchor (null not permitted).
    • equals

      public boolean equals​(Object object)
      Tests an object for equality with this instance.
      Overrides:
      equals in class Object
      Parameters:
      object - the object to test.
      Returns:
      A boolean.