Package nl.saxion.app.canvas.drawable
Class Line
java.lang.Object
nl.saxion.app.canvas.CanvasElement
nl.saxion.app.canvas.drawable.DrawableElement
nl.saxion.app.canvas.drawable.Line
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(Graphics2D g) int
int
getX2()
int
getY2()
void
setBorderWidth
(int borderWidth) void
setX2
(int x2) void
setY2
(int y2)
-
Constructor Details
-
Line
public Line(int x1, int y1, int x2, int y2)
-
-
Method Details
-
getBorderWidth
public int getBorderWidth() -
setBorderWidth
public void setBorderWidth(int borderWidth) -
getX2
public int getX2() -
setX2
public void setX2(int x2) -
getY2
public int getY2() -
setY2
public void setY2(int y2) -
draw
- Specified by:
draw
in classCanvasElement
-