com.jfimagine.jfgraph.geom
Class JFCurvePoint

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

public class JFCurvePoint
extends JFPoint

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

Version:
$Revision: 1.1 $
Author:
CookieMaker

Constructor Summary
JFCurvePoint()
          Constructor for JFCurvePoint.
JFCurvePoint(JFCurvePoint pnt)
          Constructor for JFCurvePoint.
 
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.
 int getSegmentId()
          Get the serial number of the curve segments.
 double getTimeInterval()
          Get time interval
 int getTotalSegments()
          Get total segments of the curve.
 int hashCode()
          Returns the hashcode for this Object.
 void setSegmentId(int segmentId)
          Set the serial number of the curve segments.
 void setTimeInterval(double timeInterval)
          Set time interval
 void setTotalSegments(int totalSegments)
          Set total segments of the curve.
 void setValue(JFCurvePoint pnt)
          Set value of current JFCurvePoint.
 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
 

Constructor Detail

JFCurvePoint

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


JFCurvePoint

public JFCurvePoint(JFCurvePoint pnt)
Constructor for JFCurvePoint.

Parameters:
pnt - A JFCurvePoint.
Method Detail

getSegmentId

public int getSegmentId()
Get the serial number of the curve segments.

Returns:
The serial number.

setSegmentId

public void setSegmentId(int segmentId)
Set the serial number of the curve segments.

Parameters:
segmentId - A new segment serial number.

getTotalSegments

public int getTotalSegments()
Get total segments of the curve.

Returns:
The total segments.

setTotalSegments

public void setTotalSegments(int totalSegments)
Set total segments of the curve.


getTimeInterval

public double getTimeInterval()
Get time interval

Returns:
The time interval

setTimeInterval

public void setTimeInterval(double timeInterval)
Set time interval


setValue

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


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.