Class SessionEditorSelection
java.lang.Object
ca.phon.app.session.editor.SessionEditorSelection
- All Implemented Interfaces:
IExtendable
Selection information used for
EditorSelectionModel.
Custom highlighting can be obtained by attaching an extension
of type Highlighter.HighlightPainter-
Constructor Summary
ConstructorsConstructorDescriptionSessionEditorSelection(int elementIndex, String tierName, Range range) SessionEditorSelection(int elementIndex, String tierName, Range range, Object owner) SessionEditorSelection(TranscriptElementRange range, Object owner) -
Method Summary
Modifier and TypeMethodDescriptionint<T> TgetExtension(Class<T> cap) Get the requested extension if available.Return all extension types supportedgetOwner()getRange()<T> TputExtension(Class<T> cap, T impl) Add a new extension.<T> TremoveExtension(Class<T> cap) Remove a capability.
-
Constructor Details
-
SessionEditorSelection
-
SessionEditorSelection
-
SessionEditorSelection
-
SessionEditorSelection
-
-
Method Details
-
getTranscriptElementRange
-
getElementIndex
public int getElementIndex() -
getOwner
-
getTierName
-
getRange
-
getExtensions
Description copied from interface:IExtendableReturn all extension types supported- Specified by:
getExtensionsin interfaceIExtendable
-
getExtension
Description copied from interface:IExtendableGet the requested extension if available.- Specified by:
getExtensionin interfaceIExtendable- Returns:
- the capability object or
nullif the cability is not available
-
putExtension
Description copied from interface:IExtendableAdd a new extension.- Specified by:
putExtensionin interfaceIExtendable- Parameters:
cap- the extension to add- Returns:
- the added extension implementation
-
removeExtension
Description copied from interface:IExtendableRemove a capability.- Specified by:
removeExtensionin interfaceIExtendable- Parameters:
cap- the capability to remove
-