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.
Use TLcdGXYShapePainter instead. It provides the same functionality but it is not database-specific. (since 2013.1)
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 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

      public ILcdGXYPainter getGXYPainter(Object aObject)
      Deprecated.
      Description copied from interface: ILcdGXYPainterProvider
      Finds an 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;
       }
       

      Specified by:
      getGXYPainter in interface ILcdGXYPainterProvider
      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

      public ILcdGXYEditor getGXYEditor(Object aObject)
      Deprecated.
      Description copied from interface: ILcdGXYEditorProvider
      Finds an 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;
       }
       

      Specified by:
      getGXYEditor in interface ILcdGXYEditorProvider
      Parameters:
      aObject - the object to find an editor for
      Returns:
      an editor that can be used to edit the object.
    • setLineStyle

      public void setLineStyle(ILcdGXYPainterStyle aLineStyle)
      Deprecated.
      Sets the line style to use when painting the outline of the object. Note that this property can be set to null.
      Parameters:
      aLineStyle - the line style to use when painting the outline of the object.
      See Also:
    • getLineStyle

      public ILcdGXYPainterStyle getLineStyle()
      Deprecated.
      Returns the line style used for painting the outline of the object. Note that this method can return null.
      Returns:
      the line style used for painting the outline of the object.
      See Also:
    • setFillStyle

      public void setFillStyle(ILcdGXYPainterStyle aFillStyle)
      Deprecated.
      Sets the fill style to use when painting the area defined by the object. Note that this property can be set to null.
      Parameters:
      aFillStyle - the fill style to use when painting the area defined by the object.
      See Also:
    • getFillStyle

      public ILcdGXYPainterStyle getFillStyle()
      Deprecated.
      Returns the fill style used for painting the area defined by the object. Note that this method can return null.
      Returns:
      the fill style used for painting the area defined by the object.
      See Also:
    • setIcon

      public void setIcon(ILcdIcon aIcon)
      Deprecated.
      Sets the 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.
      Parameters:
      aIcon - the icon to paint in default mode.
      See Also:
    • getIcon

      public ILcdIcon getIcon()
      Deprecated.
      Returns the ILcdIcon used for painting in default mode.
      Returns:
      the ILcdIcon used for painting in default mode.
      See Also:
    • setSelectionIcon

      public void setSelectionIcon(ILcdIcon aSelectionIcon)
      Deprecated.
      Sets the 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.
      Parameters:
      aSelectionIcon - the ILcdIcon used for painting in selected mode.
      See Also:
    • getSelectionIcon

      public ILcdIcon getSelectionIcon()
      Deprecated.
      Returns the ILcdIcon used for painting in selected mode.
      Returns:
      the ILcdIcon used for painting in selected mode.
      See Also:
    • setSnapIcon

      public void setSnapIcon(ILcdIcon aSnapIcon)
      Deprecated.
      Sets the icon that marks snap targets of the points that get a painter from this provider. This icon is painted when the 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.
      Parameters:
      aSnapIcon - The icon that should be used to paint snap target points.
      See Also:
    • getSnapIcon

      public ILcdIcon 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

      public void setScalingMode(TLcdGXYIconPainter.ScalingMode aScalingMode)
      Deprecated.
      Sets the icon scaling mode, which determines how the setScale(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 of getScalingMode().
      Parameters:
      aScale - the new size factor
      See Also:
    • getScalingMode

      public TLcdGXYIconPainter.ScalingMode 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

      public void setHandleSnapIcon(ILcdIcon aSnapIcon)
      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 the 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.
      Parameters:
      aSnapIcon - The icon that should be used to paint snap target points.
      See Also:
    • getHandleSnapIcon

      public 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.
      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

      public Object clone()
      Deprecated.
      Description copied from interface: ILcdGXYPainterProvider
      Redefines Object.clone to make it public.
      Specified by:
      clone in interface ILcdCloneable
      Specified by:
      clone in interface ILcdGXYEditorProvider
      Specified by:
      clone in interface ILcdGXYPainterProvider
      Overrides:
      clone in class Object
      Returns:
      a clone of this painter provider.
      See Also: