TLcdGXYShapePainter
instead. It provides the same functionality but it is not database-specific. (since 2013.1)public class TLcdDatabaseGXYPainterProvider extends Object implements ILcdGXYPainterProvider, ILcdGXYEditorProvider
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.Constructor and Description |
---|
TLcdDatabaseGXYPainterProvider(boolean aUsePaintCache)
Deprecated.
Creates a new TLcdGeodeticGXYPainterProvider with default painter styles.
|
TLcdDatabaseGXYPainterProvider(boolean aUsePaintCache,
ILcdGXYPainterStyle aLineStyle,
ILcdGXYPainterStyle aFillStyle)
Deprecated.
Creates a new TLcdGeodeticGXYPainterProvider.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Deprecated.
Redefines
Object.clone to make it public. |
int |
getAreaPaintMode()
Deprecated.
Returns the paint mode attribute of this painter.
|
ILcdGXYPainterStyle |
getFillStyle()
Deprecated.
Returns the fill style used for painting the area defined by the object.
|
ILcdGXYEditor |
getGXYEditor(Object aObject)
Deprecated.
Finds an
ILcdGXYEditor that can be used to edit the object passed. |
ILcdGXYPainter |
getGXYPainter(Object aObject)
Deprecated.
Finds an
ILcdGXYPainter that can be used to paint or locate the object passed. |
ILcdIcon |
getHandleSnapIcon()
Deprecated.
Returns the icon that is used to paint snap targets of the polygons or polylines that get
a painter from this provider.
|
ILcdIcon |
getIcon()
Deprecated.
Returns the
ILcdIcon used for painting in default mode. |
ILcdGXYPainterStyle |
getLineStyle()
Deprecated.
Returns the line style used for painting the outline of the object.
|
double |
getScale()
Deprecated.
Returns the current size factor.
|
TLcdGXYIconPainter.ScalingMode |
getScalingMode()
Deprecated.
Returns the current icon scaling mode.
|
ILcdIcon |
getSelectionIcon()
Deprecated.
Returns the
ILcdIcon used for painting in selected mode. |
ILcdIcon |
getSnapIcon()
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 |
setIcon(ILcdIcon aIcon)
Deprecated.
Sets the
ILcdIcon 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 the
setScale(double)
property is interpreted. |
void |
setSelectionIcon(ILcdIcon aSelectionIcon)
Deprecated.
Sets the
ILcdIcon 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.
|
public TLcdDatabaseGXYPainterProvider(boolean aUsePaintCache)
aUsePaintCache
- specifies whether the painters should cache transformed
coordinates.public TLcdDatabaseGXYPainterProvider(boolean aUsePaintCache, ILcdGXYPainterStyle aLineStyle, ILcdGXYPainterStyle aFillStyle)
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.public ILcdGXYPainter getGXYPainter(Object aObject)
ILcdGXYPainterProvider
ILcdGXYPainter
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;
}
getGXYPainter
in interface ILcdGXYPainterProvider
aObject
- the object to find a painter forpublic ILcdGXYEditor getGXYEditor(Object aObject)
ILcdGXYEditorProvider
ILcdGXYEditor
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;
}
getGXYEditor
in interface ILcdGXYEditorProvider
aObject
- the object to find an editor forpublic 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 void setIcon(ILcdIcon aIcon)
ILcdIcon
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.aIcon
- the icon to paint in default mode.getIcon()
public ILcdIcon getIcon()
ILcdIcon
used for painting in default mode.ILcdIcon
used for painting in default mode.setIcon(com.luciad.gui.ILcdIcon)
public void setSelectionIcon(ILcdIcon aSelectionIcon)
ILcdIcon
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.aSelectionIcon
- the ILcdIcon
used for painting in selected mode.getSelectionIcon()
public ILcdIcon getSelectionIcon()
ILcdIcon
used for painting in selected mode.ILcdIcon
used for painting in selected mode.setSelectionIcon(com.luciad.gui.ILcdIcon)
public void setSnapIcon(ILcdIcon aSnapIcon)
paint
method is called with the
render mode ILcdGXYPainter.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.aSnapIcon
- The icon that should be used to paint snap target points.getSnapIcon()
public ILcdIcon getSnapIcon()
setSnapIcon(ILcdIcon)
public void setScalingMode(TLcdGXYIconPainter.ScalingMode aScalingMode)
setScale(double)
property is interpreted. (Only applicable for points).aScalingMode
- the new icon scaling modegetScalingMode()
public void setScale(double aScale)
getScalingMode()
.aScale
- the new size factorsetScalingMode(com.luciad.view.gxy.painter.TLcdGXYIconPainter.ScalingMode)
,
getScale()
public TLcdGXYIconPainter.ScalingMode getScalingMode()
setScalingMode(com.luciad.view.gxy.painter.TLcdGXYIconPainter.ScalingMode)
public double getScale()
setScale(double)
public void setHandleSnapIcon(ILcdIcon aSnapIcon)
paint
method is
called with the render mode ILcdGXYPainter.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.aSnapIcon
- The icon that should be used to paint snap target points.getSnapIcon()
public ILcdIcon getHandleSnapIcon()
setSnapIcon(ILcdIcon)
public void setAreaPaintMode(int aMode)
ALcdGXYAreaPainter.OUTLINED
), as a filled area (ALcdGXYAreaPainter.FILLED
), or
as a filled and outlined area (ALcdGXYAreaPainter.OUTLINED_FILLED
).aMode
- The mode deciding how to paint an object.getAreaPaintMode()
public int getAreaPaintMode()
setAreaPaintMode(int)
public Object clone()
ILcdGXYPainterProvider
Object.clone
to make it public.clone
in interface ILcdCloneable
clone
in interface ILcdGXYEditorProvider
clone
in interface ILcdGXYPainterProvider
clone
in class Object
Object.clone()