objects
Class plotInterval
java.lang.Object
|
+--objects.EuObject
|
+--objects.EuParametrized
|
+--objects.EuLine
|
+--objects.EuInterval
|
+--objects.plotInterval
- All Implemented Interfaces:
- java.lang.Cloneable, plotObject
- public class plotInterval
- extends EuInterval
- implements plotObject
Constructor Summary |
plotInterval(double x,
double y,
double deltax,
double deltay,
double s,
double t,
fundamentals.mouseInfo info)
The constructor does initialization. |
Method Summary |
void |
draw(java.awt.Graphics g)
Draw the interval on screen. |
boolean |
mouseVicinity(fundamentals.mouseVector mouseAt)
See if mouse position is close to this point. |
java.lang.String |
toPs()
Represent the plot object as a postscript command |
double |
weight()
|
fundamentals.mouseVector |
visiblePixel(double parameter)
|
Methods inherited from class objects.EuInterval |
atInEnd, atOutEnd, castIdentical, closestParameter, computeClip, interiorContains, invisibleRandomPoint, isFull, nameDisplacementAngle, nameParameter, overlaps, params, passArguments, toNaturalLanguage, toString, typeName |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
plotInterval
public plotInterval(double x,
double y,
double deltax,
double deltay,
double s,
double t,
fundamentals.mouseInfo info)
throws UserException
- 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 anchory
- the second coordinate of anchordeltax
- the first coordinate of generatordeltay
- the second coordinate of generators
- the parameter of one endpointt
- the parameter of other endpoint
- Throws:
UserException
- if an error occurs
draw
public void draw(java.awt.Graphics g)
- Draw the interval on screen.
- Specified by:
draw
in interface plotObject
- Parameters:
g
- the graphics canvas
toPs
public java.lang.String toPs()
- Represent the plot object as a postscript command
- Specified by:
toPs
in interface plotObject
mouseVicinity
public boolean mouseVicinity(fundamentals.mouseVector mouseAt)
- See if mouse position is close to this point.
- Specified by:
mouseVicinity
in interface plotObject
- Parameters:
mouseAt
- The coordinates of the mouse position
- Returns:
- true if the mouse is close to the point.
visiblePixel
public fundamentals.mouseVector visiblePixel(double parameter)
- Specified by:
visiblePixel
in interface plotObject
weight
public double weight()
- Specified by:
weight
in interface plotObject