|
||||||||||
| 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.RangeFilter
public class RangeFilter
Class RangeFilter is a greater than or less than value filter
| Field Summary | |
|---|---|
static int |
ANNOTATION_WIDTH
Arrow width |
static int |
TYPE_GREATERTHAN
Type |
static int |
TYPE_LESSTHAN
Type |
| 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 | |
|---|---|
RangeFilter()
Default ctor |
|
RangeFilter(double rangeValue,
TimeSeriesChartWrapper timeseries)
ctor |
|
| Method Summary | |
|---|---|
protected boolean |
applyProperties()
Apply the properties |
RangeFilter |
doMakeAttached(MouseEvent event)
Make the attached, but opposite, range filter |
void |
doRemove()
removed from the chart. |
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. |
RangeFilter |
getAttached()
Get the Attached property. |
protected void |
getPropertiesComponents(List comps,
int tabIdx)
Create property left/right components |
double |
getRangeValue()
Get the RangeValue property. |
String |
getToolTipText()
Get the tool tip text |
int |
getType()
Get the Type property. |
String |
getTypeName()
Type of annotation |
void |
setAttached(RangeFilter value)
Set the Attached property. |
void |
setPosition(int x,
int y)
Set the position to the given x/y screen coordinate |
void |
setPosition(MouseEvent event)
Set the position from the mouse |
void |
setRangeValue(double value)
Set the DomainValue property. |
void |
setType(int value)
Set the Type property. |
boolean |
valueOk(double value)
Does the value pass the filter |
| Methods inherited from class ucar.unidata.idv.control.chart.ChartAnnotation |
|---|
addPropertyChangeListener, distance, distance, formatValue, getColor, getName, getPlotWrapper, getSelected, getX, getY, isActive, removePropertyChangeListener, setActive, setColor, setGraphicsState, setName, setPlotWrapper, 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 |
| Field Detail |
|---|
public static int TYPE_LESSTHAN
public static int TYPE_GREATERTHAN
public static final int ANNOTATION_WIDTH
| Constructor Detail |
|---|
public RangeFilter()
public RangeFilter(double rangeValue,
TimeSeriesChartWrapper timeseries)
rangeValue - the valuetimeseries - the chart I'm in| Method Detail |
|---|
public String getToolTipText()
getToolTipText in class ChartAnnotationpublic void doRemove()
doRemove in class ChartAnnotationpublic String getTypeName()
getTypeName in class ChartAnnotationpublic boolean valueOk(double value)
value - The value
protected boolean applyProperties()
applyProperties in class ChartAnnotation
protected void getPropertiesComponents(List comps,
int tabIdx)
getPropertiesComponents in class ChartAnnotationcomps - List of components for properties dialogtabIdx - Which tab in the gui
public void setPosition(int x,
int y)
setPosition in class ChartAnnotationx - xy - ypublic void setPosition(MouseEvent event)
setPosition in class ChartAnnotationevent - mouse event
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 void setRangeValue(double value)
value - The new value for RangeValuepublic double getRangeValue()
public void setType(int value)
value - The new value for Typepublic int getType()
public RangeFilter doMakeAttached(MouseEvent event)
event - The event
public void setAttached(RangeFilter value)
value - The new value for Attachedpublic RangeFilter getAttached()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||