Class TLspEditHandleStyler
java.lang.Object
com.luciad.view.lightspeed.style.styler.ALspStyler
com.luciad.view.lightspeed.controller.manipulation.TLspEditHandleStyler
- All Implemented Interfaces:
ILspStyler
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 Summary
ConstructorDescriptionCreates a new edit handle styler with default settings. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setStyles
(TLspHandleGeometryType aType, ALspStyle... aStyles) Assigns a set of styles to the given component type.void
setStyles
(TLspHandleGeometryType aType, List<ALspStyle> aStyles) Assigns a set of styles to the given component type.void
style
(Collection<?> aObjects, ALspStyleCollector aStyleCollector, TLspContext aContext) Styles the supplied edit handles.Methods inherited from class com.luciad.view.lightspeed.style.styler.ALspStyler
addStyleChangeListener, fireStyleChangeEvent, fireStyleChangeEvent, removeStyleChangeListener
-
Constructor Details
-
TLspEditHandleStyler
public TLspEditHandleStyler()Creates a new edit handle styler with default settings.
-
-
Method Details
-
setStyles
Assigns a set of styles to the given component type.- Parameters:
aType
- the handle geometry typeaStyles
- the styles to be applied for this type
-
setStyles
Assigns a set of styles to the given component type.- Parameters:
aType
- the handle geometry typeaStyles
- the styles to be applied for this type
-
style
Styles the supplied edit handles. The geometry to be drawn is obtained by callinggetStyleTargetProviders
. A style target provider is constructed internally to perform this call. When extending this class, the methodcreateStyleTargetProvider(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.
-