com.jrefinery.chart
Class SignalRenderer
java.lang.Object
|
+--com.jrefinery.chart.AbstractRenderer
|
+--com.jrefinery.chart.AbstractXYItemRenderer
|
+--com.jrefinery.chart.SignalRenderer
- All Implemented Interfaces:
- XYItemRenderer
- public class SignalRenderer
- extends AbstractXYItemRenderer
- implements XYItemRenderer
A renderer that draws signals on an XY plot (requires a SignalsDataset).
- Author:
- SV
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jrefinery.chart.XYItemRenderer |
addPropertyChangeListener, drawDomainMarker, drawRangeMarker, getLegendItem, getPlot, getToolTipGenerator, getURLGenerator, initialise, removePropertyChangeListener, setPlot, setToolTipGenerator, setURLGenerator |
SignalRenderer
public SignalRenderer()
- Creates a new renderer.
getMarkOffset
public double getMarkOffset()
- Returns the mark offset.
- Returns:
- the mark offset.
setMarkOffset
public void setMarkOffset(double offset)
- Sets the mark offset.
- Parameters:
offset
- the mark offset.
getShapeWidth
public double getShapeWidth()
- Returns the shape width.
- Returns:
- the shape width.
setShapeWidth
public void setShapeWidth(double width)
- Sets the shape width.
- Parameters:
width
- the shape width.
getShapeHeight
public double getShapeHeight()
- Returns the shape height.
- Returns:
- the shape height.
setShapeHeight
public void setShapeHeight(double height)
- Sets the shape height.
- Parameters:
height
- the shape height.
drawItem
public void drawItem(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
ChartRenderingInfo info,
XYPlot plot,
ValueAxis horizontalAxis,
ValueAxis verticalAxis,
XYDataset data,
int series,
int item,
CrosshairInfo crosshairInfo)
- Draws the visual representation of a single data item.
- Specified by:
drawItem
in interface XYItemRenderer
- Parameters:
g2
- the graphics device.dataArea
- the area within which the plot is being drawn.info
- collects information about the drawing.plot
- the plot (can be used to obtain standard color information etc).horizontalAxis
- the horizontal axis.verticalAxis
- the vertical axis.data
- the dataset.series
- the series index.item
- the item index.crosshairInfo
- information about crosshairs on a plot.