Class SceneryPointArrowAnnotation
- java.lang.Object
-
- org.jfree.chart.annotations.AbstractAnnotation
-
- org.jfree.chart.annotations.AbstractXYAnnotation
-
- org.bidib.wizard.mvc.dmx.view.panel.renderer.SceneryPointArrowAnnotation
-
- All Implemented Interfaces:
Serializable,Cloneable,org.jfree.chart.annotations.Annotation,org.jfree.chart.annotations.XYAnnotation,org.jfree.chart.util.PublicCloneable
public class SceneryPointArrowAnnotation extends org.jfree.chart.annotations.AbstractXYAnnotation implements org.jfree.chart.util.PublicCloneable- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static doubleDEFAULT_BASE_RADIUSThe default tip radius (in Java2D units).
-
Constructor Summary
Constructors Constructor Description SceneryPointArrowAnnotation(Comparable<String> seriesKey, double x, double y, int duration, int volumeDelta)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(Graphics2D g2, org.jfree.chart.plot.XYPlot plot, Rectangle2D dataArea, org.jfree.chart.axis.ValueAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, int rendererIndex, org.jfree.chart.plot.PlotRenderingInfo info)Draws the annotation.booleanequals(Object obj)PaintgetArrowPaint()Returns the paint used for the arrow.StrokegetArrowStroke()Returns the stroke used to draw the arrow line.doublegetBaseRadius()Returns the base radius.doublegetDuration()Comparable<String>getSeriesKey()doublegetVolumeDelta()doublegetX()Returns the x coordinate for the text anchor point (measured against the domain axis).doublegetY()Returns the y coordinate for the text anchor point (measured against the range axis).inthashCode()voidsetArrowPaint(Paint paint)Sets the paint used for the arrow and sends anAnnotationChangeEventto all registered listeners.voidsetArrowStroke(Stroke stroke)Sets the stroke used to draw the arrow line and sends anAnnotationChangeEventto all registered listeners.voidsetBaseRadius(double radius)Sets the base radius and sends anAnnotationChangeEventto all registered listeners.voidsetDuration(double duration)voidsetVolumeDelta(double volumeDelta)voidsetX(double x)Sets the x coordinate for the text anchor point (measured against the domain axis) and sends anAnnotationChangeEventto all registered listeners.voidsetY(double y)Sets the y coordinate for the text anchor point (measured against the range axis) and sends anAnnotationChangeEventto all registered listeners.-
Methods inherited from class org.jfree.chart.annotations.AbstractXYAnnotation
addEntity, getToolTipText, getURL, setToolTipText, setURL
-
Methods inherited from class org.jfree.chart.annotations.AbstractAnnotation
addChangeListener, clone, fireAnnotationChanged, getNotify, hasListener, notifyListeners, removeChangeListener, setNotify
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
DEFAULT_BASE_RADIUS
public static final double DEFAULT_BASE_RADIUS
The default tip radius (in Java2D units).- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SceneryPointArrowAnnotation
public SceneryPointArrowAnnotation(Comparable<String> seriesKey, double x, double y, int duration, int volumeDelta)
-
-
Method Detail
-
getSeriesKey
public Comparable<String> getSeriesKey()
-
getX
public double getX()
Returns the x coordinate for the text anchor point (measured against the domain axis).- Returns:
- The x coordinate (in data space).
- See Also:
setX(double)
-
setX
public void setX(double x)
Sets the x coordinate for the text anchor point (measured against the domain axis) and sends anAnnotationChangeEventto all registered listeners.- Parameters:
x- the x coordinate (in data space).- See Also:
getX()
-
getY
public double getY()
Returns the y coordinate for the text anchor point (measured against the range axis).- Returns:
- The y coordinate (in data space).
- See Also:
setY(double)
-
setY
public void setY(double y)
Sets the y coordinate for the text anchor point (measured against the range axis) and sends anAnnotationChangeEventto all registered listeners.- Parameters:
y- the y coordinate.- See Also:
getY()
-
getDuration
public double getDuration()
- Returns:
- the duration
-
setDuration
public void setDuration(double duration)
- Parameters:
duration- the duration to set
-
getVolumeDelta
public double getVolumeDelta()
- Returns:
- the volumeDelta
-
setVolumeDelta
public void setVolumeDelta(double volumeDelta)
- Parameters:
volumeDelta- the volumeDelta to set
-
getArrowStroke
public Stroke getArrowStroke()
Returns the stroke used to draw the arrow line.- Returns:
- The arrow stroke (never
null). - See Also:
setArrowStroke(Stroke)
-
setArrowStroke
public void setArrowStroke(Stroke stroke)
Sets the stroke used to draw the arrow line and sends anAnnotationChangeEventto all registered listeners.- Parameters:
stroke- the stroke (nullnot permitted).- See Also:
getArrowStroke()
-
getArrowPaint
public Paint getArrowPaint()
Returns the paint used for the arrow.- Returns:
- The arrow paint (never
null). - See Also:
setArrowPaint(Paint)
-
setArrowPaint
public void setArrowPaint(Paint paint)
Sets the paint used for the arrow and sends anAnnotationChangeEventto all registered listeners.- Parameters:
paint- the arrow paint (nullnot permitted).- See Also:
getArrowPaint()
-
getBaseRadius
public double getBaseRadius()
Returns the base radius.- Returns:
- The base radius (in Java2D units).
- See Also:
setBaseRadius(double)
-
setBaseRadius
public void setBaseRadius(double radius)
Sets the base radius and sends anAnnotationChangeEventto all registered listeners.- Parameters:
radius- the radius (in Java2D units).
-
draw
public void draw(Graphics2D g2, org.jfree.chart.plot.XYPlot plot, Rectangle2D dataArea, org.jfree.chart.axis.ValueAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, int rendererIndex, org.jfree.chart.plot.PlotRenderingInfo info)
Draws the annotation.- Specified by:
drawin interfaceorg.jfree.chart.annotations.XYAnnotation- Specified by:
drawin classorg.jfree.chart.annotations.AbstractXYAnnotation- Parameters:
g2- the graphics device.plot- the plot.dataArea- the data area.domainAxis- the domain axis.rangeAxis- the range axis.rendererIndex- the renderer index.info- the plot rendering info.
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classorg.jfree.chart.annotations.AbstractXYAnnotation
-
hashCode
public int hashCode()
- Overrides:
hashCodein classorg.jfree.chart.annotations.AbstractXYAnnotation
-
-