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
|
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 java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 anchory - the second coordinate of anchorr - the radiuss - the lo parameter of the endpointt - 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 anchory - the second coordinate of anchorr - the radiuss - the lo parameter of the endpointt - the hi parameter of the endpoint
- Throws:
DesignException - if an error occurs
UserException - if an error occurs
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