org.jfree.chart
Class Marker

java.lang.Object
  |
  +--org.jfree.chart.Marker
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
IntervalMarker

public class Marker
extends java.lang.Object
implements java.io.Serializable

A constant value that is drawn on a chart as a marker, usually as a horizontal or a vertical line.

In addition to a value, this class defines paint attributes to give some control over the appearance of the marker. The render can, however, override these settings if it chooses.

This class is immutable.

Author:
David Gilbert
See Also:
Serialized Form

Constructor Summary
Marker(double value)
          Constructs a new marker.
Marker(double value, java.awt.Paint outlinePaint)
          Constructs a new marker.
Marker(double value, java.awt.Paint outlinePaint, java.awt.Stroke outlineStroke, java.awt.Paint paint, float alpha)
          Constructs a new marker.
 
Method Summary
 float getAlpha()
          Returns the alpha transparency.
 java.awt.Paint getOutlinePaint()
          Returns the outline paint.
 java.awt.Stroke getOutlineStroke()
          Returns the outline stroke.
 java.awt.Paint getPaint()
          Returns the paint.
 double getValue()
          Returns the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Marker

public Marker(double value)
Constructs a new marker.

Parameters:
value - the value.

Marker

public Marker(double value,
              java.awt.Paint outlinePaint)
Constructs a new marker.

Parameters:
value - the value.
outlinePaint - the paint.

Marker

public Marker(double value,
              java.awt.Paint outlinePaint,
              java.awt.Stroke outlineStroke,
              java.awt.Paint paint,
              float alpha)
Constructs a new marker.

Parameters:
value - the value.
outlinePaint - the outline paint.
outlineStroke - the outline stroke.
paint - the paint.
alpha - the alpha transparency.
Method Detail

getValue

public double getValue()
Returns the value.

Returns:
the value.

getOutlinePaint

public java.awt.Paint getOutlinePaint()
Returns the outline paint.

Returns:
the outline paint.

getOutlineStroke

public java.awt.Stroke getOutlineStroke()
Returns the outline stroke.

Returns:
the outline stroke.

getPaint

public java.awt.Paint getPaint()
Returns the paint.

Returns:
the paint.

getAlpha

public float getAlpha()
Returns the alpha transparency.

Returns:
the alpha transparency.