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