|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectli.netcat.chart.util.tag.CircleTagConstraints
This tag constraints define that all tags must be placed on a circle. The circle is defined with its center and its radius. This class is designed to be immutable.
Constructor Summary | |
CircleTagConstraints(float x,
float y,
float radius)
Constructs a new instance of CircleTagConstraints using the given parameters. |
|
CircleTagConstraints(float x,
float y,
float radius,
float stretch)
Constructs a new instance of CircleTagConstraints using the given parameters. |
Method Summary | |
void |
displace(Tag tag)
Does the primary displacement of the given tag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CircleTagConstraints(float x, float y, float radius)
CircleTagConstraints
using the given parameters.
x
- The x-coordinate of the center of the circle.y
- The y-coordinate of the center of the circle.radius
- The radius of the circle.public CircleTagConstraints(float x, float y, float radius, float stretch)
CircleTagConstraints
using the given parameters.
x
- The x-coordinate of the center of the circle.y
- The y-coordinate of the center of the circle.radius
- The radius of the circle.stretch
- The stretch value of the circle in x-Direction. The default is 1.0fMethod Detail |
public void displace(Tag tag)
TagConstraints
tagX
, tagY
, directionX
and directionY
of
the given tag.
displace
in interface TagConstraints
tag
- The tag that needs a primary displacement.
|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |