public class Arrow extends HShape
| Constructor and Description |
|---|
Arrow(double X1,
double Y1,
double X2,
double Y2)
Build an arrow in
|
Arrow(double X1,
double Y1,
double X2,
double Y2,
Stroke stroke,
Color color)
Build an arrow
|
| Modifier and Type | Method and Description |
|---|---|
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
|
String |
toString()
Represent it as a string
|
contains, getColor, getFill, getPosition, getPositionCoordinate, getRotation, getScaledPosition, getSettings, getStroke, getTransparency, getWhoAm, setColor, setDashed, setDotted, setFill, setPosCoord, setPositionCoordinate, setRotation, setStroke, setTransparency, setWhoAm, updateSettingspublic Arrow(double X1,
double Y1,
double X2,
double Y2,
Stroke stroke,
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 positionpublic 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 String toString()
public void doc()
DMelt 2.0 © DataMelt by jWork.ORG