Class TLspEditHandleStyler

java.lang.Object
com.luciad.view.lightspeed.style.styler.ALspStyler
com.luciad.view.lightspeed.controller.manipulation.TLspEditHandleStyler
All Implemented Interfaces:
ILspStyler

public class TLspEditHandleStyler extends ALspStyler
Styler implementation used for edit handles. This class is used by TLspCreateController and TLspEditController and offers a convenient way to register styles for each possible TLspHandleGeometryType.

It is also possible to use a custom ILspStyler to style your handles.

Since:
2012.0
  • Constructor Details

    • TLspEditHandleStyler

      public TLspEditHandleStyler()
      Creates a new edit handle styler with default settings.
  • Method Details

    • setStyles

      public void setStyles(TLspHandleGeometryType aType, List<ALspStyle> aStyles)
      Assigns a set of styles to the given component type.
      Parameters:
      aType - the handle geometry type
      aStyles - the styles to be applied for this type
    • setStyles

      public void setStyles(TLspHandleGeometryType aType, ALspStyle... aStyles)
      Assigns a set of styles to the given component type.
      Parameters:
      aType - the handle geometry type
      aStyles - the styles to be applied for this type
    • style

      public void style(Collection<?> aObjects, ALspStyleCollector aStyleCollector, TLspContext aContext)
      Styles the supplied edit handles. The geometry to be drawn is obtained by calling getStyleTargetProviders . A style target provider is constructed internally to perform this call. When extending this class, the method createStyleTargetProvider(com.luciad.view.lightspeed.editor.handle.ALspHandle, com.luciad.view.lightspeed.editor.TLspHandleGeometryType) can be used to replicate this behavior.

      Parameters:
      aObjects - The edit handles to be styled.
      aStyleCollector - A style collector to which all styling information should be passed, this collector is only valid within this method call, and can no longer be used afterwards.
      aContext - Provides context information that may affect styling, such as view specific properties.