public class WayPoint extends ChartAnnotation
Modifier and Type | Field and Description |
---|---|
static int |
ANNOTATION_WIDTH
Arrow width
|
static java.lang.String |
PROP_WAYPOINTVALUE
Used for property changed when waypoint is moved
|
COLOR_SELECTED, transform, x, y
propertiesDialog
Constructor and Description |
---|
WayPoint()
Default ctor
|
WayPoint(double domainValue,
TimeSeriesChartWrapper timeseries)
Ctor
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(org.jfree.chart.event.AnnotationChangeListener arg0) |
protected boolean |
applyProperties()
Apply properties
|
boolean |
canPlaySound()
Can the waypoint play sound
|
void |
draw(java.awt.Graphics2D g2,
org.jfree.chart.plot.XYPlot plot,
java.awt.geom.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.
|
java.awt.Color |
getColorToUse()
What color should we use.
|
double |
getDomainValue()
Get the DomainValue property.
|
boolean |
getIsForAnimation()
Get the IsForAnimation property.
|
MidiManager |
getMidiManager()
Create, if needed, and return the midimanager that plays sounds
|
MidiProperties |
getMidiProperties()
Get the MidiProperties property.
|
double |
getMinutesSpan()
Get the MinutesSpan property.
|
protected void |
getPropertiesComponents(java.util.List comps,
int tabIdx)
Add to properties gui
|
java.lang.String[] |
getPropertyTabs()
return the array of tab names for the proeprties dialog
|
java.lang.String |
getToolTipText()
Get the tool tip text
|
java.lang.String |
getTypeName()
Type of annotation
|
protected int |
getXFromValue(java.awt.geom.Rectangle2D dataArea,
org.jfree.chart.axis.ValueAxis domainAxis)
Get the x position from the domain value
|
void |
removeChangeListener(org.jfree.chart.event.AnnotationChangeListener arg0) |
void |
setDomainValue(double value)
Set the DomainValue property.
|
void |
setIsForAnimation(boolean value)
Set the IsForAnimation property.
|
void |
setMidiProperties(MidiProperties value)
Set the MidiProperties property.
|
void |
setMinutesSpan(double value)
Set the MinutesSpan property.
|
void |
setPosition(int x,
int y)
Set the position to the given x/y screen coordinate
|
protected boolean |
showColorInProperties()
Should the color swatch be shown in the properties dialog
|
addPropertyChangeListener, distance, distance, doRemove, formatValue, getColor, getName, getPlotWrapper, getSelected, getX, getY, isActive, removePropertyChangeListener, setActive, setColor, setGraphicsState, setName, setPlotWrapper, setPosition, setSelected, toString
doApplyProperties, firePropertyChange, firePropertyChange, getPropertyListeners, isShowing, propertyChange, showProperties, showProperties
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
public static final java.lang.String PROP_WAYPOINTVALUE
public static final int ANNOTATION_WIDTH
public WayPoint()
public WayPoint(double domainValue, TimeSeriesChartWrapper timeseries)
domainValue
- The domain valuetimeseries
- The chart I'm inpublic MidiManager getMidiManager()
public java.lang.String getToolTipText()
getToolTipText
in class ChartAnnotation
public java.lang.String getTypeName()
getTypeName
in class ChartAnnotation
public void setPosition(int x, int y)
setPosition
in class ChartAnnotation
x
- xy
- ypublic java.awt.Color getColorToUse()
protected boolean showColorInProperties()
showColorInProperties
in class ChartAnnotation
public java.lang.String[] getPropertyTabs()
getPropertyTabs
in class PropertiedThing
protected void getPropertiesComponents(java.util.List comps, int tabIdx)
getPropertiesComponents
in class ChartAnnotation
comps
- List of compstabIdx
- Which tab in the properties dialogpublic boolean canPlaySound()
protected boolean applyProperties()
applyProperties
in class ChartAnnotation
public void draw(java.awt.Graphics2D g2, org.jfree.chart.plot.XYPlot plot, java.awt.geom.Rectangle2D dataArea, org.jfree.chart.axis.ValueAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, int rendererIndex, org.jfree.chart.plot.PlotRenderingInfo info)
g2
- the graphics device.plot
- the plot.dataArea
- the data area.domainAxis
- the domain axis.rangeAxis
- the range axis.rendererIndex
- the renderer index.info
- an optional info object that will be populated with
entity information.protected int getXFromValue(java.awt.geom.Rectangle2D dataArea, org.jfree.chart.axis.ValueAxis domainAxis)
dataArea
- data areadomainAxis
- domain axispublic void setDomainValue(double value)
value
- The new value for DomainValuepublic double getDomainValue()
public void setIsForAnimation(boolean value)
value
- The new value for IsForAnimationpublic boolean getIsForAnimation()
public void setMinutesSpan(double value)
value
- The new value for MinutesSpanpublic double getMinutesSpan()
public void setMidiProperties(MidiProperties value)
value
- The new value for MidiPropertiespublic MidiProperties getMidiProperties()
public void addChangeListener(org.jfree.chart.event.AnnotationChangeListener arg0)
public void removeChangeListener(org.jfree.chart.event.AnnotationChangeListener arg0)