Package com.luciad.view.gxy.painter
Class ALcdGXYAreaPainter
java.lang.Object
com.luciad.view.gxy.ALcdGXYPainter
com.luciad.view.gxy.painter.ALcdGXYAreaPainter
- All Implemented Interfaces:
ILcdCloneable
,ILcdPropertyChangeSource
,ILcdGXYPainter
,ILcdGXYPainterProvider
,Serializable
,Cloneable
- Direct Known Subclasses:
TLcdGXYArcBandPainter
,TLcdGXYBoundsPainter
,TLcdGXYBufferPainter
,TLcdGXYCircleBy3PointsPainter
,TLcdGXYCirclePainter
,TLcdGXYCompositeRingPainter
,TLcdGXYEllipsePainter
,TLcdGXYGeoBufferPainter
,TLcdGXYLonLatHeightBufferPainter
,TLcdGXYPointListPainter
,TLcdGXYSurfacePainter
Provides
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.
- Since:
- 7.2
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Draw the area defined by the object filled.static final int
Draw the outline of the object.static final int
Draw the outline of the object and the area defined by the object filled.Fields inherited from class com.luciad.view.gxy.ALcdGXYPainter
defaultCreationFillStyle, defaultCreationLineStyle, defaultFillStyle, defaultLineStyle, fWorkBounds
Fields inherited from interface com.luciad.view.gxy.ILcdGXYPainter
BODY, CREATING, DEFAULT, HANDLES, RESHAPING, SELECTED, SNAPS, TRANSLATING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
MakesObject.clone()
public.int
Returns the edit mode attribute of this painter.Returns the fill style used for painting the area defined by the object.Returns the line style used for painting the outline of the object.int
getMode()
Returns the paint mode attribute of this painter.int
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
).Methods inherited from class com.luciad.view.gxy.ALcdGXYPainter
addPropertyChangeListener, anchorPointSFCT, firePropertyChangeEvent, firePropertyChangeEvent, getCursor, getDisplayName, getGXYPainter, isTraceOn, removePropertyChangeListener, setClassTraceOn, setDisplayName, setTraceOn, snapTarget, supportSnap
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.view.gxy.ILcdGXYPainter
boundsSFCT, getObject, isTouched, paint, setObject
-
Field Details
-
OUTLINED
public static final int OUTLINEDDraw the outline of the object.- See Also:
-
FILLED
public static final int FILLEDDraw the area defined by the object filled.- See Also:
-
OUTLINED_FILLED
public static final int OUTLINED_FILLEDDraw the outline of the object and the area defined by the object filled.- See Also:
-
-
Constructor Details
-
ALcdGXYAreaPainter
public ALcdGXYAreaPainter()
-
-
Method Details
-
setMode
public 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
).- Parameters:
aMode
- The mode deciding how to paint an object.- See Also:
-
getMode
public int getMode()Returns the paint mode attribute of this painter.- Returns:
- the paint mode attribute of this painter.
- See Also:
-
setSelectionMode
public 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
).- Parameters:
aSelectionMode
- The mode deciding how to paint a selected object.- See Also:
-
getSelectionMode
public int getSelectionMode()Returns the selection mode attribute of this painter.- Returns:
- the selection mode attribute of this painter.
- See Also:
-
setEditMode
public 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
).- Parameters:
aEditMode
- The mode deciding how to paint an object that is being edited.- See Also:
-
getEditMode
public int getEditMode()Returns the edit mode attribute of this painter.- Returns:
- the edit mode attribute of this painter.
- See Also:
-
setLineStyle
Sets the line style to use when painting the outline of the object. Note that this property can be set tonull
.- Parameters:
aLineStyle
- the line style to use when painting the outline of the object.- See Also:
-
getLineStyle
Returns the line style used for painting the outline of the object. Note that this method can returnnull
.- Returns:
- the line style used for painting the outline of the object.
- See Also:
-
setFillStyle
Sets the fill style to use when painting the area defined by the object. Note that this property can be set tonull
.- Parameters:
aFillStyle
- the fill style to use when painting the area defined by the object.- See Also:
-
getFillStyle
Returns the fill style used for painting the area defined by the object. Note that this method can returnnull
.- Returns:
- the fill style used for painting the area defined by the object.
- See Also:
-
clone
Description copied from interface:ILcdCloneable
Makes
When for example extending fromObject.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 ); } }
- Specified by:
clone
in interfaceILcdCloneable
- Specified by:
clone
in interfaceILcdGXYPainterProvider
- Overrides:
clone
in classALcdGXYPainter
- Returns:
- a clone of this painter provider.
- See Also:
-