java.lang.Object com.realtime.crossfire.jxclient.gui.log.AbstractSegment
public abstract class AbstractSegment
Abstract base class for Segment
implementations.
Field Summary | |
---|---|
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 Summary | |
---|---|
AbstractSegment()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.realtime.crossfire.jxclient.gui.log.Segment |
---|
draw, getSize, updateAttributes |
Field Detail |
---|
private int width
-1
if
unknown.
private int x
-1
if
unknown.
private int y
-1
if
unknown.
Constructor Detail |
---|
public AbstractSegment()
Method Detail |
---|
protected int getWidth()
protected int getX()
protected int getY()
public void setWidth(int width)
setWidth
in interface Segment
width
- the widthpublic void setX(int x)
setX
in interface Segment
x
- the x-coordinatepublic void setY(int y)
setY
in interface Segment
y
- the y-coordinate