Package org.graffiti.plugin.inspector
Class InspectorTab
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.graffiti.plugin.inspector.InspectorTab
- All Implemented Interfaces:
ComponentListener,ImageObserver,MenuContainer,Serializable,EventListener
- Direct Known Subclasses:
AbstractTab,PathwayWebLinkTab,RimasTab,SubtabHostTab,TabAglet,TabBiomodels,TabDBE,TabKegg,TabNetworkAlgorithms,TabPatternLayout,TabPluginControl,TabStatistics,TabVisualisationControl,WorkflowHelper
public abstract class InspectorTab extends JComponent implements ComponentListener
An
InspectorTab is a generic component for an
InspectorPlugin.- See Also:
JComponent,InspectorPlugin, Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Component
Component.BaselineResizeBehavior -
Field Summary
Fields Modifier and Type Field Description EditPaneleditPanelThe panel that holds the table of the attributes and the buttons for adding and removing attributes as well as the "apply" button.static StringPREFERENCE_TAB_SHOWstatic intTAB_LEADINGstatic intTAB_RANDOMstatic intTAB_TRAILINGFields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors Constructor Description InspectorTab() -
Method Summary
Modifier and Type Method Description voidcomponentHidden(ComponentEvent e)voidcomponentMoved(ComponentEvent e)voidcomponentResized(ComponentEvent e)voidcomponentShown(ComponentEvent e)Override this method to trigger any action to be done, if this tab gains visibility.voidfocusAndHighlight(InspectorTab whenFinishedHighlight, boolean highlight, boolean cycleChildren)static voidfocusAndHighlightComponent(JComponent thisss, String title, InspectorTab whenFinishedHighlight, boolean highlight, boolean cycleChildren)EditPanelgetEditPanel()Returns the EditPanel of this tab.ImageIcongetIcon()StringgetName()intgetPreferredTabPosition()Returns the preferred tab position in its parent tab.StringgetTabParentPath()returns a path string, that tells Vanted, where to put this tab.StringgetTitle()Returns the title of the currentInspectorTab.booleanisSelectionListener()voidsetEditPanelComponentMap(Map<?,?> valueEditComponents)voidsetEditPanelGraphElementMap(Map<GraphElement,GraphElement> map)voidsetEditPanelInformation(Map<?,?> valueEditComponents, Map<GraphElement,GraphElement> map)voidsetIcon(ImageIcon icon)voidsetPreferredTabPosition(int preferredTabPosition)abstract booleanvisibleForView(View v)Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validateMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
TAB_LEADING
public static final int TAB_LEADING- See Also:
- Constant Field Values
-
TAB_TRAILING
public static final int TAB_TRAILING- See Also:
- Constant Field Values
-
TAB_RANDOM
public static final int TAB_RANDOM- See Also:
- Constant Field Values
-
PREFERENCE_TAB_SHOW
- See Also:
- Constant Field Values
-
editPanel
The panel that holds the table of the attributes and the buttons for adding and removing attributes as well as the "apply" button.
-
-
Constructor Details
-
InspectorTab
public InspectorTab()
-
-
Method Details
-
getEditPanel
Returns the EditPanel of this tab.- Returns:
- DOCUMENT ME!
-
getTitle
Returns the title of the currentInspectorTab.- Returns:
- the title of the current
InspectorTab.
-
getName
-
visibleForView
-
focusAndHighlight
public void focusAndHighlight(InspectorTab whenFinishedHighlight, boolean highlight, boolean cycleChildren) -
focusAndHighlightComponent
public static void focusAndHighlightComponent(JComponent thisss, String title, InspectorTab whenFinishedHighlight, boolean highlight, boolean cycleChildren) -
setEditPanelInformation
public void setEditPanelInformation(Map<?,?> valueEditComponents, Map<GraphElement,GraphElement> map) -
setEditPanelComponentMap
-
setEditPanelGraphElementMap
-
setIcon
-
getIcon
-
getTabParentPath
returns a path string, that tells Vanted, where to put this tab. It is a dot-delimited string if it is not overridden, it'll return null and Vanted will put this tab on the root level If the path is not empty, Vanted puts this tab as child in the given tab hierarchy Example: return 'Network' and this tab is put as child in the Network Tab If the parent tab does not exist, it will be created- Returns:
-
getPreferredTabPosition
public int getPreferredTabPosition()Returns the preferred tab position in its parent tab. It can be InspectorTab.{LEADING,TRAILING,RANDOM,POSNUM} where POSNUM is the absolute position number This gives more control about the layout of subtabs- Returns:
-
setPreferredTabPosition
public void setPreferredTabPosition(int preferredTabPosition) -
isSelectionListener
public boolean isSelectionListener() -
componentShown
Override this method to trigger any action to be done, if this tab gains visibility. Then also callsuper(e);to enable DPI scaling.- Specified by:
componentShownin interfaceComponentListener
-
componentResized
- Specified by:
componentResizedin interfaceComponentListener
-
componentMoved
- Specified by:
componentMovedin interfaceComponentListener
-
componentHidden
- Specified by:
componentHiddenin interfaceComponentListener
-