defaultDisplay
protected void defaultDisplay(Graphics2D g2,
Shape shape)
Displays a shape.
g2
- the graphics device.shape
- the shape.
draw
public void draw(Graphics2D g2,
Rectangle2D plotArea)
Draws the needle.
g2
- the graphics device.plotArea
- the plot area.
draw
public void draw(Graphics2D g2,
Rectangle2D plotArea,
Point2D rotate,
double angle)
Draws the needle.
g2
- the graphics device.plotArea
- the plot area.rotate
- the rotation point.angle
- the angle.
draw
public void draw(Graphics2D g2,
Rectangle2D plotArea,
double angle)
Draws the needle.
g2
- the graphics device.plotArea
- the plot area.angle
- the angle.
drawNeedle
protected abstract void drawNeedle(Graphics2D g2,
Rectangle2D plotArea,
Point2D rotate,
double angle)
Draws the needle.
g2
- the graphics device.plotArea
- the plot area.rotate
- the rotation point.angle
- the angle.
equals
public boolean equals(Object obj)
Tests another object for equality with this object.
obj
- the object to test (null
permitted).
getFillPaint
public Paint getFillPaint()
Returns the fill paint.
getRotateX
public double getRotateX()
Returns the scalar used for determining the rotation x value.
getRotateY
public double getRotateY()
Returns the scalar used for determining the rotation y value.
getSize
public int getSize()
Returns the size.
getTransform
public AffineTransform getTransform()
Returns the transform.
setFillPaint
public void setFillPaint(Paint p)
Sets the fill paint.
setOutlinePaint
public void setOutlinePaint(Paint p)
Sets the outline paint.
setRotateX
public void setRotateX(double x)
Sets the rotateX value.
setRotateY
public void setRotateY(double y)
Sets the rotateY value.
setSize
public void setSize(int pixels)
Sets the size.