All Packages Class Hierarchy This Package Previous Next Index
Class objects.EuInterval
java.lang.Object
|
+----objects.EuObject
|
+----objects.EuPoint
|
+----objects.EuLine
|
+----objects.EuInterval
- public class EuInterval
- extends EuLine
An instance of this class represents an interval,
represented as a line using @see EuLine, along with two endpoints.
-
EuInterval(double, double, double, double, double, double)
- The constructor does initialization.
-
atLeftEnd()
-
-
atRightEnd()
-
-
castIdentical(EuObject)
- See if passed object can be cast to the present one.
-
closureContains(EuVector)
- See if passed point lies on the interval.
-
draw(Graphics, mouseInfo)
- Draw the intervalline, using the
-
interiorContains(EuVector)
- See if passed point lies inside the interval..
-
MouseVicinity(mouseVector, mouseInfo)
- See if mouse position is close to this line.
-
myFullShadow()
-
-
overlaps(EuObject)
- See if objects overlap.
-
setShadow(int)
- Sets the
-
subType()
-
EuInterval
public EuInterval(double x,
double y,
double deltax,
double deltay,
double s,
double t) throws LeaRuntimeException, WarningTurnedException
- The constructor does initialization. A zero generator vector gives a
LeaRuntimeException. A degenerate interval is handled by the warner.
- Parameters:
- x - the first coordinate of anchor
- y - the second coordinate of anchor
- deltax - the first coordinate of generator
- deltay - the second coordinate of generator
- s - the left parameter of the endpoint
- t - the right parameter of the endpoint
atLeftEnd
public EuWorkVector atLeftEnd()
- Returns:
- The point at the left end of the interval
atRightEnd
public EuWorkVector atRightEnd()
- Returns:
- The point at the right end of the interval
draw
public void draw(Graphics g,
mouseInfo info)
- Draw the intervalline, using the @see mouseInfo for scaling and positioning.
- Parameters:
- g - the Graphics handle on the window
- info - information used in positioning the object
- Overrides:
- draw in class EuLine
castIdentical
public boolean castIdentical(EuObject other)
- See if passed object can be cast to the present one.
- Parameters:
- other - the object being compared to the present one
- Returns:
- true if passed object is a @see EuInterval
which is identical to this one
- Overrides:
- castIdentical in class EuLine
MouseVicinity
public boolean MouseVicinity(mouseVector mouseAt,
mouseInfo info)
- See if mouse position is close to this line.
- 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 line.
- Overrides:
- MouseVicinity in class EuLine
overlaps
public boolean overlaps(EuObject other)
- See if objects overlap.
- Parameters:
- other - the object being compared to the present one
- Returns:
- true if passed object is a @see EuLine, @see EuHalf or @see EuInterval
which overlaps with this one
- Overrides:
- overlaps in class EuLine
interiorContains
public boolean interiorContains(EuVector point)
- See if passed point lies inside the interval..
- Parameters:
- point - the point being compared to the present interval
- Returns:
- true if passed point lies on the interval.
- Overrides:
- interiorContains in class EuLine
closureContains
public boolean closureContains(EuVector point)
- See if passed point lies on the interval.
- Parameters:
- point - the point being compared to the present interval
- Returns:
- true if passed point lies on the interval.
- Overrides:
- closureContains in class EuLine
subType
public int subType()
- Returns:
- @see AN_INTERVAL
- Overrides:
- subType in class EuLine
myFullShadow
public int myFullShadow()
- Returns:
- a shadow for this object as recorded in @see shadow
- Overrides:
- myFullShadow in class EuLine
setShadow
public void setShadow(int i)
- Sets the @see EuLab number of the full object behind the present one.
- Returns:
- i the EuLab index
- Overrides:
- setShadow in class EuLine
All Packages Class Hierarchy This Package Previous Next Index