public abstract class AbstractSegment extends java.lang.Object implements Segment
Segment
implementations.Modifier and Type | Field and Description |
---|---|
private int |
width
The width of the segment if displayed.
|
private int |
x
The x-coordinate to display the segment.
|
private int |
y
The y-coordinate to display the segment.
|
Constructor and Description |
---|
AbstractSegment() |
Modifier and Type | Method and Description |
---|---|
protected int |
getWidth()
Returns the width to display the segment.
|
protected int |
getX()
Returns the x-coordinate to display the segment.
|
protected int |
getY()
Returns the y-coordinate to display the segment.
|
void |
setWidth(int width)
Sets the width to display the segment.
|
void |
setX(int x)
Sets the x-coordinate to display the segment.
|
void |
setY(int y)
Sets the y-coordinate to display the segment.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
draw, getSize, updateAttributes
private int width
-1
if unknown.private int x
-1
if unknown.private int y
-1
if unknown.protected int getWidth()
protected int getX()
protected int getY()
public void setWidth(int width)
public void setX(int x)