Class AnnotationEditor
java.lang.Object
com.levigo.jadice.web.client.internal.annotation.AnnotationEditor
A toolbar providing annotation editing functions such as buttons for editing colors, line widths,
text formatting, font sizes, font faces etc.
The editing options depend on the currently selected annotation(s).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Removes all selected annotations.void
ensureDebugId
(String baseID) Returns a all selected annotationsvoid
init
(ToolManager manager) boolean
void
setLastVisible
(boolean lastVisible) void
setSelectedItems
(AnnotationSelection selection, EditEvent e) Configures this toolbar instance with the selected annotations.void
setToolbar
(AbstractBar toolbar) void
setVisible
(boolean visible) protected void
updateButtons
(AnnotationSelection selection, EditEvent e) void
updatePosition
(Rectangle selectionRect)
-
Constructor Details
-
AnnotationEditor
Constructor.- Parameters:
tool
- TheAnnotationTool
that performs the actual operations on the selected annotation(s).
-
-
Method Details
-
setToolbar
-
init
-
setLastVisible
public void setLastVisible(boolean lastVisible) -
setVisible
public void setVisible(boolean visible) -
setSelectedItems
Configures this toolbar instance with the selected annotations.Updates the displayed buttons in the toolbar. Dependent on the possible actions on the selected annotation(s) some buttons are displayed, others not. For instance a button to delete the selected annotations is only displayed when the user is allowed to delete all annotations contained in the selection.
- Parameters:
selection
- The selected annotations.e
- The underlying edit event.
-
getSelectedItems
Returns a all selected annotations- Returns:
- A set containing all selected annotations.
-
clearSelection
public void clearSelection()Removes all selected annotations. -
updatePosition
-
isVisible
public boolean isVisible() -
ensureDebugId
-
updateButtons
-