|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsddl.hierarchy.Shape
sddl.hierarchy.Arrow
public class Arrow
This Shape represents an Arrow
Constructor Summary | |
---|---|
Arrow(Path path)
Creates an Arrow from a Path |
Method Summary | |
---|---|
Arrow |
copy()
Returns a copy of this Arrow |
void |
draw(AbstractPoint location,
java.io.PrintWriter out)
Standard SDDL draw function. |
Path |
getPath()
Obtain the path of an arrow |
Path |
obtainPath()
Returns the Path used by this arrow |
void |
setEndingTangent(Point dir)
Standard SDDL setter for endingTangent property |
void |
setStartingTangent(Point dir)
Standard SDDL setter for startingTangent property |
void |
setText(java.lang.String text,
double position,
Point dir,
boolean absolute)
Sets the text of an arrow at a particular position |
Methods inherited from class sddl.hierarchy.Shape |
---|
isVisible, setVisible |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Arrow(Path path)
path
- The Path used to create an ArrowMethod Detail |
---|
public Arrow copy()
copy
in class Shape
public void setText(java.lang.String text, double position, Point dir, boolean absolute)
text
- The text to putposition
- The position at which to position it along the path (in the range [0..1])dir
- A vector describing the direction to useabsolute
- If true, the vector is interpreted as is, if not, the vector is interpreted relative to the tangent of the Path at the current positionpublic void setStartingTangent(Point dir)
dir
- The starting tangent of the arrowpublic void setEndingTangent(Point dir)
dir
- The ending tangent of the arrowpublic Path getPath()
public void draw(AbstractPoint location, java.io.PrintWriter out)
Shape
draw
in class Shape
location
- The location of the Shape on the main drawingout
- The file to be written topublic Path obtainPath()
obtainPath
in class Shape
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |