ChartCat 1.2

li.netcat.chart.util.tag
Class CircleTagConstraints

java.lang.Object
  extended byli.netcat.chart.util.tag.CircleTagConstraints
All Implemented Interfaces:
TagConstraints

public class CircleTagConstraints
extends java.lang.Object
implements TagConstraints

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.

Author:
Arthur Marxer

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

CircleTagConstraints

public CircleTagConstraints(float x,
                            float y,
                            float radius)
Constructs a new instance of CircleTagConstraints using the given parameters.

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.

CircleTagConstraints

public CircleTagConstraints(float x,
                            float y,
                            float radius,
                            float stretch)
Constructs a new instance of CircleTagConstraints using the given parameters.

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.0f
Method Detail

displace

public void displace(Tag tag)
Description copied from interface: TagConstraints
Does the primary displacement of the given tag. This method typically modifies the properties tagX, tagY, directionX and directionY of the given tag.

Specified by:
displace in interface TagConstraints
Parameters:
tag - The tag that needs a primary displacement.

ChartCat 1.2

Copyright © 2003 - 2005 NetCat Inc.. All rights reserved. Feedback

Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print, Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print, Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print