public class Line extends HShape
Constructor and Description |
---|
Line(double X1,
double Y1,
double X2,
double Y2)
Make a line using black (default) color and default stroke
|
Line(double X1,
double Y1,
double X2,
double Y2,
Stroke strock,
Color color)
Main constructor fot a line
|
Modifier and Type | Method and Description |
---|---|
void |
doc()
Show online documentation.
|
String |
toString()
Show 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, updateSettings
public Line(double X1, double Y1, double X2, double Y2, Stroke strock, Color color)
X1
- X start positionY1
- Y start positionX2
- X end positionY2
- Y end positionstrock
- Stroke to draw itcolor
- Colorpublic Line(double X1, double Y1, double X2, double Y2)
X1
- X start positionY1
- Y start positionX2
- X end positionY2
- Y end positionJas4pp 1.5 © Java Analysis Studio for Particle Physics