public abstract class ALcdGXYAreaPainter extends ALcdGXYPainter
OUTLINED
, FILLED
and OUTLINED_FILLED
modes to paint objects
which cover an area.
The modes are provided for painting object in default mode, as a selected object, or when editing the object.
The interface also adds methods to set the line and fill style that should be used while painting the object.
Modifier and Type | Field and Description |
---|---|
static int |
FILLED
Draw the area defined by the object filled.
|
static int |
OUTLINED
Draw the outline of the object.
|
static int |
OUTLINED_FILLED
Draw the outline of the object and the area defined by the object filled.
|
defaultCreationFillStyle, defaultCreationLineStyle, defaultFillStyle, defaultLineStyle, fWorkBounds
BODY, CREATING, DEFAULT, HANDLES, RESHAPING, SELECTED, SNAPS, TRANSLATING
Constructor and Description |
---|
ALcdGXYAreaPainter() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Makes
Object.clone() public. |
int |
getEditMode()
Returns the edit mode attribute of this painter.
|
ILcdGXYPainterStyle |
getFillStyle()
Returns the fill style used for painting the area defined by the object.
|
ILcdGXYPainterStyle |
getLineStyle()
Returns the line style used for painting the outline of the object.
|
int |
getMode()
Returns the paint mode attribute of this painter.
|
int |
getSelectionMode()
Returns the selection mode attribute of this painter.
|
void |
setEditMode(int aEditMode)
Sets the edit mode to decide how to paint an object that is being edited:
the outline (
OUTLINED ), as a filled area (FILLED ), or
as a filled and outlined area (OUTLINED_FILLED ). |
void |
setFillStyle(ILcdGXYPainterStyle aFillStyle)
Sets the fill style to use when painting the area defined by the object.
|
void |
setLineStyle(ILcdGXYPainterStyle aLineStyle)
Sets the line style to use when painting the outline of the object.
|
void |
setMode(int aMode)
Sets the mode to decide how to paint an object:
the outline (
OUTLINED ), as a filled area (FILLED ), or
as a filled and outlined area (OUTLINED_FILLED ). |
void |
setSelectionMode(int aSelectionMode)
Sets the selection mode to decide how to paint a selected object:
the outline (
OUTLINED ), as a filled area (FILLED ), or
as a filled and outlined area (OUTLINED_FILLED ). |
addPropertyChangeListener, anchorPointSFCT, firePropertyChangeEvent, firePropertyChangeEvent, getCursor, getDisplayName, getGXYPainter, isTraceOn, removePropertyChangeListener, setClassTraceOn, setDisplayName, setTraceOn, snapTarget, supportSnap
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
boundsSFCT, getObject, isTouched, paint, setObject
public static final int OUTLINED
public static final int FILLED
public static final int OUTLINED_FILLED
public void setMode(int aMode)
OUTLINED
), as a filled area (FILLED
), or
as a filled and outlined area (OUTLINED_FILLED
).aMode
- The mode deciding how to paint an object.getSelectionMode()
public int getMode()
setMode(int)
public void setSelectionMode(int aSelectionMode)
OUTLINED
), as a filled area (FILLED
), or
as a filled and outlined area (OUTLINED_FILLED
).aSelectionMode
- The mode deciding how to paint a selected object.getSelectionMode()
public int getSelectionMode()
setSelectionMode(int)
public void setEditMode(int aEditMode)
OUTLINED
), as a filled area (FILLED
), or
as a filled and outlined area (OUTLINED_FILLED
).aEditMode
- The mode deciding how to paint an object that is being edited.getSelectionMode()
public int getEditMode()
setEditMode(int)
public void setLineStyle(ILcdGXYPainterStyle aLineStyle)
null
.aLineStyle
- the line style to use when painting the outline of the object.getLineStyle()
public ILcdGXYPainterStyle getLineStyle()
null
.setLineStyle(ILcdGXYPainterStyle)
public void setFillStyle(ILcdGXYPainterStyle aFillStyle)
null
.aFillStyle
- the fill style to use when painting the area defined by the object.getFillStyle()
public ILcdGXYPainterStyle getFillStyle()
null
.setFillStyle(ILcdGXYPainterStyle)
public Object clone()
ILcdCloneable
Makes Object.clone()
public.
java.lang.Object
, it can be implemented like this:
public Object clone() {
try {
return super.clone();
} catch ( CloneNotSupportedException e ) {
// Cannot happen: extends from Object and implements Cloneable (see also Object.clone)
throw new RuntimeException( e );
}
}
clone
in interface ILcdCloneable
clone
in interface ILcdGXYPainterProvider
clone
in class ALcdGXYPainter
Object.clone()