com.jfimagine.jfgraph.geom
Class JFEllipsePoint

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

public class JFEllipsePoint
extends JFPoint

JFEllipsePoint class. This class is an assistant class used to represent a certain position on an ellispe.

Version:
$Revision: 1.1 $
Author:
CookieMaker

Constructor Summary
JFEllipsePoint()
          Constructor for JFEllipsePoint.
JFEllipsePoint(JFEllipsePoint pnt)
          Constructor for JFEllipsePoint.
 
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.
 JFPoint getTargetPoint()
          Get target point on one side of the outer rectangle.
 int getTargetSideType()
          Get the target side type of current point.
 int hashCode()
          Returns the hashcode for this Object.
 void setTargetSideType(int targetSideType)
          Set the target side type of current point.
 void setValue(JFEllipsePoint pnt)
          Set value of current JFEllipsePoint.
 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

JFEllipsePoint

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


JFEllipsePoint

public JFEllipsePoint(JFEllipsePoint pnt)
Constructor for JFEllipsePoint.

Parameters:
pnt - A JFEllipsePoint.
Method Detail

getTargetSideType

public int getTargetSideType()
Get the target side type of current point.

Returns:
The target side type.

setTargetSideType

public void setTargetSideType(int targetSideType)
Set the target side type of current point.

Parameters:
targetSideType - A new target side type

getTargetPoint

public JFPoint getTargetPoint()
Get target point on one side of the outer rectangle.

Returns:
The target point on one side of the outer rectangle.

setValue

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


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.