|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.collab.PropertiedThing
ucar.unidata.idv.control.chart.ChartAnnotation
ucar.unidata.idv.control.chart.WayPoint
public class WayPoint
Class WayPoint is used in the time series chart to show a way point along the time domain
| Field Summary | |
|---|---|
static int |
ANNOTATION_WIDTH
Arrow width |
static String |
PROP_WAYPOINTVALUE
Used for property changed when waypoint is moved |
| Fields inherited from class ucar.unidata.idv.control.chart.ChartAnnotation |
|---|
COLOR_SELECTED, transform, x, y |
| Fields inherited from class ucar.unidata.collab.PropertiedThing |
|---|
propertiesDialog |
| Constructor Summary | |
|---|---|
WayPoint()
Default ctor |
|
WayPoint(double domainValue,
TimeSeriesChartWrapper timeseries)
Ctor |
|
| Method Summary | |
|---|---|
protected boolean |
applyProperties()
Apply properties |
boolean |
canPlaySound()
Can the waypoint play sound |
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. |
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(List comps,
int tabIdx)
Add to properties gui |
String[] |
getPropertyTabs()
return the array of tab names for the proeprties dialog |
String |
getToolTipText()
Get the tool tip text |
String |
getTypeName()
Type of annotation |
protected int |
getXFromValue(Rectangle2D dataArea,
org.jfree.chart.axis.ValueAxis domainAxis)
Get the x position from the domain value |
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 |
| Methods inherited from class ucar.unidata.idv.control.chart.ChartAnnotation |
|---|
addPropertyChangeListener, distance, distance, doRemove, formatValue, getColor, getName, getPlotWrapper, getSelected, getX, getY, isActive, removePropertyChangeListener, setActive, setColor, setGraphicsState, setName, setPlotWrapper, setPosition, setSelected, toString |
| Methods inherited from class ucar.unidata.collab.PropertiedThing |
|---|
doApplyProperties, firePropertyChange, firePropertyChange, getPropertyListeners, isShowing, propertyChange, showProperties, showProperties |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROP_WAYPOINTVALUE
public static final int ANNOTATION_WIDTH
| Constructor Detail |
|---|
public WayPoint()
public WayPoint(double domainValue,
TimeSeriesChartWrapper timeseries)
domainValue - The domain valuetimeseries - The chart I'm in| Method Detail |
|---|
public MidiManager getMidiManager()
public String getToolTipText()
getToolTipText in class ChartAnnotationpublic String getTypeName()
getTypeName in class ChartAnnotation
public void setPosition(int x,
int y)
setPosition in class ChartAnnotationx - xy - ypublic Color getColorToUse()
protected boolean showColorInProperties()
showColorInProperties in class ChartAnnotationpublic String[] getPropertyTabs()
getPropertyTabs in class PropertiedThing
protected void getPropertiesComponents(List comps,
int tabIdx)
getPropertiesComponents in class ChartAnnotationcomps - List of compstabIdx - Which tab in the properties dialogpublic boolean canPlaySound()
protected boolean applyProperties()
applyProperties in class ChartAnnotation
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)
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(Rectangle2D dataArea,
org.jfree.chart.axis.ValueAxis domainAxis)
dataArea - data areadomainAxis - domain axis
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||