|
Header
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.renderer.AbstractRenderer
org.jfree.chart.renderer.xy.AbstractXYItemRenderer
org.jfree.chart.renderer.xy.VectorRenderer
public class VectorRenderer
A renderer that represents data from an VectorXYDataset by drawing a
line with an arrow at each (x, y) point.
The example shown here is generated by the VectorPlotDemo1.java
program included in the JFreeChart demo collection:
| Field Summary |
|---|
| Fields inherited from class org.jfree.chart.renderer.AbstractRenderer |
|---|
DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, DEFAULT_PAINT, DEFAULT_SHAPE, DEFAULT_STROKE, DEFAULT_VALUE_LABEL_FONT, DEFAULT_VALUE_LABEL_PAINT, ZERO |
| Constructor Summary | |
|---|---|
VectorRenderer()
Creates a new XYBlockRenderer instance with default
attributes. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of this renderer. |
void |
drawItem(java.awt.Graphics2D g2,
XYItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
PlotRenderingInfo info,
XYPlot plot,
ValueAxis domainAxis,
ValueAxis rangeAxis,
XYDataset dataset,
int series,
int item,
CrosshairState crosshairState,
int pass)
Draws the block representing the specified item. |
boolean |
equals(java.lang.Object obj)
Tests this VectorRenderer for equality with an arbitrary
object. |
Range |
findDomainBounds(XYDataset dataset)
Returns the lower and upper bounds (range) of the x-values in the specified dataset. |
Range |
findRangeBounds(XYDataset dataset)
Returns the range of values the renderer requires to display all the items from the specified dataset. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jfree.chart.LegendItemSource |
|---|
getLegendItems |
| Constructor Detail |
|---|
public VectorRenderer()
XYBlockRenderer instance with default
attributes.
| Method Detail |
|---|
public Range findDomainBounds(XYDataset dataset)
findDomainBounds in interface XYItemRendererfindDomainBounds in class AbstractXYItemRendererdataset - the dataset (null permitted).
null if the dataset is null
or empty).AbstractXYItemRenderer.findRangeBounds(XYDataset)public Range findRangeBounds(XYDataset dataset)
findRangeBounds in interface XYItemRendererfindRangeBounds in class AbstractXYItemRendererdataset - the dataset (null permitted).
null if the dataset is null
or empty).AbstractXYItemRenderer.findDomainBounds(XYDataset)
public void drawItem(java.awt.Graphics2D g2,
XYItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
PlotRenderingInfo info,
XYPlot plot,
ValueAxis domainAxis,
ValueAxis rangeAxis,
XYDataset dataset,
int series,
int item,
CrosshairState crosshairState,
int pass)
drawItem in interface XYItemRendererg2 - the graphics device.state - the state.dataArea - the data area.info - the plot rendering info.plot - the plot.domainAxis - the x-axis.rangeAxis - the y-axis.dataset - the dataset.series - the series index.item - the item index.crosshairState - the crosshair state.pass - the pass index.public boolean equals(java.lang.Object obj)
VectorRenderer for equality with an arbitrary
object. This method returns true if and only if:
obj is an instance of VectorRenderer (not
null);obj has the same field values as this
VectorRenderer;
equals in class AbstractXYItemRendererobj - the object (null permitted).
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class AbstractXYItemRendererjava.lang.CloneNotSupportedException - if there is a problem creating the
clone.
|
Footer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||