Class TLcdGXYAISIconProviderPainter

java.lang.Object
com.luciad.view.gxy.ALcdGXYPainter
com.luciad.view.gxy.painter.TLcdGXYIconPainter
com.luciad.ais.view.gxy.painter.TLcdGXYAISIconProviderPainter
All Implemented Interfaces:
ILcdCloneable, ILcdPropertyChangeSource, ILcdGXYEditor, ILcdGXYEditorProvider, ILcdGXYPainter, ILcdGXYPainterProvider, Serializable, Cloneable

public class TLcdGXYAISIconProviderPainter extends TLcdGXYIconPainter
This extension of TLcdGXYIconPainter overrides the standard approach of always using the same icon. Instead, this class uses three ILcdObjectIconProvider objects to retrieve respectively normal icons, selection icons and snap icons.
See Also:
  • Constructor Details

    • TLcdGXYAISIconProviderPainter

      public TLcdGXYAISIconProviderPainter()
      Default constructor. For the three ILcdObjectIconProvider objects that are used by this class to retrieve respectively normal icons, selection icons and snap icons, objects of the class TLcdICAODefaultSymbolProvider will be used (each time with a different color: black for normal icons, red for selection icons and yellow for snap icons).
  • Method Details

    • isClassTraceOn

      public static boolean isClassTraceOn()
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Returns true if tracing is enabled for this class.
      Returns:
      true if tracing is enabled for this class, false otherwise.
    • setClassTraceOn

      public static void setClassTraceOn(boolean aClassTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for all instances of this class. If the argument is true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
      Parameters:
      aClassTraceOn - if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
    • setIconProvider

      public void setIconProvider(ILcdObjectIconProvider anIconProvider)
      Sets the ILcdObjectIconProvider for retrieving normal icons.
      Overrides:
      setIconProvider in class TLcdGXYIconPainter
      Parameters:
      anIconProvider - an ILcdObjectIconProvider
      See Also:
    • setSelectionIconProvider

      public void setSelectionIconProvider(ILcdObjectIconProvider aSelectionIconProvider)
      Sets the ILcdObjectIconProvider for retrieving selection icons.
      Overrides:
      setSelectionIconProvider in class TLcdGXYIconPainter
      Parameters:
      aSelectionIconProvider - an ILcdObjectIconProvider
      See Also:
    • setSnapIconProvider

      public void setSnapIconProvider(ILcdObjectIconProvider aSnapIconProvider)
      Sets the ILcdObjectIconProvider for retrieving snap icons.
      Parameters:
      aSnapIconProvider - an ILcdObjectIconProvider
    • getIconProvider

      public ILcdObjectIconProvider getIconProvider()
      Returns an ILcdObjectIconProvider object that should be used to retrieve normal icons.
      Overrides:
      getIconProvider in class TLcdGXYIconPainter
      Returns:
      an ILcdObjectIconProvider object that should be used to retrieve normal icons.
      See Also:
    • getSelectionIconProvider

      public ILcdObjectIconProvider getSelectionIconProvider()
      Returns an ILcdObjectIconProvider object that should be used to retrieve selection icons.
      Overrides:
      getSelectionIconProvider in class TLcdGXYIconPainter
      Returns:
      an ILcdObjectIconProvider object that should be used to retrieve selection icons.
      See Also:
    • getSnapIconProvider

      public ILcdObjectIconProvider getSnapIconProvider()
      Returns an ILcdObjectIconProvider object that should be used to retrieve snap icons.
      Returns:
      an ILcdObjectIconProvider object that should be used to retrieve snap icons.
    • setObject

      public void setObject(Object obj)
      Sets the object to be represented by this painter. This method will invoke the three ILcdObjectIconProvider objects to retrieve respectively an icon, a selection icon and a snap icon, to be used with the object.
      Specified by:
      setObject in interface ILcdGXYEditor
      Specified by:
      setObject in interface ILcdGXYPainter
      Overrides:
      setObject in class TLcdGXYIconPainter
      Parameters:
      obj - The object to paint and edit.
      See Also: