| java.lang.Object org.jfree.chart.plot.Plot org.jfree.chart.plot.CompassPlot
Method Summary | |
public void | addDataset(ValueDataset dataset) Adds a dataset to the compass. | public void | addDataset(ValueDataset dataset, MeterNeedle needle) Adds a dataset to the compass. | public Object | clone() Returns a clone of the plot. | public void | draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) Draws the plot on a Java 2D graphics device (such as the screen or a
printer). | public boolean | equals(Object obj) Tests an object for equality with this plot.
Parameters: obj - the object (null permitted). | protected Font | getCompassFont(int radius) Returns the font for the compass, adjusted for the size of the plot.
Parameters: radius - the radius. | public ValueDataset[] | getDatasets() Returns an array of dataset references for the plot. | public boolean | getDrawBorder() Returns a flag that controls whether or not a border is drawn. | public Font | getLabelFont() Returns the label font. | public int | getLabelType() Returns the label type. | public LegendItemCollection | getLegendItems() Returns the legend items for the plot. | public String | getPlotType() Returns a short string describing the type of plot. | public double | getRevolutionDistance() Gets the count to complete one revolution. | public Paint | getRoseCenterPaint() Returns the paint used to fill the inner background area of the
compass. | public Paint | getRoseHighlightPaint() Returns the paint used to draw the circles, symbols and labels on the
compass. | public Paint | getRosePaint() Returns the paint used to fill the outer circle of the compass. | public void | setDrawBorder(boolean status) Sets a flag that controls whether or not a border is drawn. | public void | setLabelFont(Font font) Sets the label font and sends a
PlotChangeEvent to all
registered listeners. | public void | setLabelType(int type) Sets the label type (either
CompassPlot.NO_LABELS or
CompassPlot.VALUE_LABELS . | public void | setRevolutionDistance(double size) Sets the count to complete one revolution. | public void | setRoseCenterPaint(Paint paint) Sets the paint used to fill the inner background area of the compass,
and sends a
PlotChangeEvent to all registered listeners. | public void | setRoseHighlightPaint(Paint paint) Sets the paint used to draw the circles, symbols and labels of the
compass, and sends a
PlotChangeEvent to all registered listeners. | public void | setRosePaint(Paint paint) Sets the paint used to fill the outer circle of the compass,
and sends a
PlotChangeEvent to all registered listeners. | public void | setSeriesNeedle(int type) Sets the needle type. | public void | setSeriesNeedle(int index, int type) Sets the needle for a series. | public void | setSeriesNeedle(int index, MeterNeedle needle) Sets the needle for a series and sends a
PlotChangeEvent to all
registered listeners. | public void | setSeriesOutlinePaint(int series, Paint p) Sets the series outline paint. | public void | setSeriesOutlineStroke(int series, Stroke stroke) Sets the series outline stroke. | public void | setSeriesPaint(int series, Paint paint) Sets the series paint. | public void | zoom(double percent) No zooming is implemented for compass plot, so this method is empty. |
DEFAULT_LABEL_FONT | final public static Font DEFAULT_LABEL_FONT(Code) | | The default label font.
|
NO_LABELS | final public static int NO_LABELS(Code) | | A constant for the label type.
|
VALUE_LABELS | final public static int VALUE_LABELS(Code) | | A constant for the label type.
|
localizationResources | protected static ResourceBundle localizationResources(Code) | | The resourceBundle for the localization.
|
revolutionDistance | protected double revolutionDistance(Code) | | The count to complete one revolution. Can be arbitrarily set
For degrees (the default) it is 360, for radians this is 2*Pi, etc
|
CompassPlot | public CompassPlot()(Code) | | Default constructor.
|
CompassPlot | public CompassPlot(ValueDataset dataset)(Code) | | Constructs a new compass plot.
Parameters: dataset - the dataset for the plot (null permitted). |
addDataset | public void addDataset(ValueDataset dataset, MeterNeedle needle)(Code) | | Adds a dataset to the compass.
Parameters: dataset - the new dataset (null ignored). Parameters: needle - the needle (null permitted). |
draw | public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code) | | Draws the plot on a Java 2D graphics device (such as the screen or a
printer).
Parameters: g2 - the graphics device. Parameters: area - the area within which the plot should be drawn. Parameters: anchor - the anchor point (null permitted). Parameters: parentState - the state from the parent plot, if there is one. Parameters: info - collects info about the drawing. |
equals | public boolean equals(Object obj)(Code) | | Tests an object for equality with this plot.
Parameters: obj - the object (null permitted). A boolean. |
getCompassFont | protected Font getCompassFont(int radius)(Code) | | Returns the font for the compass, adjusted for the size of the plot.
Parameters: radius - the radius. The font. |
getLegendItems | public LegendItemCollection getLegendItems()(Code) | | Returns the legend items for the plot. For now, no legend is available
- this method returns null.
The legend items. |
getPlotType | public String getPlotType()(Code) | | Returns a short string describing the type of plot.
A string describing the plot. |
setDrawBorder | public void setDrawBorder(boolean status)(Code) | | Sets a flag that controls whether or not a border is drawn.
Parameters: status - the flag status. See Also: CompassPlot.getDrawBorder() |
setRevolutionDistance | public void setRevolutionDistance(double size)(Code) | | Sets the count to complete one revolution. Can be arbitrarily set
For degrees (the default) it is 360, for radians this is 2*Pi, etc
Parameters: size - the count to complete one revolution. See Also: CompassPlot.getRevolutionDistance() |
setRosePaint | public void setRosePaint(Paint paint)(Code) | | Sets the paint used to fill the outer circle of the compass,
and sends a
PlotChangeEvent to all registered listeners.
Parameters: paint - the paint (null not permitted). See Also: CompassPlot.getRosePaint() |
setSeriesNeedle | public void setSeriesNeedle(int index, int type)(Code) | | Sets the needle for a series. The needle type is one of the following:
Parameters: index - the series index. Parameters: type - the needle type. See Also: CompassPlot.setSeriesNeedle(int) |
setSeriesNeedle | public void setSeriesNeedle(int index, MeterNeedle needle)(Code) | | Sets the needle for a series and sends a
PlotChangeEvent to all
registered listeners.
Parameters: index - the series index. Parameters: needle - the needle. |
zoom | public void zoom(double percent)(Code) | | No zooming is implemented for compass plot, so this method is empty.
Parameters: percent - the zoom amount. |
Methods inherited from org.jfree.chart.plot.Plot | public void addChangeListener(PlotChangeListener listener)(Code)(Java Doc) public void axisChanged(AxisChangeEvent event)(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) public void datasetChanged(DatasetChangeEvent event)(Code)(Java Doc) abstract public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code)(Java Doc) public void drawBackground(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) public void drawBackgroundImage(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) protected void drawNoDataMessage(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) public void drawOutline(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) protected void fillBackground(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) protected void fillBackground(Graphics2D g2, Rectangle2D area, PlotOrientation orientation)(Code)(Java Doc) public float getBackgroundAlpha()(Code)(Java Doc) public Image getBackgroundImage()(Code)(Java Doc) public int getBackgroundImageAlignment()(Code)(Java Doc) public float getBackgroundImageAlpha()(Code)(Java Doc) public Paint getBackgroundPaint()(Code)(Java Doc) public DatasetGroup getDatasetGroup()(Code)(Java Doc) public DrawingSupplier getDrawingSupplier()(Code)(Java Doc) public float getForegroundAlpha()(Code)(Java Doc) public RectangleInsets getInsets()(Code)(Java Doc) public LegendItemCollection getLegendItems()(Code)(Java Doc) public String getNoDataMessage()(Code)(Java Doc) public Font getNoDataMessageFont()(Code)(Java Doc) public Paint getNoDataMessagePaint()(Code)(Java Doc) public Paint getOutlinePaint()(Code)(Java Doc) public Stroke getOutlineStroke()(Code)(Java Doc) public Plot getParent()(Code)(Java Doc) abstract public String getPlotType()(Code)(Java Doc) protected double getRectX(double x, double w1, double w2, RectangleEdge edge)(Code)(Java Doc) protected double getRectY(double y, double h1, double h2, RectangleEdge edge)(Code)(Java Doc) public Plot getRootPlot()(Code)(Java Doc) public void handleClick(int x, int y, PlotRenderingInfo info)(Code)(Java Doc) public boolean isOutlineVisible()(Code)(Java Doc) public boolean isSubplot()(Code)(Java Doc) public void markerChanged(MarkerChangeEvent event)(Code)(Java Doc) public void notifyListeners(PlotChangeEvent event)(Code)(Java Doc) public void removeChangeListener(PlotChangeListener listener)(Code)(Java Doc) public static RectangleEdge resolveDomainAxisLocation(AxisLocation location, PlotOrientation orientation)(Code)(Java Doc) public static RectangleEdge resolveRangeAxisLocation(AxisLocation location, PlotOrientation orientation)(Code)(Java Doc) public void setBackgroundAlpha(float alpha)(Code)(Java Doc) public void setBackgroundImage(Image image)(Code)(Java Doc) public void setBackgroundImageAlignment(int alignment)(Code)(Java Doc) public void setBackgroundImageAlpha(float alpha)(Code)(Java Doc) public void setBackgroundPaint(Paint paint)(Code)(Java Doc) protected void setDatasetGroup(DatasetGroup group)(Code)(Java Doc) public void setDrawingSupplier(DrawingSupplier supplier)(Code)(Java Doc) public void setForegroundAlpha(float alpha)(Code)(Java Doc) public void setInsets(RectangleInsets insets)(Code)(Java Doc) public void setInsets(RectangleInsets insets, boolean notify)(Code)(Java Doc) public void setNoDataMessage(String message)(Code)(Java Doc) public void setNoDataMessageFont(Font font)(Code)(Java Doc) public void setNoDataMessagePaint(Paint paint)(Code)(Java Doc) public void setOutlinePaint(Paint paint)(Code)(Java Doc) public void setOutlineStroke(Stroke stroke)(Code)(Java Doc) public void setOutlineVisible(boolean visible)(Code)(Java Doc) public void setParent(Plot parent)(Code)(Java Doc) public void zoom(double percent)(Code)(Java Doc)
|
|
|