Class AbstractSegment
- java.lang.Object
-
- com.realtime.crossfire.jxclient.gui.log.AbstractSegment
-
- All Implemented Interfaces:
Segment
- Direct Known Subclasses:
TextSegment
public abstract class AbstractSegment extends java.lang.Object implements Segment
Abstract base class forSegmentimplementations.
-
-
Constructor Summary
Constructors Constructor Description AbstractSegment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetWidth()Returns the width to display the segment.protected intgetX()Returns the x-coordinate to display the segment.protected intgetY()Returns the y-coordinate to display the segment.voidsetWidth(int width)Sets the width to display the segment.voidsetX(int x)Sets the x-coordinate to display the segment.voidsetY(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
-
-
-
-
Method Detail
-
setX
public void setX(int x)
Description copied from interface:SegmentSets the x-coordinate to display the segment.
-
getX
protected int getX()
Returns the x-coordinate to display the segment.- Returns:
- the x-coordinate
-
setY
public void setY(int y)
Description copied from interface:SegmentSets the y-coordinate to display the segment.
-
getY
protected int getY()
Returns the y-coordinate to display the segment.- Returns:
- the y-coordinate
-
setWidth
public void setWidth(int width)
Description copied from interface:SegmentSets the width to display the segment.
-
getWidth
protected int getWidth()
Returns the width to display the segment.- Returns:
- the width
-
-