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


Field Summary
 
Fields inherited from class objects.EuInterval
degenerate, inParameter, outParameter
 
Fields inherited from class objects.EuLine
generator
 
Fields inherited from class objects.EuParametrized
anchor
 
Fields inherited from class objects.EuObject
infoHash, provenience, scaledown
 
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 objects.EuLine
atParameter, cloneMe, closestParameterOnLine, confusionDistance, onSameLine, superIdentical
 
Methods inherited from class objects.EuParametrized
atParameter, atParameter, closestParameter, closureContains, distance, matchingPair, nameLocation, randomPoint
 
Methods inherited from class objects.EuObject
cloneObject, draw, equals, getClip, isVisible, mouseVicinity, mouseVicinity, toPs
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 anchor
y - the second coordinate of anchor
deltax - the first coordinate of generator
deltay - the second coordinate of generator
s - the parameter of one endpoint
t - the parameter of other endpoint
Throws:
UserException - if an error occurs
Method Detail

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