|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object li.netcat.chart.util.ArcValueLocation
Implementation of a value location that describes an arc.
Constructor Summary | |
ArcValueLocation(float centerX,
float centerY,
float radius,
float thickness,
double trailAngle,
double leadAngle)
Constructs a new ArcValueLocation and initializes all of its fields to the given values. |
|
ArcValueLocation(float centerX,
float centerY,
float radius,
float thickness,
double trailAngle,
double leadAngle,
float stretch)
Constructs a new ArcValueLocation and initializes all of its fields to the given values. |
Method Summary | |
float |
getCenterX()
Returns the x-coordinate of the center point. |
float |
getCenterY()
Returns the y-coordinate of the center point. |
float |
getInnerRadius()
Returns the inner radius form the center to the inner bound of the arc. |
double |
getLeadAngle()
Returns the angle of the lead value. |
float |
getLeadX()
Returns the x-coordinate of the lead point. |
float |
getLeadY()
Returns the y-coordinate of the lead point. |
float |
getOuterRadius()
Returns the outer radius form the center to the outer bound of the arc. |
float |
getRadius()
Returns the radius form the center to the middle of the arc. |
float |
getStretch()
Returns the stretch value in x-Direction. |
float |
getThickness()
Returns the thickness of the arc i.e. the difference between inner and outer radius. |
double |
getTrailAngle()
Returns the angle of the trail value. |
float |
getTrailX()
Returns the x-coordinate of the trail point. |
float |
getTrailY()
Returns the y-coordinate of the trail point. |
float |
getX(float lenghtPosition,
float lenghtShift,
float crossPosition,
float crossShift)
Returns the x-coordinate of an arbitrary point in this value location. |
float |
getY(float lenghtPosition,
float lenghtShift,
float crossPosition,
float crossShift)
Returns the y-coordinate of an arbitrary point in this value location. |
void |
move(float dx,
float dy)
Moves this value location by the given value. |
void |
moveRadial(float amount)
Moves this value location in the radial direction by the given amount. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ArcValueLocation(float centerX, float centerY, float radius, float thickness, double trailAngle, double leadAngle)
ArcValueLocation
and initializes all of its fields to the given values.
centerX
- The x-coordinate of the center point.centerY
- The y-coordinate of the center point.radius
- The radius form the center to the middle of the arc, must be > 0.0.thickness
- The thickness of the arc.trailAngle
- The angle to the trail value in radians.leadAngle
- The angle to the lead value in radians.public ArcValueLocation(float centerX, float centerY, float radius, float thickness, double trailAngle, double leadAngle, float stretch)
ArcValueLocation
and initializes all of its fields to the given values.
centerX
- The x-coordinate of the center point.centerY
- The y-coordinate of the center point.radius
- The radius form the center to the middle of the arc, must be > 0.0.thickness
- The thickness of the arc.trailAngle
- The angle to the trail value in radians.leadAngle
- The angle to the lead value in radians.stretch
- The stretch value in x-Direction. 1.0f is the default.Method Detail |
public float getCenterX()
public float getCenterY()
public float getRadius()
public float getOuterRadius()
public float getInnerRadius()
public float getThickness()
public double getTrailAngle()
public double getLeadAngle()
public float getStretch()
public void moveRadial(float amount)
amount
- The move amount in pixel. Positive values move towards the outside.public float getLeadX()
ValueLocation
getLeadX
in interface ValueLocation
public float getLeadY()
ValueLocation
getLeadY
in interface ValueLocation
public float getTrailX()
ValueLocation
getTrailX
in interface ValueLocation
public float getTrailY()
ValueLocation
getTrailY
in interface ValueLocation
public float getX(float lenghtPosition, float lenghtShift, float crossPosition, float crossShift)
ValueLocation
getX
in interface ValueLocation
lenghtPosition
- The relative position in the length direction. 0.0 refers to the trail point, 1.0 to the lead point.lenghtShift
- The additional shift of the result position in the length direction in pixel.crossPosition
- The relative position in the crosswise direction. 0.5 refers to the middle, 0.0 and 1.0 to the borders.crossShift
- The additional shift of the result position in the crosswise direction in pixel.public float getY(float lenghtPosition, float lenghtShift, float crossPosition, float crossShift)
ValueLocation
getY
in interface ValueLocation
lenghtPosition
- The relative position in the length direction. 0.0 refers to the trail point, 1.0 to the lead point.lenghtShift
- The additional shift of the result position in the length direction in pixel.crossPosition
- The relative position in the crosswise direction. 0.5 refers to the middle, 0.0 and 1.0 to the borders.crossShift
- The additional shift of the result position in the crosswise direction in pixel.public void move(float dx, float dy)
ValueLocation
move
in interface ValueLocation
dx
- Movement in the x direction.dy
- Movement in the y direction.
|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |