| java.lang.Object org.jfree.chart.needle.MeterNeedle
All known Subclasses: org.jfree.chart.needle.ShipNeedle, org.jfree.chart.needle.LineNeedle, org.jfree.chart.needle.LongNeedle, org.jfree.chart.needle.PointerNeedle, org.jfree.chart.needle.PlumNeedle, org.jfree.chart.needle.PinNeedle, org.jfree.chart.needle.ArrowNeedle, org.jfree.chart.needle.MiddlePinNeedle,
Method Summary | |
protected void | defaultDisplay(Graphics2D g2, Shape shape) Displays a shape. | public void | draw(Graphics2D g2, Rectangle2D plotArea) Draws the needle. | public void | draw(Graphics2D g2, Rectangle2D plotArea, double angle) Draws the needle. | public void | draw(Graphics2D g2, Rectangle2D plotArea, Point2D rotate, double angle) Draws the needle. | abstract protected void | drawNeedle(Graphics2D g2, Rectangle2D plotArea, Point2D rotate, double angle) Draws the needle. | public boolean | equals(Object obj) Tests another object for equality with this object.
Parameters: obj - the object to test (null permitted). | public Paint | getFillPaint() Returns the fill paint. | public Paint | getHighlightPaint() Returns the highlight paint. | public Paint | getOutlinePaint() Returns the outline paint. | public Stroke | getOutlineStroke() Returns the outline stroke. | public double | getRotateX() Returns the scalar used for determining the rotation x value. | public double | getRotateY() Returns the scalar used for determining the rotation y value. | public int | getSize() Returns the size. | public AffineTransform | getTransform() Returns the transform. | public void | setFillPaint(Paint p) Sets the fill paint. | public void | setHighlightPaint(Paint p) Sets the highlight paint. | public void | setOutlinePaint(Paint p) Sets the outline paint. | public void | setOutlineStroke(Stroke s) Sets the outline stroke. | public void | setRotateX(double x) Sets the rotateX value. | public void | setRotateY(double y) Sets the rotateY value. | public void | setSize(int pixels) Sets the size. |
MeterNeedle | public MeterNeedle()(Code) | | Creates a new needle.
|
MeterNeedle | public MeterNeedle(Paint outline, Paint fill, Paint highlight)(Code) | | Creates a new needle.
Parameters: outline - the outline paint (null permitted). Parameters: fill - the fill paint (null permitted). Parameters: highlight - the highlight paint (null permitted). |
defaultDisplay | protected void defaultDisplay(Graphics2D g2, Shape shape)(Code) | | Displays a shape.
Parameters: g2 - the graphics device. Parameters: shape - the shape. |
draw | public void draw(Graphics2D g2, Rectangle2D plotArea)(Code) | | Draws the needle.
Parameters: g2 - the graphics device. Parameters: plotArea - the plot area. |
draw | public void draw(Graphics2D g2, Rectangle2D plotArea, double angle)(Code) | | Draws the needle.
Parameters: g2 - the graphics device. Parameters: plotArea - the plot area. Parameters: angle - the angle. |
draw | public void draw(Graphics2D g2, Rectangle2D plotArea, Point2D rotate, double angle)(Code) | | Draws the needle.
Parameters: g2 - the graphics device. Parameters: plotArea - the plot area. Parameters: rotate - the rotation point. Parameters: angle - the angle. |
drawNeedle | abstract protected void drawNeedle(Graphics2D g2, Rectangle2D plotArea, Point2D rotate, double angle)(Code) | | Draws the needle.
Parameters: g2 - the graphics device. Parameters: plotArea - the plot area. Parameters: rotate - the rotation point. Parameters: angle - the angle. |
equals | public boolean equals(Object obj)(Code) | | Tests another object for equality with this object.
Parameters: obj - the object to test (null permitted). A boolean. |
getFillPaint | public Paint getFillPaint()(Code) | | Returns the fill paint.
The fill paint. |
getHighlightPaint | public Paint getHighlightPaint()(Code) | | Returns the highlight paint.
The highlight paint. |
getOutlinePaint | public Paint getOutlinePaint()(Code) | | Returns the outline paint.
The outline paint. |
getOutlineStroke | public Stroke getOutlineStroke()(Code) | | Returns the outline stroke.
The outline stroke. |
getRotateX | public double getRotateX()(Code) | | Returns the scalar used for determining the rotation x value.
The x rotate scalar. |
getRotateY | public double getRotateY()(Code) | | Returns the scalar used for determining the rotation y value.
The y rotate scalar. |
getSize | public int getSize()(Code) | | Returns the size.
The size. |
setFillPaint | public void setFillPaint(Paint p)(Code) | | Sets the fill paint.
Parameters: p - the fill paint. |
setHighlightPaint | public void setHighlightPaint(Paint p)(Code) | | Sets the highlight paint.
Parameters: p - the highlight paint. |
setOutlinePaint | public void setOutlinePaint(Paint p)(Code) | | Sets the outline paint.
Parameters: p - the new paint. |
setOutlineStroke | public void setOutlineStroke(Stroke s)(Code) | | Sets the outline stroke.
Parameters: s - the new stroke. |
setRotateX | public void setRotateX(double x)(Code) | | Sets the rotateX value.
Parameters: x - the new value. |
setRotateY | public void setRotateY(double y)(Code) | | Sets the rotateY value.
Parameters: y - the new value. |
setSize | public void setSize(int pixels)(Code) | | Sets the size.
Parameters: pixels - the new size. |
|
|