Package com.luciad.format.database.gxy
Class TLcdDatabaseGXYPainterProvider
java.lang.Object
com.luciad.format.database.gxy.TLcdDatabaseGXYPainterProvider
- All Implemented Interfaces:
ILcdCloneable
,ILcdGXYEditorProvider
,ILcdGXYPainterProvider
,Serializable
,Cloneable
public class TLcdDatabaseGXYPainterProvider
extends Object
implements ILcdGXYPainterProvider, ILcdGXYEditorProvider
Deprecated.
This class implements an
ILcdGXYPainterProvider
for typical
database objects. The user can specify which line style and fill style
should be used for painting, and whether painted objects should be cached.- See Also:
-
Constructor Summary
ConstructorDescriptionTLcdDatabaseGXYPainterProvider
(boolean aUsePaintCache) Deprecated.Creates a new TLcdGeodeticGXYPainterProvider with default painter styles.TLcdDatabaseGXYPainterProvider
(boolean aUsePaintCache, ILcdGXYPainterStyle aLineStyle, ILcdGXYPainterStyle aFillStyle) Deprecated.Creates a new TLcdGeodeticGXYPainterProvider. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated.RedefinesObject.clone
to make it public.int
Deprecated.Returns the paint mode attribute of this painter.Deprecated.Returns the fill style used for painting the area defined by the object.getGXYEditor
(Object aObject) Deprecated.Finds anILcdGXYEditor
that can be used to edit the object passed.getGXYPainter
(Object aObject) Deprecated.Finds anILcdGXYPainter
that can be used to paint or locate the object passed.Deprecated.Returns the icon that is used to paint snap targets of the polygons or polylines that get a painter from this provider.getIcon()
Deprecated.Returns theILcdIcon
used for painting in default mode.Deprecated.Returns the line style used for painting the outline of the object.double
getScale()
Deprecated.Returns the current size factor.Deprecated.Returns the current icon scaling mode.Deprecated.Returns theILcdIcon
used for painting in selected mode.Deprecated.Returns the icon that is used to paint snap targets of points that get a painter from this provider.void
setAreaPaintMode
(int aMode) Deprecated.Sets the mode to decide how to paint an object: the outline (ALcdGXYAreaPainter.OUTLINED
), as a filled area (ALcdGXYAreaPainter.FILLED
), or as a filled and outlined area (ALcdGXYAreaPainter.OUTLINED_FILLED
).void
setFillStyle
(ILcdGXYPainterStyle aFillStyle) Deprecated.Sets the fill style to use when painting the area defined by the object.void
setHandleSnapIcon
(ILcdIcon aSnapIcon) Deprecated.Sets the icon that marks snap targets of the polygons or polylines that get a painter from this provider.void
Deprecated.Sets theILcdIcon
used for painting in default mode.void
setLineStyle
(ILcdGXYPainterStyle aLineStyle) Deprecated.Sets the line style to use when painting the outline of the object.void
setScale
(double aScale) Deprecated.Sets the new size factor for the icons.void
setScalingMode
(TLcdGXYIconPainter.ScalingMode aScalingMode) Deprecated.Sets the icon scaling mode, which determines how thesetScale(double)
property is interpreted.void
setSelectionIcon
(ILcdIcon aSelectionIcon) Deprecated.Sets theILcdIcon
used for painting in selected mode.void
setSnapIcon
(ILcdIcon aSnapIcon) Deprecated.Sets the icon that marks snap targets of the points that get a painter from this provider.
-
Constructor Details
-
TLcdDatabaseGXYPainterProvider
public TLcdDatabaseGXYPainterProvider(boolean aUsePaintCache) Deprecated.Creates a new TLcdGeodeticGXYPainterProvider with default painter styles.- Parameters:
aUsePaintCache
- specifies whether the painters should cache transformed coordinates.
-
TLcdDatabaseGXYPainterProvider
public TLcdDatabaseGXYPainterProvider(boolean aUsePaintCache, ILcdGXYPainterStyle aLineStyle, ILcdGXYPainterStyle aFillStyle) Deprecated.Creates a new TLcdGeodeticGXYPainterProvider.- Parameters:
aUsePaintCache
- specifies whether the painters should cache transformed coordinates.aLineStyle
- the ILcdGXYPainterStyle that the painters will use for painting lines.aFillStyle
- the ILcdGXYPainterStyle that the painters will use for filling areas.
-
-
Method Details
-
getGXYPainter
Deprecated.Description copied from interface:ILcdGXYPainterProvider
Finds anILcdGXYPainter
that can be used to paint or locate the object passed.The painter provider is responsible for setting the object to the painter before returning the painter. An implementation should therefore have the following structure:
public ILcdGXYPainter getGXYPainter(Object aObject) { ILcdGXYPainter painter = ... // find the painter for the object if (painter != null) { painter.setObject(aObject); } return painter; }
- Specified by:
getGXYPainter
in interfaceILcdGXYPainterProvider
- Parameters:
aObject
- the object to find a painter for- Returns:
- a painter that can be used to paint or locate the object; or null if no painter could be found for the given object, or the object could not be set on the retrieved painter.
-
getGXYEditor
Deprecated.Description copied from interface:ILcdGXYEditorProvider
Finds anILcdGXYEditor
that can be used to edit the object passed.The editor provider is responsible for setting the object to the editor before returning the editor. An implementation should therefore have the following structure:
public ILcdGXYEditor getGXYEditor(Object aObject) { ILcdGXYEditor editor = ... // find the editor for the object editor.setObject( aObject ); return editor; }
- Specified by:
getGXYEditor
in interfaceILcdGXYEditorProvider
- Parameters:
aObject
- the object to find an editor for- Returns:
- an editor that can be used to edit the object.
-
setLineStyle
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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:
-
setIcon
Deprecated.Sets theILcdIcon
used for painting in default mode. When the given icon implements ILcdAnchoredIcon, the painter maps its anchor point on the object's focus point. If not, the center of the icon is mapped to the object's focus point.- Parameters:
aIcon
- the icon to paint in default mode.- See Also:
-
getIcon
Deprecated.Returns theILcdIcon
used for painting in default mode.- Returns:
- the
ILcdIcon
used for painting in default mode. - See Also:
-
setSelectionIcon
Deprecated.Sets theILcdIcon
used for painting in selected mode. When the given icon implements ILcdAnchoredIcon, the painter maps its anchor point on the object's focus point. If not, the center of the icon is mapped to the object's focus point.- Parameters:
aSelectionIcon
- theILcdIcon
used for painting in selected mode.- See Also:
-
getSelectionIcon
Deprecated.Returns theILcdIcon
used for painting in selected mode.- Returns:
- the
ILcdIcon
used for painting in selected mode. - See Also:
-
setSnapIcon
Deprecated.Sets the icon that marks snap targets of the points that get a painter from this provider. This icon is painted when thepaint
method is called with the render modeILcdGXYPainter.SNAPS
. When the given icon implements ILcdAnchoredIcon, the painter maps its anchor point on the object's focus point. If not, the center of the icon is mapped to the object's focus point.- Parameters:
aSnapIcon
- The icon that should be used to paint snap target points.- See Also:
-
getSnapIcon
Deprecated.Returns the icon that is used to paint snap targets of points that get a painter from this provider.- Returns:
- the icon that is used to paint snap target of points that get a painter from this provider.
- See Also:
-
setScalingMode
Deprecated.Sets the icon scaling mode, which determines how thesetScale(double)
property is interpreted. (Only applicable for points).- Parameters:
aScalingMode
- the new icon scaling mode- See Also:
-
setScale
public void setScale(double aScale) Deprecated.Sets the new size factor for the icons. The interpretation of this value depends on the value ofgetScalingMode()
.- Parameters:
aScale
- the new size factor- See Also:
-
getScalingMode
Deprecated.Returns the current icon scaling mode.- Returns:
- the current icon scaling mode
- See Also:
-
getScale
public double getScale()Deprecated.Returns the current size factor.- Returns:
- the current size factor
- See Also:
-
setHandleSnapIcon
Deprecated.Sets the icon that marks snap targets of the polygons or polylines that get a painter from this provider. This icon is painted when thepaint
method is called with the render modeILcdGXYPainter.SNAPS
. When the given icon implements ILcdAnchoredIcon, the painter maps its anchor point on the object's focus point. If not, the center of the icon is mapped to the object's focus point.- Parameters:
aSnapIcon
- The icon that should be used to paint snap target points.- See Also:
-
getHandleSnapIcon
Deprecated.Returns the icon that is used to paint snap targets of the polygons or polylines that get a painter from this provider.- Returns:
- the icon that is used to paint snap target polygons or polylines that get a painter from this provider.
- See Also:
-
setAreaPaintMode
public void setAreaPaintMode(int aMode) Deprecated.Sets the mode to decide how to paint an object: the outline (ALcdGXYAreaPainter.OUTLINED
), as a filled area (ALcdGXYAreaPainter.FILLED
), or as a filled and outlined area (ALcdGXYAreaPainter.OUTLINED_FILLED
).- Parameters:
aMode
- The mode deciding how to paint an object.- See Also:
-
getAreaPaintMode
public int getAreaPaintMode()Deprecated.Returns the paint mode attribute of this painter.- Returns:
- the paint mode attribute of this painter.
- See Also:
-
clone
Deprecated.Description copied from interface:ILcdGXYPainterProvider
RedefinesObject.clone
to make it public.- Specified by:
clone
in interfaceILcdCloneable
- Specified by:
clone
in interfaceILcdGXYEditorProvider
- Specified by:
clone
in interfaceILcdGXYPainterProvider
- Overrides:
clone
in classObject
- Returns:
- a clone of this painter provider.
- See Also:
-
TLcdGXYShapePainter
instead. It provides the same functionality but it is not database-specific. (since 2013.1)