|
||||||||||
| 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.TrackSegment
public class TrackSegment
Provides a time series chart
| Field Summary |
|---|
| 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 | |
|---|---|
TrackSegment()
Default ctor |
|
TrackSegment(WayPoint wayPoint1,
WayPoint wayPoint2,
PlotWrapper plotWrapper)
Ctor |
|
| Method Summary | |
|---|---|
double |
distance(int x,
int y)
Distance to the x/y. |
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 wayPoint. |
double |
getCenterValue()
Get the domain value at the center of the segment |
WayPoint |
getLeft()
Get the left most waypoint. |
WayPoint |
getRight()
Get the right most waypoint. |
String |
getToolTipText()
Get the tool tip text |
String |
getTypeName()
Type of annotation |
WayPoint |
getWayPoint1()
Get the WayPoint1 property. |
WayPoint |
getWayPoint2()
Get the WayPoint2 property. |
void |
setPosition(int x,
int y)
Set the position to the given x/y screen coordinate |
void |
setWayPoint1(WayPoint value)
Set the WayPoint1 property. |
void |
setWayPoint2(WayPoint value)
Set the WayPoint2 property. |
| Methods inherited from class ucar.unidata.idv.control.chart.ChartAnnotation |
|---|
addPropertyChangeListener, applyProperties, distance, doRemove, formatValue, getColor, getName, getPlotWrapper, getPropertiesComponents, getSelected, getX, getY, isActive, removePropertyChangeListener, setActive, setColor, setGraphicsState, setName, setPlotWrapper, setPosition, setSelected, showColorInProperties, toString |
| Methods inherited from class ucar.unidata.collab.PropertiedThing |
|---|
doApplyProperties, firePropertyChange, firePropertyChange, getPropertyListeners, getPropertyTabs, isShowing, propertyChange, showProperties, showProperties |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TrackSegment()
public TrackSegment(WayPoint wayPoint1,
WayPoint wayPoint2,
PlotWrapper plotWrapper)
wayPoint1 - wayPoint1wayPoint2 - wayPoint1plotWrapper - The chart I'm in| Method Detail |
|---|
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 double getCenterValue()
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.public WayPoint getLeft()
public WayPoint getRight()
public void setWayPoint1(WayPoint value)
value - The new value for WayPoint1public WayPoint getWayPoint1()
public void setWayPoint2(WayPoint value)
value - The new value for WayPoint2public WayPoint getWayPoint2()
public double distance(int x,
int y)
distance in class ChartAnnotationx - mouse xy - mouse y
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||