public class RangeFilter extends ChartAnnotation
Modifier and Type | Field and Description |
---|---|
static int |
ANNOTATION_WIDTH
Arrow width
|
static int |
TYPE_GREATERTHAN
Type
|
static int |
TYPE_LESSTHAN
Type
|
COLOR_SELECTED, transform, x, y
propertiesDialog
Constructor and Description |
---|
RangeFilter()
Default ctor
|
RangeFilter(double rangeValue,
TimeSeriesChartWrapper timeseries)
ctor
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(org.jfree.chart.event.AnnotationChangeListener arg0) |
protected boolean |
applyProperties()
Apply the properties
|
RangeFilter |
doMakeAttached(java.awt.event.MouseEvent event)
Make the attached, but opposite, range filter
|
void |
doRemove()
removed from the chart.
|
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.
|
RangeFilter |
getAttached()
Get the Attached property.
|
protected void |
getPropertiesComponents(java.util.List comps,
int tabIdx)
Create property left/right components
|
double |
getRangeValue()
Get the RangeValue property.
|
java.lang.String |
getToolTipText()
Get the tool tip text
|
int |
getType()
Get the Type property.
|
java.lang.String |
getTypeName()
Type of annotation
|
void |
removeChangeListener(org.jfree.chart.event.AnnotationChangeListener arg0) |
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(java.awt.event.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
|
addPropertyChangeListener, distance, distance, formatValue, getColor, getName, getPlotWrapper, getSelected, getX, getY, isActive, removePropertyChangeListener, setActive, setColor, setGraphicsState, setName, setPlotWrapper, setSelected, showColorInProperties, toString
doApplyProperties, firePropertyChange, firePropertyChange, getPropertyListeners, getPropertyTabs, isShowing, propertyChange, showProperties, showProperties
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
public static int TYPE_LESSTHAN
public static int TYPE_GREATERTHAN
public static final int ANNOTATION_WIDTH
public RangeFilter()
public RangeFilter(double rangeValue, TimeSeriesChartWrapper timeseries)
rangeValue
- the valuetimeseries
- the chart I'm inpublic java.lang.String getToolTipText()
getToolTipText
in class ChartAnnotation
public void doRemove()
doRemove
in class ChartAnnotation
public java.lang.String getTypeName()
getTypeName
in class ChartAnnotation
public boolean valueOk(double value)
value
- The valueprotected boolean applyProperties()
applyProperties
in class ChartAnnotation
protected void getPropertiesComponents(java.util.List comps, int tabIdx)
getPropertiesComponents
in class ChartAnnotation
comps
- List of components for properties dialogtabIdx
- Which tab in the guipublic void setPosition(int x, int y)
setPosition
in class ChartAnnotation
x
- xy
- ypublic void setPosition(java.awt.event.MouseEvent event)
setPosition
in class ChartAnnotation
event
- mouse eventpublic 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.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(java.awt.event.MouseEvent event)
event
- The eventpublic void setAttached(RangeFilter value)
value
- The new value for Attachedpublic RangeFilter getAttached()
public void addChangeListener(org.jfree.chart.event.AnnotationChangeListener arg0)
public void removeChangeListener(org.jfree.chart.event.AnnotationChangeListener arg0)