public class AnnotationControl extends PropertyChangeSource implements java.beans.PropertyChangeListener, Updatable
Modifier and Type | Field and Description |
---|---|
protected ActionManager |
actionManager |
protected boolean |
allowSelection |
protected AnnotationManager |
annotationManager |
protected NavigationControl.ArrowStyle |
arrowStyle |
protected javax.swing.JPopupMenu |
displayModeMenu |
protected static java.lang.String |
firstActionId |
protected static java.lang.String |
lastActionId |
protected javax.swing.JButton |
menuButton |
protected static java.lang.String |
modeAllActionId |
protected static java.lang.String |
modeFirstActionId |
protected static java.lang.String |
modeLastActionId |
protected static java.lang.String |
modeNoneActionId |
protected static java.lang.String |
modeSelectedActionId |
protected javax.swing.JButton[] |
navigationButtons |
protected javax.swing.JLabel |
navigationLabel |
protected static java.lang.String |
nextActionId |
protected static java.lang.String |
previousActionId |
protected static java.lang.String |
selectModeActionId |
changeSupport
Constructor and Description |
---|
AnnotationControl() |
AnnotationControl(boolean allowSelection) |
Modifier and Type | Method and Description |
---|---|
void |
attach(javax.swing.JToolBar toolBar) |
protected void |
buildComponents() |
protected javax.swing.JButton |
createNavigationButton(javax.swing.Action action) |
protected javax.swing.JPopupMenu |
createPopupMenu() |
protected ActionManager |
getActionManager() |
AnnotationManager |
getAnnotationManager() |
NavigationControl.ArrowStyle |
getArrowStyle() |
java.awt.Component[] |
getComponents() |
protected static ActionManager |
getSharedActionManager() |
void |
navigate(java.awt.event.ActionEvent e) |
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
protected void |
refreshActions() |
protected void |
registerActionCallbacks() |
void |
selectMode(java.awt.event.ActionEvent e) |
void |
selectMode(boolean b) |
void |
setAnnotationManager(AnnotationManager annotationManager) |
void |
setArrowStyle(NavigationControl.ArrowStyle arrowStyle) |
void |
setEnabled(boolean enabled) |
void |
showModeMenu(java.awt.event.ActionEvent e) |
boolean |
update() |
protected void |
updateDisplayMode() |
protected void |
updateNavigationLabel() |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener
protected AnnotationManager annotationManager
protected ActionManager actionManager
protected NavigationControl.ArrowStyle arrowStyle
protected static final java.lang.String selectModeActionId
protected static final java.lang.String firstActionId
protected static final java.lang.String previousActionId
protected static final java.lang.String nextActionId
protected static final java.lang.String lastActionId
protected static final java.lang.String modeAllActionId
protected static final java.lang.String modeNoneActionId
protected static final java.lang.String modeFirstActionId
protected static final java.lang.String modeLastActionId
protected static final java.lang.String modeSelectedActionId
protected javax.swing.JLabel navigationLabel
protected javax.swing.JButton[] navigationButtons
protected javax.swing.JButton menuButton
protected javax.swing.JPopupMenu displayModeMenu
protected final boolean allowSelection
public AnnotationControl(boolean allowSelection)
public AnnotationControl()
protected javax.swing.JPopupMenu createPopupMenu()
protected void buildComponents()
protected javax.swing.JButton createNavigationButton(javax.swing.Action action)
public NavigationControl.ArrowStyle getArrowStyle()
public void setArrowStyle(NavigationControl.ArrowStyle arrowStyle)
protected static final ActionManager getSharedActionManager()
protected ActionManager getActionManager()
protected void registerActionCallbacks()
public void selectMode(boolean b)
public void selectMode(java.awt.event.ActionEvent e)
public void showModeMenu(java.awt.event.ActionEvent e)
public void navigate(java.awt.event.ActionEvent e)
protected void refreshActions()
public AnnotationManager getAnnotationManager()
public void setAnnotationManager(AnnotationManager annotationManager)
annotationManager
- the annotationManager to setpublic void setEnabled(boolean enabled)
protected void updateDisplayMode()
protected void updateNavigationLabel()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
public java.awt.Component[] getComponents()
public void attach(javax.swing.JToolBar toolBar)
public boolean update()
update
in interface Updatable
Updatable.update()