| java.lang.Object org.jfree.chart.plot.Plot org.jfree.experimental.chart.plot.dial.DialPlot
Constructor Summary | |
public | DialPlot() Creates a new instance of DialPlot . |
Method Summary | |
public void | addLayer(DialLayer layer) Adds a layer to the plot. | public void | addScale(int index, DialScale scale) Adds a dial scale to the plot. | public void | dialLayerChanged(DialLayerChangeEvent event) Receives notification when a layer has changed. | public void | draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) Draws the plot. | public boolean | equals(Object obj) Tests this DialPlot instance for equality with an
arbitrary object. | public DialLayer | getBackground() Returns the background. | public DialLayer | getCap() Returns the cap. | public ValueDataset | getDataset() Returns the primary dataset for the plot. | public ValueDataset | getDataset(int index) Returns the dataset at the given index.
Parameters: index - the dataset index. | public int | getDatasetCount() Returns the number of datasets. | public DialFrame | getDialFrame() Returns the dial's frame. | public String | getPlotType() Returns the plot type. | public DialScale | getScale(int index) Returns the scale at the given index.
Parameters: index - the scale index. | public DialScale | getScaleForDataset(int datasetIndex) Returns the dial scale for a specific dataset.
Parameters: datasetIndex - the dataset index. | public double | getValue(int datasetIndex) Returns the value from the specified dataset.
Parameters: datasetIndex - the dataset index. | public double | getViewHeight() Returns the height of the viewing rectangle. | public double | getViewWidth() Returns the width of the viewing rectangle. | public double | getViewX() Returns the x-coordinate of the viewing rectangle. | public double | getViewY() Returns the y-coordinate of the viewing rectangle. | public int | hashCode() Returns a hash code for this instance. | public void | mapDatasetToScale(int index, int scaleIndex) Maps a dataset to a particular scale. | public static Rectangle2D | rectangleByRadius(Rectangle2D rect, double radiusW, double radiusH) A utility method that computes a rectangle using relative radius values.
Parameters: rect - the reference rectangle. Parameters: radiusW - the width radius (must be > 0.0) Parameters: radiusH - the height radius. | public void | setBackground(DialLayer background) Sets the background layer. | public void | setCap(DialLayer cap) Sets the cap. | public void | setDataset(ValueDataset dataset) Sets the dataset for the plot, replacing the existing dataset, if there
is one, and sends a
PlotChangeEvent to all registered
listeners. | public void | setDataset(int index, ValueDataset dataset) Sets a dataset for the plot. | public void | setDialFrame(DialFrame frame) Sets the dial's frame. | public void | setView(double x, double y, double w, double h) Sets the viewing rectangle, relative to the dial's framing rectangle. |
DialPlot | public DialPlot()(Code) | | Creates a new instance of DialPlot .
|
addLayer | public void addLayer(DialLayer layer)(Code) | | Adds a layer to the plot.
Parameters: layer - the layer (null not permitted). |
addScale | public void addScale(int index, DialScale scale)(Code) | | Adds a dial scale to the plot.
Parameters: index - the scale index. Parameters: scale - the scale. |
dialLayerChanged | public void dialLayerChanged(DialLayerChangeEvent event)(Code) | | Receives notification when a layer has changed.
Parameters: event - the event. |
draw | public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code) | | Draws the plot. This method is usually called by the
JFreeChart instance that manages the plot.
Parameters: g2 - the graphics target. Parameters: area - the area in which the plot should be drawn. Parameters: anchor - the anchor point (typically the last point that the mouse clicked on, null is permitted). Parameters: parentState - the state for the parent plot (if any). Parameters: info - used to collect plot rendering info (null permitted). |
equals | public boolean equals(Object obj)(Code) | | Tests this DialPlot instance for equality with an
arbitrary object. The plot's dataset(s) is (are) not included in
the test.
Parameters: obj - the object (null permitted). A boolean. |
getDataset | public ValueDataset getDataset()(Code) | | Returns the primary dataset for the plot.
The primary dataset (possibly null ). |
getDataset | public ValueDataset getDataset(int index)(Code) | | Returns the dataset at the given index.
Parameters: index - the dataset index. The dataset (possibly null ). |
getDatasetCount | public int getDatasetCount()(Code) | | Returns the number of datasets.
The number of datasets. |
getPlotType | public String getPlotType()(Code) | | Returns the plot type.
"DialPlot" |
getScale | public DialScale getScale(int index)(Code) | | Returns the scale at the given index.
Parameters: index - the scale index. The scale (possibly null ). |
getScaleForDataset | public DialScale getScaleForDataset(int datasetIndex)(Code) | | Returns the dial scale for a specific dataset.
Parameters: datasetIndex - the dataset index. The dial scale. |
getValue | public double getValue(int datasetIndex)(Code) | | Returns the value from the specified dataset.
Parameters: datasetIndex - the dataset index. The data value. |
getViewHeight | public double getViewHeight()(Code) | | Returns the height of the viewing rectangle. This is specified
in the range 0.0 to 1.0, relative to the dial's framing rectangle.
The height of the viewing rectangle. See Also: DialPlot.setView(double,double,double,double) |
getViewWidth | public double getViewWidth()(Code) | | Returns the width of the viewing rectangle. This is specified
in the range 0.0 to 1.0, relative to the dial's framing rectangle.
The width of the viewing rectangle. See Also: DialPlot.setView(double,double,double,double) |
getViewX | public double getViewX()(Code) | | Returns the x-coordinate of the viewing rectangle. This is specified
in the range 0.0 to 1.0, relative to the dial's framing rectangle.
The x-coordinate of the viewing rectangle. See Also: DialPlot.setView(double,double,double,double) |
getViewY | public double getViewY()(Code) | | Returns the y-coordinate of the viewing rectangle. This is specified
in the range 0.0 to 1.0, relative to the dial's framing rectangle.
The y-coordinate of the viewing rectangle. See Also: DialPlot.setView(double,double,double,double) |
hashCode | public int hashCode()(Code) | | Returns a hash code for this instance.
The hash code. |
mapDatasetToScale | public void mapDatasetToScale(int index, int scaleIndex)(Code) | | Maps a dataset to a particular scale.
Parameters: index - the dataset index (zero-based). Parameters: scaleIndex - the scale index (zero-based). |
rectangleByRadius | public static Rectangle2D rectangleByRadius(Rectangle2D rect, double radiusW, double radiusH)(Code) | | A utility method that computes a rectangle using relative radius values.
Parameters: rect - the reference rectangle. Parameters: radiusW - the width radius (must be > 0.0) Parameters: radiusH - the height radius. A new rectangle. |
setDataset | public void setDataset(ValueDataset dataset)(Code) | | Sets the dataset for the plot, replacing the existing dataset, if there
is one, and sends a
PlotChangeEvent to all registered
listeners.
Parameters: dataset - the dataset (null permitted). |
setDataset | public void setDataset(int index, ValueDataset dataset)(Code) | | Sets a dataset for the plot.
Parameters: index - the dataset index. Parameters: dataset - the dataset (null permitted). |
setView | public void setView(double x, double y, double w, double h)(Code) | | Sets the viewing rectangle, relative to the dial's framing rectangle.
Parameters: x - the x-coordinate (in the range 0.0 to 1.0). Parameters: y - the y-coordinate (in the range 0.0 to 1.0). Parameters: w - the width (in the range 0.0 to 1.0). Parameters: h - the height (in the range 0.0 to 1.0). See Also: DialPlot.getViewX() See Also: DialPlot.getViewY() See Also: DialPlot.getViewWidth() See Also: DialPlot.getViewHeight() |
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)
|
|
|