|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.shapes.HShape
jhplot.shapes.Arrow
public class Arrow
Build an arrow. The default is the USER coordinate system.
Field Summary |
---|
Fields inherited from class jhplot.shapes.HShape |
---|
ARROW, CIRCLE, ELLIPSE, IMAGE, LINE, POLYGON, RECTAN, TEXT |
Constructor Summary | |
---|---|
Arrow(double X1,
double Y1,
double X2,
double Y2)
Build an arrow in |
|
Arrow(double X1,
double Y1,
double X2,
double Y2,
java.awt.Stroke stroke,
java.awt.Color color)
Build an arrow |
Method Summary | |
---|---|
void |
doc()
Show online documentation. |
double |
getEndLength()
Get length of the ends |
double |
getEndWidth()
Get widths of the ends |
int |
getType()
Get the type of arrow |
void |
setEndLength(double length)
Set lenght of the ends |
void |
setEndWidth(double width)
Set width of the ends |
void |
setType(int type)
Set the type of arrow: 1,2,3 |
java.lang.String |
toString()
Represent it as a string |
Methods inherited from class jhplot.shapes.HShape |
---|
contains, getColor, getFill, getPosition, getPositionCoordinate, getScaledPosition, getSettings, getStroke, getTransparency, getWhoAm, setColor, setDashed, setDotted, setFill, setPosCoord, setPositionCoordinate, setStroke, setTransparency, setWhoAm, updateSettings |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Arrow(double X1, double Y1, double X2, double Y2, java.awt.Stroke stroke, java.awt.Color color)
X1
- X start positionY1
- Y start positionX2
- X end positionY2
- Y end positionstroke
- Stroke to draw the linecolor
- Colorpublic Arrow(double X1, double Y1, double X2, double Y2)
X1
- X start positionY1
- Y start positionX2
- X end positionY2
- Y end positionMethod Detail |
---|
public double getEndLength()
public double getEndWidth()
public void setEndLength(double length)
length
- lenght of the endspublic void setEndWidth(double width)
width
- width of the endspublic void setType(int type)
public int getType()
public java.lang.String toString()
toString
in class java.lang.Object
public void doc()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |