Class TLcdMS2525bGXYPainterProvider

java.lang.Object
com.luciad.symbology.milstd2525b.view.gxy.painter.TLcdMS2525bGXYPainterProvider
All Implemented Interfaces:
ILcdCloneable, ILcdGXYPainterProvider, Serializable, Cloneable

public class TLcdMS2525bGXYPainterProvider extends Object implements ILcdGXYPainterProvider
A painter provider for a layer containing ILcdMS2525bStyled objects. The painter provider looks for a painter based on the object's signature.

If the object set on this painter is an instance of ILcdStyledMilitarySymbol, TLcdMilitarySymbolStyle returned by ILcdStyledMilitarySymbol.getMilitarySymbolStyle() will be used to determine the actual display of the object on the map. Otherwise, a default style will be used which can be customized using the method setDefaultMilitarySymbolStyle(TLcdMilitarySymbolStyle).

See Also:
  • Constructor Details

    • TLcdMS2525bGXYPainterProvider

      public TLcdMS2525bGXYPainterProvider()
  • Method Details

    • getGXYPainter

      public ILcdGXYPainter getGXYPainter(Object aObject)
      Returns a valid ILcdGXYPainter for painting aObject.
      Specified by:
      getGXYPainter in interface ILcdGXYPainterProvider
      Parameters:
      aObject - An object representing a MIL-STD 2525b symbol. This means that it should at least implement the interface ILcdMS2525bShape.
      Returns:
      a valid ILcdGXYPainter for painting the given object.
      Throws:
      IllegalArgumentException - if the given object doesn't implement ILcdMS2525bShape or doesn't represent a valid MIL-STD 2525b code.
    • clone

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

      public void setIconProvider(ILcdObjectIconProvider aObjectIconProvider)
      Sets the icon provider to be used. By default, an instance of TLcdMS2525bObjectIconProvider is used.

      A custom icon provider should use the default style associated with this painter provider (see method getDefaultStyle()).

      Parameters:
      aObjectIconProvider - An implementation of ILcdObjectIconProvider.
    • getIconProvider

      public ILcdObjectIconProvider getIconProvider()
      Returns the icon provider that is used. By default, this is an instance of the class TLcdMS2525bObjectIconProvider.
      Returns:
      the icon provider that is used.
    • setDefaultStyle

      @Deprecated public void setDefaultStyle(ILcdMS2525bStyle aDefaultMS2525bStyle)
      Sets a default ILcdMS2525bStyle instance that is used for objects which don't implement ILcdMS2525bStyled.
      Parameters:
      aDefaultMS2525bStyle - A ILcdMS2525bStyle instance.
    • getDefaultStyle

      @Deprecated public ILcdMS2525bStyle getDefaultStyle()
      Deprecated.
      Returns the default ILcdMS2525bStyle instance that is used for objects which don't implement ILcdStyledMilitarySymbol.
      Returns:
      the default ILcdMS2525bStyle instance that is used for objects which don't implement ILcdStyledMilitarySymbol.
    • setDefaultMilitarySymbolStyle

      public void setDefaultMilitarySymbolStyle(TLcdMilitarySymbolStyle aDefaultStyle)
      Sets a default TLcdMilitarySymbolStyle instance that is used for objects which don't implement ILcdStyledMilitarySymbol.
      Parameters:
      aDefaultStyle - A TLcdMilitarySymbolStyle instance. Never null.
      Throws:
      NullPointerException - If the given TLcdMilitarySymbolStyle is null.
      Since:
      2024.0
    • getDefaultMilitarySymbolStyle

      public TLcdMilitarySymbolStyle getDefaultMilitarySymbolStyle()
      Returns the default TLcdMilitarySymbolStyle that is used for objects which don't implement ILcdStyledMilitarySymbol.
      Returns:
      the default TLcdMilitarySymbolStyle that is used for objects which don't implement ILcdStyledMilitarySymbol.
      Since:
      2024.0
    • setIconSize

      @Deprecated public void setIconSize(int aSize)
      Deprecated.
      Replaced by the more general method setDefaultStyle(ILcdMS2525bStyle).
      Sets the default icon size that is used for objects which don't implement ILcdMS2525bStyled.
      Parameters:
      aSize - the default icon size.
    • getIconSize

      @Deprecated public int getIconSize()
      Deprecated.
      Replaced by the more general method getDefaultStyle().
      Returns the default icon size.
      Returns:
      the default icon size.
    • setOutlined

      @Deprecated public void setOutlined(boolean aIsOutlined)
      Deprecated.
      Replaced by the more general method setDefaultStyle(ILcdMS2525bStyle).
      Sets the default outline property that is used for objects which don't implement ILcdMS2525bStyled.
      Parameters:
      aIsOutlined - the default outline property.
    • getOutlined

      @Deprecated public boolean getOutlined()
      Deprecated.
      Replaced by the more general method getDefaultStyle().
      Returns the default outline property.
      Returns:
      The default outline property.