ILine
, java.lang.Cloneable
BasicLine
, DottedLine
, SpecialLine
public abstract class AbstractLine extends java.lang.Object implements ILine
Constructor | Description |
---|---|
AbstractLine() |
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.
|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
ILine
public java.awt.Color getColor()
ILine
public float getThickness()
ILine
getThickness
in interface ILine
public boolean isDotted()
ILine
public int getStartCoordinateX()
ILine
getStartCoordinateX
in interface ILine
public int getEndCoordinateX()
ILine
getEndCoordinateX
in interface ILine
public int getStartCoordinateY()
ILine
getStartCoordinateY
in interface ILine
public int getEndCoordinateY()
ILine
getEndCoordinateY
in interface ILine
public void setStartCoordinates(int x, int y)
ILine
setStartCoordinates
in interface ILine
x
- start coordinate in X direction.y
- start coordinate in Y direction.public void setEndCoordinates(int x, int y)
ILine
setEndCoordinates
in interface ILine
x
- end coordinate in X direction.y
- end coordinate in Y direction.