java.lang.CloneableAbstractLine, BasicLine, DottedLine, SpecialLinepublic interface ILine
extends java.lang.Cloneable
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
clone() |
Clone line.
|
java.awt.Color |
getColor() |
Get line color.
|
int |
getEndCoordinateX() |
End coordinate in X direction.
|
int |
getEndCoordinateY() |
End coordinate in Y direction.
|
int |
getStartCoordinateX() |
Start coordinate in X direction.
|
int |
getStartCoordinateY() |
Start coordinate in Y direction.
|
float |
getThickness() |
Get thickness.
|
boolean |
isDotted() |
Check if the line is dotted.
|
void |
setEndCoordinates(int x,
int y) |
Set end coordinates of line.
|
void |
setStartCoordinates(int x,
int y) |
Set start coordinates of line.
|
java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionjava.awt.Color getColor()
float getThickness()
boolean isDotted()
int getStartCoordinateX()
int getEndCoordinateX()
int getStartCoordinateY()
int getEndCoordinateY()
void setStartCoordinates(int x,
int y)
x - start coordinate in X direction.y - start coordinate in Y direction.void setEndCoordinates(int x,
int y)
x - end coordinate in X direction.y - end coordinate in Y direction.