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.AccessibleJPanel
javax.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, updateUI
addAncestorListener, 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, update
add, 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, validateTree
action, 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, transferFocusUpCycle
private 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()
TopicPanel
init
in interface TopicPanel
public void paint(java.awt.Graphics g)
paint
in class javax.swing.JComponent
public bibliothek.gui.Dockable getDockableFor(TopicPanel topicPanel)
public void updateDockableTitle(TopicPanel topicPanel)
public void openTo(Topic topic, TopicPanel topicPanel) throws TopicMapException, OpenTopicNotSupportedException
public boolean supportsOpenTopic()
TopicPanel
supportsOpenTopic
in interface TopicPanel
public void open(Topic topic) throws TopicMapException, OpenTopicNotSupportedException
TopicPanel
open
in interface TopicPanel
TopicMapException
OpenTopicNotSupportedException
public void stop()
TopicPanel
stop
in interface TopicPanel
public void refresh() throws TopicMapException
TopicPanel
refresh
in interface TopicPanel
TopicMapException
public LocatorHistory getTopicHistory()
TopicPanel
getTopicHistory
in interface TopicPanel
public TopicPanel getCurrentTopicPanel()
public boolean applyChanges() throws CancelledException, TopicMapException
TopicPanel
applyChanges
in interface TopicPanel
CancelledException
TopicMapException
public javax.swing.JPanel getGui()
TopicPanel
getGui
in interface TopicPanel
public Topic getTopic() throws TopicMapException
TopicPanel
getTopic
in interface TopicPanel
TopicMapException
public java.lang.String getName()
TopicPanel
getName
in interface TopicPanel
getName
in class java.awt.Component
public java.lang.String getTitle()
TopicPanel
getTitle
in interface TopicPanel
public javax.swing.Icon getIcon()
TopicPanel
getIcon
in interface TopicPanel
public int getOrder()
TopicPanel
getOrder
in interface TopicPanel
public boolean noScroll()
TopicPanel
noScroll
in interface TopicPanel
public javax.swing.JPopupMenu getViewPopupMenu()
getViewPopupMenu
in interface TopicPanel
public javax.swing.JMenu getViewMenu()
getViewMenu
in interface TopicPanel
public java.lang.Object[] getViewMenuStruct()
TopicPanel
getViewMenuStruct
in interface TopicPanel
public 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.ActionListener
public 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.DockableFocusListener
public void doRefresh() throws TopicMapException
doRefresh
in interface RefreshListener
TopicMapException
public void topicSubjectIdentifierChanged(Topic t, Locator added, Locator removed) throws TopicMapException
TopicMapListener
topicSubjectIdentifierChanged
in interface TopicMapListener
TopicMapException
public void topicBaseNameChanged(Topic t, java.lang.String newName, java.lang.String oldName) throws TopicMapException
TopicMapListener
topicBaseNameChanged
in interface TopicMapListener
TopicMapException
public void topicTypeChanged(Topic t, Topic added, Topic removed) throws TopicMapException
TopicMapListener
topicTypeChanged
in interface TopicMapListener
TopicMapException
public void topicVariantChanged(Topic t, java.util.Collection<Topic> scope, java.lang.String newName, java.lang.String oldName) throws TopicMapException
TopicMapListener
topicVariantChanged
in interface TopicMapListener
TopicMapException
public void topicDataChanged(Topic t, Topic type, Topic version, java.lang.String newValue, java.lang.String oldValue) throws TopicMapException
TopicMapListener
topicDataChanged
in interface TopicMapListener
TopicMapException
public void topicSubjectLocatorChanged(Topic t, Locator newLocator, Locator oldLocator) throws TopicMapException
TopicMapListener
topicSubjectLocatorChanged
in interface TopicMapListener
TopicMapException
public void topicRemoved(Topic t) throws TopicMapException
TopicMapListener
topicRemoved
in interface TopicMapListener
TopicMapException
public void topicChanged(Topic t) throws TopicMapException
TopicMapListener
topicChanged
in interface TopicMapListener
TopicMapException
public void associationTypeChanged(Association a, Topic newType, Topic oldType) throws TopicMapException
TopicMapListener
associationTypeChanged
in interface TopicMapListener
TopicMapException
public void associationPlayerChanged(Association a, Topic role, Topic newPlayer, Topic oldPlayer) throws TopicMapException
TopicMapListener
associationPlayerChanged
in interface TopicMapListener
TopicMapException
public void associationRemoved(Association a) throws TopicMapException
TopicMapListener
associationRemoved
in interface TopicMapListener
TopicMapException
public void associationChanged(Association a) throws TopicMapException
TopicMapListener
associationChanged
in interface TopicMapListener
TopicMapException
public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
private 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.DockableListener
public void titleUnbound(bibliothek.gui.Dockable dckbl, bibliothek.gui.dock.title.DockTitle dt)
titleUnbound
in interface bibliothek.gui.dock.event.DockableListener
public void titleTextChanged(bibliothek.gui.Dockable dckbl, java.lang.String string, java.lang.String string1)
titleTextChanged
in interface bibliothek.gui.dock.event.DockableListener
public void titleIconChanged(bibliothek.gui.Dockable dckbl, javax.swing.Icon icon, javax.swing.Icon icon1)
titleIconChanged
in interface bibliothek.gui.dock.event.DockableListener
public void titleToolTipChanged(bibliothek.gui.Dockable dckbl, java.lang.String string, java.lang.String string1)
titleToolTipChanged
in interface bibliothek.gui.dock.event.DockableListener
public void titleExchanged(bibliothek.gui.Dockable dckbl, bibliothek.gui.dock.title.DockTitle dt)
titleExchanged
in interface bibliothek.gui.dock.event.DockableListener
public void dragEnter(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
dragEnter
in interface java.awt.dnd.DropTargetListener
public void dragExit(java.awt.dnd.DropTargetEvent dropTargetEvent)
dragExit
in interface java.awt.dnd.DropTargetListener
public void dragOver(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
dragOver
in interface java.awt.dnd.DropTargetListener
private void processImage(java.awt.Image image) throws java.lang.Exception
java.lang.Exception
private void processFileList(java.util.List<java.io.File> files) throws java.lang.Exception
java.lang.Exception
public void drop(java.awt.dnd.DropTargetDropEvent e)
drop
in interface java.awt.dnd.DropTargetListener
public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
dropActionChanged
in interface java.awt.dnd.DropTargetListener
public void dragGestureRecognized(java.awt.dnd.DragGestureEvent dragGestureEvent)
dragGestureRecognized
in interface java.awt.dnd.DragGestureListener
protected TopicPanel getDefaultPanel()
Copyright 2004-2015 Wandora Team