objects
Class plotArc

java.lang.Object
  |
  +--objects.EuObject
        |
        +--objects.EuParametrized
              |
              +--objects.EuCircle
                    |
                    +--objects.EuArc
                          |
                          +--objects.plotArc
All Implemented Interfaces:
java.lang.Cloneable, plotObject

public class plotArc
extends EuArc
implements plotObject


Field Summary
 
Fields inherited from class objects.EuArc
inAngle, outAngle
 
Fields inherited from class objects.EuCircle
degenerate, radius
 
Fields inherited from class objects.EuParametrized
anchor
 
Fields inherited from class objects.EuObject
infoHash, provenience, scaledown
 
Constructor Summary
plotArc(double x, double y, double r, double s, double t, fundamentals.mouseInfo info)
          The constructor does initialization.
plotArc(double x, double y, double r, double s, double t, fundamentals.mouseInfo info, boolean isRadius)
          The constructor does initialization.
 
Method Summary
 void draw(java.awt.Graphics g)
          Draw the arc 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.EuArc
anInnerPoint, atInEnd, atOutEnd, castIdentical, closestParameter, computeClip, interiorContains, invisibleRandomPoint, isFull, overlaps, params, passArguments, toNaturalLanguage, toString, typeName
 
Methods inherited from class objects.EuCircle
atParameter, cloneMe, closestParameterOnCircle, closureContainsObject, confusionDistance, nameDisplacementAngle, nameParameter, onSameCircle, 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

plotArc

public plotArc(double x,
               double y,
               double r,
               double s,
               double t,
               fundamentals.mouseInfo info)
        throws DesignException,
               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
r - the radius
s - the lo parameter of the endpoint
t - the hi parameter of the endpoint
Throws:
DesignException - if an error occurs
UserException - if an error occurs

plotArc

public plotArc(double x,
               double y,
               double r,
               double s,
               double t,
               fundamentals.mouseInfo info,
               boolean isRadius)
        throws DesignException,
               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
r - the radius
s - the lo parameter of the endpoint
t - the hi parameter of the endpoint
Throws:
DesignException - if an error occurs
UserException - if an error occurs
Method Detail

draw

public void draw(java.awt.Graphics g)
Draw the arc 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