public class DockingFramePanel extends javax.swing.JPanel implements TopicPanel, java.awt.event.ActionListener, RefreshListener, TopicMapListener, bibliothek.gui.dock.event.DockableFocusListener, java.awt.event.ComponentListener, bibliothek.gui.dock.event.DockableListener, java.awt.dnd.DropTargetListener, java.awt.dnd.DragGestureListener
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
private java.awt.image.BufferedImage |
backgroundImage |
private int |
backgroundImageHeight |
private int |
backgroundImageWidth |
private java.util.HashMap<TopicPanel,TopicPanel> |
chainedTopicPanels |
private WandoraDockController |
control |
private bibliothek.gui.Dockable |
currentDockable |
private java.util.HashMap<bibliothek.gui.Dockable,TopicPanel> |
dockedTopicPanels |
private java.awt.dnd.DropTarget |
dropTarget |
private int |
h |
private Topic |
openedTopic |
private java.lang.String |
OPTIONS_PREFIX |
private int |
orders |
private boolean |
skipTopicMapActions |
private WandoraSplitDockStation |
station |
private int |
w |
private Wandora |
wandora |
private int |
x |
private int |
y |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
DockingFramePanel() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
addDockable(java.lang.Object c,
Topic topic) |
void |
addDockable(TopicPanel tp,
Topic topic) |
boolean |
applyChanges()
Topic panel should store all pending changes immediately.
|
void |
associationChanged(Association a)
A notification used to report general or large changes in association.
|
void |
associationPlayerChanged(Association a,
Topic role,
Topic newPlayer,
Topic oldPlayer)
A notification that a player in an association with a certain role has
been changed.
|
void |
associationRemoved(Association a)
A notification that an association has been completely removed.
|
void |
associationTypeChanged(Association a,
Topic newType,
Topic oldType)
A notification that association type has changed.
|
void |
changeTopicPanelInCurrentDockable(TopicPanel tp,
Topic topic) |
void |
componentHidden(java.awt.event.ComponentEvent e) |
void |
componentMoved(java.awt.event.ComponentEvent e) |
void |
componentResized(java.awt.event.ComponentEvent e) |
void |
componentShown(java.awt.event.ComponentEvent e) |
void |
deleteAllDockables() |
void |
deleteCurrentDockable() |
void |
deleteDockable(bibliothek.gui.Dockable dockable) |
void |
dockableFocused(bibliothek.gui.dock.event.DockableFocusEvent dfe) |
void |
doRefresh() |
void |
dragEnter(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent) |
void |
dragExit(java.awt.dnd.DropTargetEvent dropTargetEvent) |
void |
dragGestureRecognized(java.awt.dnd.DragGestureEvent dragGestureEvent) |
void |
dragOver(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent) |
void |
drop(java.awt.dnd.DropTargetDropEvent e) |
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent) |
static java.lang.String |
getAdditionalLabel(TopicPanel tp) |
private java.lang.Object[] |
getCloseMenuStruct() |
TopicPanel |
getCurrentTopicPanel() |
protected TopicPanel |
getDefaultPanel() |
bibliothek.gui.Dockable |
getDockableFor(TopicPanel topicPanel) |
java.util.HashMap |
getDockedTopicPanels() |
javax.swing.JPanel |
getGui()
Return the UI element for the topic panel.
|
javax.swing.Icon |
getIcon()
Return icon image of the topic panel.
|
java.lang.String |
getName()
Return name of the topic panel.
|
private java.lang.Object[] |
getOptionsMenuStruct() |
int |
getOrder()
Return integer number that specifies topic panel's order.
|
private java.lang.Object[] |
getSelectMenuStruct() |
java.lang.String |
getTitle()
Return title of the topic panel.
|
Topic |
getTopic()
Return the active topic in topic panel.
|
LocatorHistory |
getTopicHistory()
A topic panel can store it's own topic history.
|
javax.swing.JMenu |
getViewMenu() |
java.lang.Object[] |
getViewMenuStruct()
Topic panel can provide a menu structure that Wandora views in UI.
|
javax.swing.JPopupMenu |
getViewPopupMenu() |
private void |
handleComponentEvent(java.awt.event.ComponentEvent e) |
void |
init()
Initialize the TopicPanel.
|
void |
maximizeDockable(bibliothek.gui.Dockable dockable) |
boolean |
noScroll()
If this returns true, then the topic panel will not be wrapped inside
a scroll pane.
|
void |
open(Topic topic)
Open a topic in the topic panel.
|
void |
openTo(Topic topic,
TopicPanel topicPanel) |
void |
paint(java.awt.Graphics g) |
private void |
processFileList(java.util.List<java.io.File> files) |
private void |
processImage(java.awt.Image image) |
void |
refresh()
Request topic panel UI refresh.
|
void |
selectDockable(bibliothek.gui.Dockable dockable) |
void |
stop()
A topic panel should stop all threads and close all (shared) resources.
|
boolean |
supportsOpenTopic()
Does the topic panel support topic open? In other words can one call the
open method with a topic.
|
void |
titleBound(bibliothek.gui.Dockable dckbl,
bibliothek.gui.dock.title.DockTitle dt) |
void |
titleExchanged(bibliothek.gui.Dockable dckbl,
bibliothek.gui.dock.title.DockTitle dt) |
void |
titleIconChanged(bibliothek.gui.Dockable dckbl,
javax.swing.Icon icon,
javax.swing.Icon icon1) |
void |
titleTextChanged(bibliothek.gui.Dockable dckbl,
java.lang.String string,
java.lang.String string1) |
void |
titleToolTipChanged(bibliothek.gui.Dockable dckbl,
java.lang.String string,
java.lang.String string1) |
void |
titleUnbound(bibliothek.gui.Dockable dckbl,
bibliothek.gui.dock.title.DockTitle dt) |
void |
toggleVisibility(java.lang.String componentName) |
void |
topicBaseNameChanged(Topic t,
java.lang.String newName,
java.lang.String oldName)
Notification that the base name has been changed.
|
void |
topicChanged(Topic t)
A notification used to report general or large changes in topic, for example when topics are merged.
|
void |
topicDataChanged(Topic t,
Topic type,
Topic version,
java.lang.String newValue,
java.lang.String oldValue)
Notification that topic occurrence has been changed.
|
void |
topicRemoved(Topic t)
Notification that a topic has been completely removed.
|
void |
topicSubjectIdentifierChanged(Topic t,
Locator added,
Locator removed)
Notification that a subject identifier has changed.
|
void |
topicSubjectLocatorChanged(Topic t,
Locator newLocator,
Locator oldLocator)
Notification that the subject locator has been changed.
|
void |
topicTypeChanged(Topic t,
Topic added,
Topic removed)
Notification that a topic type has changed.
|
void |
topicVariantChanged(Topic t,
java.util.Collection<Topic> scope,
java.lang.String newName,
java.lang.String oldName)
Notification that a variant name has been changed.
|
void |
updateDockableTitle(TopicPanel topicPanel) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprivate java.lang.String OPTIONS_PREFIX
private java.util.HashMap<bibliothek.gui.Dockable,TopicPanel> dockedTopicPanels
private bibliothek.gui.Dockable currentDockable
private WandoraSplitDockStation station
private WandoraDockController control
private Wandora wandora
private java.awt.image.BufferedImage backgroundImage
private int backgroundImageWidth
private int backgroundImageHeight
private java.awt.dnd.DropTarget dropTarget
private java.util.HashMap<TopicPanel,TopicPanel> chainedTopicPanels
private Topic openedTopic
private int x
private int y
private int w
private int h
private boolean skipTopicMapActions
private int orders
public void init()
TopicPanelinit in interface TopicPanelpublic void paint(java.awt.Graphics g)
paint in class javax.swing.JComponentpublic bibliothek.gui.Dockable getDockableFor(TopicPanel topicPanel)
public void updateDockableTitle(TopicPanel topicPanel)
public void openTo(Topic topic, TopicPanel topicPanel) throws TopicMapException, OpenTopicNotSupportedException
public boolean supportsOpenTopic()
TopicPanelsupportsOpenTopic in interface TopicPanelpublic void open(Topic topic) throws TopicMapException, OpenTopicNotSupportedException
TopicPanelopen in interface TopicPanelTopicMapExceptionOpenTopicNotSupportedExceptionpublic void stop()
TopicPanelstop in interface TopicPanelpublic void refresh()
throws TopicMapException
TopicPanelrefresh in interface TopicPanelTopicMapExceptionpublic LocatorHistory getTopicHistory()
TopicPanelgetTopicHistory in interface TopicPanelpublic TopicPanel getCurrentTopicPanel()
public boolean applyChanges()
throws CancelledException,
TopicMapException
TopicPanelapplyChanges in interface TopicPanelCancelledExceptionTopicMapExceptionpublic javax.swing.JPanel getGui()
TopicPanelgetGui in interface TopicPanelpublic Topic getTopic() throws TopicMapException
TopicPanelgetTopic in interface TopicPanelTopicMapExceptionpublic java.lang.String getName()
TopicPanelgetName in interface TopicPanelgetName in class java.awt.Componentpublic java.lang.String getTitle()
TopicPanelgetTitle in interface TopicPanelpublic javax.swing.Icon getIcon()
TopicPanelgetIcon in interface TopicPanelpublic int getOrder()
TopicPanelgetOrder in interface TopicPanelpublic boolean noScroll()
TopicPanelnoScroll in interface TopicPanelpublic javax.swing.JPopupMenu getViewPopupMenu()
getViewPopupMenu in interface TopicPanelpublic javax.swing.JMenu getViewMenu()
getViewMenu in interface TopicPanelpublic java.lang.Object[] getViewMenuStruct()
TopicPanelgetViewMenuStruct in interface TopicPanelpublic java.util.HashMap getDockedTopicPanels()
private java.lang.Object[] getCloseMenuStruct()
private java.lang.Object[] getSelectMenuStruct()
private java.lang.Object[] getOptionsMenuStruct()
public static java.lang.String getAdditionalLabel(TopicPanel tp)
public void toggleVisibility(java.lang.String componentName)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void addDockable(java.lang.Object c,
Topic topic)
public void addDockable(TopicPanel tp, Topic topic)
public void deleteCurrentDockable()
public void deleteAllDockables()
public void deleteDockable(bibliothek.gui.Dockable dockable)
public void selectDockable(bibliothek.gui.Dockable dockable)
public void maximizeDockable(bibliothek.gui.Dockable dockable)
public void changeTopicPanelInCurrentDockable(TopicPanel tp, Topic topic)
public void dockableFocused(bibliothek.gui.dock.event.DockableFocusEvent dfe)
dockableFocused in interface bibliothek.gui.dock.event.DockableFocusListenerpublic void doRefresh()
throws TopicMapException
doRefresh in interface RefreshListenerTopicMapExceptionpublic void topicSubjectIdentifierChanged(Topic t, Locator added, Locator removed) throws TopicMapException
TopicMapListenertopicSubjectIdentifierChanged in interface TopicMapListenerTopicMapExceptionpublic void topicBaseNameChanged(Topic t, java.lang.String newName, java.lang.String oldName) throws TopicMapException
TopicMapListenertopicBaseNameChanged in interface TopicMapListenerTopicMapExceptionpublic void topicTypeChanged(Topic t, Topic added, Topic removed) throws TopicMapException
TopicMapListenertopicTypeChanged in interface TopicMapListenerTopicMapExceptionpublic void topicVariantChanged(Topic t, java.util.Collection<Topic> scope, java.lang.String newName, java.lang.String oldName) throws TopicMapException
TopicMapListenertopicVariantChanged in interface TopicMapListenerTopicMapExceptionpublic void topicDataChanged(Topic t, Topic type, Topic version, java.lang.String newValue, java.lang.String oldValue) throws TopicMapException
TopicMapListenertopicDataChanged in interface TopicMapListenerTopicMapExceptionpublic void topicSubjectLocatorChanged(Topic t, Locator newLocator, Locator oldLocator) throws TopicMapException
TopicMapListenertopicSubjectLocatorChanged in interface TopicMapListenerTopicMapExceptionpublic void topicRemoved(Topic t) throws TopicMapException
TopicMapListenertopicRemoved in interface TopicMapListenerTopicMapExceptionpublic void topicChanged(Topic t) throws TopicMapException
TopicMapListenertopicChanged in interface TopicMapListenerTopicMapExceptionpublic void associationTypeChanged(Association a, Topic newType, Topic oldType) throws TopicMapException
TopicMapListenerassociationTypeChanged in interface TopicMapListenerTopicMapExceptionpublic void associationPlayerChanged(Association a, Topic role, Topic newPlayer, Topic oldPlayer) throws TopicMapException
TopicMapListenerassociationPlayerChanged in interface TopicMapListenerTopicMapExceptionpublic void associationRemoved(Association a) throws TopicMapException
TopicMapListenerassociationRemoved in interface TopicMapListenerTopicMapExceptionpublic void associationChanged(Association a) throws TopicMapException
TopicMapListenerassociationChanged in interface TopicMapListenerTopicMapExceptionpublic void componentResized(java.awt.event.ComponentEvent e)
componentResized in interface java.awt.event.ComponentListenerpublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved in interface java.awt.event.ComponentListenerpublic void componentShown(java.awt.event.ComponentEvent e)
componentShown in interface java.awt.event.ComponentListenerpublic void componentHidden(java.awt.event.ComponentEvent e)
componentHidden in interface java.awt.event.ComponentListenerprivate void handleComponentEvent(java.awt.event.ComponentEvent e)
public void titleBound(bibliothek.gui.Dockable dckbl,
bibliothek.gui.dock.title.DockTitle dt)
titleBound in interface bibliothek.gui.dock.event.DockableListenerpublic void titleUnbound(bibliothek.gui.Dockable dckbl,
bibliothek.gui.dock.title.DockTitle dt)
titleUnbound in interface bibliothek.gui.dock.event.DockableListenerpublic void titleTextChanged(bibliothek.gui.Dockable dckbl,
java.lang.String string,
java.lang.String string1)
titleTextChanged in interface bibliothek.gui.dock.event.DockableListenerpublic void titleIconChanged(bibliothek.gui.Dockable dckbl,
javax.swing.Icon icon,
javax.swing.Icon icon1)
titleIconChanged in interface bibliothek.gui.dock.event.DockableListenerpublic void titleToolTipChanged(bibliothek.gui.Dockable dckbl,
java.lang.String string,
java.lang.String string1)
titleToolTipChanged in interface bibliothek.gui.dock.event.DockableListenerpublic void titleExchanged(bibliothek.gui.Dockable dckbl,
bibliothek.gui.dock.title.DockTitle dt)
titleExchanged in interface bibliothek.gui.dock.event.DockableListenerpublic void dragEnter(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
dragEnter in interface java.awt.dnd.DropTargetListenerpublic void dragExit(java.awt.dnd.DropTargetEvent dropTargetEvent)
dragExit in interface java.awt.dnd.DropTargetListenerpublic void dragOver(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
dragOver in interface java.awt.dnd.DropTargetListenerprivate void processImage(java.awt.Image image)
throws java.lang.Exception
java.lang.Exceptionprivate void processFileList(java.util.List<java.io.File> files)
throws java.lang.Exception
java.lang.Exceptionpublic void drop(java.awt.dnd.DropTargetDropEvent e)
drop in interface java.awt.dnd.DropTargetListenerpublic void dropActionChanged(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
dropActionChanged in interface java.awt.dnd.DropTargetListenerpublic void dragGestureRecognized(java.awt.dnd.DragGestureEvent dragGestureEvent)
dragGestureRecognized in interface java.awt.dnd.DragGestureListenerprotected TopicPanel getDefaultPanel()
Copyright 2004-2015 Wandora Team