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.Constructor and Description |
---|
TLspEditHandleStyler()
Creates a new edit handle styler with default settings.
|
Modifier and Type | Method and Description |
---|---|
void |
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.
|
addStyleChangeListener, fireStyleChangeEvent, fireStyleChangeEvent, removeStyleChangeListener
public TLspEditHandleStyler()
public void setStyles(TLspHandleGeometryType aType, List<ALspStyle> aStyles)
aType
- the handle geometry typeaStyles
- the styles to be applied for this typepublic void setStyles(TLspHandleGeometryType aType, ALspStyle... aStyles)
aType
- the handle geometry typeaStyles
- the styles to be applied for this typepublic void style(Collection<?> aObjects, ALspStyleCollector aStyleCollector, TLspContext aContext)
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.
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.