com.jfimagine.jfgraph.geom
Class JFArcPoint

java.lang.Object
  |
  +--com.jfimagine.jfgraph.geom.JFPoint
        |
        +--com.jfimagine.jfgraph.geom.JFArcPoint
All Implemented Interfaces:
java.lang.Cloneable

public class JFArcPoint
extends JFPoint

JFArcPoint class. This class is an assistant class used to represent a certain position on a bezier curve.

Version:
$Revision: 1.1 $
Author:
CookieMaker

Field Summary
static int POINTTYPE_CHORD
          Point on chord
static int POINTTYPE_CURVE
          Point on curve
static int POINTTYPE_PIE_END
          Point on end pie side.
static int POINTTYPE_PIE_START
          Point on start pie side.
 
Constructor Summary
JFArcPoint()
          Constructor for JFArcPoint.
JFArcPoint(JFArcPoint pnt)
          Constructor for JFArcPoint.
 
Method Summary
 java.lang.Object clone()
          Creates a new object of the same class and with the same contents as this object.
 boolean equals(java.lang.Object obj, boolean analog)
          Determines whether or not two objects are equal.
 double getScale()
          Get the angle scale.
 int getType()
          Get the point type.
 int hashCode()
          Returns the hashcode for this Object.
 void setScale(double scale)
          Set the angle scale.
 void setType(int type)
          Set the point type.
 void setValue(JFArcPoint pnt)
          Set value of current JFArcPoint.
 java.lang.String toString()
          Convert this object to String
 
Methods inherited from class com.jfimagine.jfgraph.geom.JFPoint
contains, contains, distance, distance, equals, equals, flipBy, getMiddleUprightPoint, getSlope, getSlope, getX, getY, isValid, middleOf, middleOf, midPoint, midPoint, mirrorBy, moveBy, nearPoint, nearPoint, nearPoint, rotateBy, rotateBy, scaleBy, scaleBy, scaleBy, setValue, setValue, setX, setY
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

POINTTYPE_CURVE

public static final int POINTTYPE_CURVE
Point on curve

See Also:
Constant Field Values

POINTTYPE_CHORD

public static final int POINTTYPE_CHORD
Point on chord

See Also:
Constant Field Values

POINTTYPE_PIE_START

public static final int POINTTYPE_PIE_START
Point on start pie side.

See Also:
Constant Field Values

POINTTYPE_PIE_END

public static final int POINTTYPE_PIE_END
Point on end pie side.

See Also:
Constant Field Values
Constructor Detail

JFArcPoint

public JFArcPoint()
Constructor for JFArcPoint. Default to 0 for x and y coordinates.


JFArcPoint

public JFArcPoint(JFArcPoint pnt)
Constructor for JFArcPoint.

Parameters:
pnt - A JFArcPoint.
Method Detail

getScale

public double getScale()
Get the angle scale.

Returns:
The angle scale.

setScale

public void setScale(double scale)
Set the angle scale.


getType

public int getType()
Get the point type.

Returns:
The point type.

setType

public void setType(int type)
Set the point type.


setValue

public void setValue(JFArcPoint pnt)
Set value of current JFArcPoint.


toString

public java.lang.String toString()
Convert this object to String

Overrides:
toString in class JFPoint
Returns:
An string represents the content of the object

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Creates a new object of the same class and with the same contents as this object.

Overrides:
clone in class JFPoint
Returns:
A clone of this instance.
java.lang.CloneNotSupportedException

hashCode

public int hashCode()
Returns the hashcode for this Object.

Overrides:
hashCode in class JFPoint
Returns:
hash code for this Point2D.

equals

public boolean equals(java.lang.Object obj,
                      boolean analog)
Determines whether or not two objects are equal.

Overrides:
equals in class JFPoint
Parameters:
obj - an object to be compared with this object
analog - True if use integer type to compare two points,False use double.
Returns:
true if the object to be compared is an instance of Port and has the same values; false otherwise.


Copyright 2004 ~ 2005 JingFei International Cooperation LTD. All Rights Reserved.