All Packages Class Hierarchy This Package Previous Next Index
Class objects.EuPoint
java.lang.Object
|
+----objects.EuObject
|
+----objects.EuPoint
- public class EuPoint
- extends EuObject
An instance of this class represents a point, represented as a cartesian pair.
-
anchor
-
-
EuPoint(double, double)
- The constructor does initialization.
-
EuPoint(EuVector)
- The constructor does initialization.
-
EuPoint(EuWorkVector)
- The constructor does initialization.
-
atParameter(double)
- Return in a
-
castIdentical(EuObject)
- See if passed object is identical to the present one.
-
closureContains(EuVector)
- See if passed point is identical to the present one.
-
draw(Graphics, mouseInfo)
- Draw the point as a symbol, defined in the
-
interiorContains(EuVector)
- Always false
-
matchingPair(EuVector, EuVector, EuVector, EuVector)
-
-
mouseVicinity(mouseVector, mouseInfo)
- See if mouse position is close to this point.
-
myFullShadow()
-
-
overlaps(EuObject)
- Acts identically to
-
setShadow(int)
- Sets the
-
subType()
-
-
type()
-
anchor
public EuVector anchor
EuPoint
public EuPoint(double x,
double y)
- The constructor does initialization. No error possibilities.
- Parameters:
- x - the first coordinate
- y - the second coordinate
EuPoint
public EuPoint(EuWorkVector v)
- The constructor does initialization. No error possibilities.
- Parameters:
- v - the vector
EuPoint
public EuPoint(EuVector v)
- The constructor does initialization. No error possibilities.
- Parameters:
- v - the vector
atParameter
public EuWorkVector atParameter(double t)
- Return in a @see EuWorkVector the point's coordinates.
- Parameters:
- t - the parameter (ignored)
- Returns:
- the coordinates
- Overrides:
- atParameter in class EuObject
draw
public void draw(Graphics g,
mouseInfo info)
- Draw the point as a symbol, defined in the @see mouseInfo class.
- Parameters:
- g - the Graphics handle on the window
- info - information used in positioning the object
- Overrides:
- draw in class EuObject
castIdentical
public boolean castIdentical(EuObject other)
- See if passed object is identical to the present one.
- Parameters:
- other - the object being compared to the present one
- Returns:
- true if passed object is a @see EuPoint with the same coordinates.
- Overrides:
- castIdentical in class EuObject
mouseVicinity
public boolean mouseVicinity(mouseVector mouseAt,
mouseInfo info)
- See if mouse position is close to this point.
- Parameters:
- mouseAt - The coordinates of the mouse position
- info - information used in locating the object on screen
- Returns:
- true if the mouse is close to the point.
- Overrides:
- mouseVicinity in class EuObject
overlaps
public boolean overlaps(EuObject other)
- Acts identically to @see castIdentical()
- Parameters:
- other - the object being compared to the present one
- Returns:
- true if passed object is a @see EuPoint with the same coordinates
- Overrides:
- overlaps in class EuObject
interiorContains
public boolean interiorContains(EuVector point)
- Always false
- Parameters:
- point - the point being compared to the present one
- Returns:
- true if passed object has same coordinates.
- Overrides:
- interiorContains in class EuObject
closureContains
public boolean closureContains(EuVector point)
- See if passed point is identical to the present one.
- Parameters:
- point - the point being compared to the present one
- Returns:
- true if passed object has same coordinates.
- Overrides:
- closureContains in class EuObject
type
public int type()
- Returns:
- @see POINT
- Overrides:
- type in class EuObject
subType
public int subType()
- Returns:
- @see A_POINT
- Overrides:
- subType in class EuObject
myFullShadow
public int myFullShadow()
- Returns:
- -1 as this object is full.
- Overrides:
- myFullShadow in class EuObject
matchingPair
protected boolean matchingPair(EuVector a,
EuVector b,
EuVector c,
EuVector d)
setShadow
public void setShadow(int i)
- Sets the @see EuLab number of the full object behind the present one.
- Returns:
- i the EuLab index (ignored)
- Overrides:
- setShadow in class EuObject
All Packages Class Hierarchy This Package Previous Next Index