public abstract class MeterNeedle extends Object implements Serializable
CompassPlot
.Constructor and Description |
---|
MeterNeedle()
Creates a new needle.
|
MeterNeedle(Paint outline,
Paint fill,
Paint highlight)
Creates a new needle.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
int |
hashCode()
Returns a hash code for this instance.
|
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.
|
public Paint getOutlinePaint()
public void setOutlinePaint(Paint p)
p
- the new paint.public Stroke getOutlineStroke()
public void setOutlineStroke(Stroke s)
s
- the new stroke.public Paint getFillPaint()
public void setFillPaint(Paint p)
p
- the fill paint.public Paint getHighlightPaint()
public void setHighlightPaint(Paint p)
p
- the highlight paint.public double getRotateX()
public void setRotateX(double x)
x
- the new value.public void setRotateY(double y)
y
- the new value.public double getRotateY()
public void draw(Graphics2D g2, Rectangle2D plotArea)
g2
- the graphics device.plotArea
- the plot area.public void draw(Graphics2D g2, Rectangle2D plotArea, double angle)
g2
- the graphics device.plotArea
- the plot area.angle
- the angle.public void draw(Graphics2D g2, Rectangle2D plotArea, Point2D rotate, double angle)
g2
- the graphics device.plotArea
- the plot area.rotate
- the rotation point.angle
- the angle.public int getSize()
public void setSize(int pixels)
pixels
- the new size.public AffineTransform getTransform()
public boolean equals(Object obj)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics