public abstract class AbstractSegment extends java.lang.Object implements Segment
Segment
implementations.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
public void setX(int x)
Segment
protected int getX()
public void setY(int y)
Segment
protected int getY()
public void setWidth(int width)
Segment
protected int getWidth()