Package org.jppf.ui.treetable
Class AbstractTreeCellRenderer
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
javax.swing.tree.DefaultTreeCellRenderer
org.jppf.ui.treetable.AbstractTreeCellRenderer
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,Accessible,SwingConstants,TreeCellRenderer
- Direct Known Subclasses:
HealthTreeCellRenderer,JobRenderer,NodeRenderer
Renderer used to render the tree nodes in the node data panel.
- Author:
- Laurent Cohen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JLabel
JLabel.AccessibleJLabelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ColorHighlighting color for active driver connections.protected static FontThe default bold font.protected static FontThe default bold and italic font.static final boolean[]The possibl boolean values.static final StringCritical icon.static final ColorDefault background color.static final ColorDefault foreground color.static final ColorDefault selection background color.static final ColorDefault selection foreground color.protected ColorDefault non-selection background.protected ColorDefault selection background.protected ColorDefault selection background.static final ColorDefault foreground color.static final StringPath to the icon used for a driver.static final StringPath to the icon used for an inactive driver connection.static final ColorHighlighting color for non-selected inactive driver connections.static final ColorHighlighting color for selected inactive driver connections.protected static FontThe default italic font.static final StringPath to the icon used for a job.static final StringPath to the marker icon used for a .Net-capable node.static final StringPath to the marker icon used for a master node.static final StringPath to the marker icon used for a node that has a pending restart.static final StringPath to the marker icon used for a node that has a pending shutdown.static final StringPath to the icon used for a non-master node with .Net bridge.static final StringPath to the icon used for a non-master node.static final StringPath to the icon used for a master node with .Net bridge.static final StringPath to the icon used for a master node.protected static FontThe default plain font.static final StringPath to the location of the icon files.static final ColorHighlighting color for non-selected suspended jobs.static final ColorForeground color for non-managed nodes.Fields inherited from class javax.swing.tree.DefaultTreeCellRenderer
backgroundNonSelectionColor, backgroundSelectionColor, borderSelectionColor, closedIcon, hasFocus, leafIcon, openIcon, selected, textNonSelectionColor, textSelectionColorFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FontgetBoldFont(Font font) Get the default bold font.static FontgetBoldItalicFont(Font font) Get the default bold and italic font.static FontgetItalicFont(Font font) Get the default italic font.static FontgetPlainFont(Font font) Get the default plain font.protected static booleanisShowIP()Determine whether IP addresses or host names are displayed.Methods inherited from class javax.swing.tree.DefaultTreeCellRenderer
firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundNonSelectionColor, getBackgroundSelectionColor, getBorderSelectionColor, getClosedIcon, getDefaultClosedIcon, getDefaultLeafIcon, getDefaultOpenIcon, getFont, getLeafIcon, getOpenIcon, getPreferredSize, getTextNonSelectionColor, getTextSelectionColor, getTreeCellRendererComponent, invalidate, paint, repaint, repaint, repaint, revalidate, setBackground, setBackgroundNonSelectionColor, setBackgroundSelectionColor, setBorderSelectionColor, setClosedIcon, setFont, setLeafIcon, setOpenIcon, setTextNonSelectionColor, setTextSelectionColor, updateUI, validateMethods inherited from class javax.swing.JLabel
checkHorizontalKey, checkVerticalKey, getAccessibleContext, getDisabledIcon, getDisplayedMnemonic, getDisplayedMnemonicIndex, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getLabelFor, getText, getUI, getUIClassID, getVerticalAlignment, getVerticalTextPosition, imageUpdate, paramString, setDisabledIcon, setDisplayedMnemonic, setDisplayedMnemonic, setDisplayedMnemonicIndex, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabelFor, setText, setUI, setVerticalAlignment, setVerticalTextPositionMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, 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, 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, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateMethods inherited from class java.awt.Container
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, 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, validateTreeMethods inherited from class java.awt.Component
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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, requestFocus, 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
-
BOOL_VALUES
public static final boolean[] BOOL_VALUESThe possibl boolean values. -
RESOURCES
Path to the location of the icon files.- See Also:
-
DRIVER_ICON
Path to the icon used for a driver.- See Also:
-
DRIVER_INACTIVE_ICON
Path to the icon used for an inactive driver connection.- See Also:
-
NODE_ICON
Path to the icon used for a non-master node.- See Also:
-
MARKER_MASTER_ICON
Path to the marker icon used for a master node.- See Also:
-
MARKER_DOTNET_ICON
Path to the marker icon used for a .Net-capable node.- See Also:
-
MARKER_PENDING_SHUTDOWN_ICON
Path to the marker icon used for a node that has a pending shutdown.- See Also:
-
MARKER_PENDING_RESTART_ICON
Path to the marker icon used for a node that has a pending restart.- See Also:
-
NODE_MASTER_ICON
Path to the icon used for a master node.- See Also:
-
NODE_DOTNET_ICON
Path to the icon used for a non-master node with .Net bridge.- See Also:
-
NODE_MASTER_DOTNET_ICON
Path to the icon used for a master node with .Net bridge.- See Also:
-
JOB_ICON
Path to the icon used for a job.- See Also:
-
CRITICAL_ICON
Critical icon.- See Also:
-
ACTIVE_COLOR
Highlighting color for active driver connections. -
INACTIVE_COLOR
Highlighting color for non-selected inactive driver connections. -
INACTIVE_SELECTION_COLOR
Highlighting color for selected inactive driver connections. -
SUSPENDED_COLOR
Highlighting color for non-selected suspended jobs. -
DEFAULT_FOREGROUND
Default foreground color. -
DEFAULT_SELECTION_FOREGROUND
Default selection foreground color. -
DEFAULT_BACKGROUND
Default background color. -
DEFAULT_SELECTION_BACKGROUND
Default selection background color. -
DIMMED_FOREGROUND
Default foreground color. -
UNMANAGED_COLOR
Foreground color for non-managed nodes. -
defaultNonSelectionBackground
Default non-selection background. -
defaultSelectionBackground
Default selection background. -
defaultSelectionForeground
Default selection background. -
plainFont
The default plain font. -
italicFont
The default italic font. -
boldFont
The default bold font. -
boldItalicFont
The default bold and italic font.
-
-
Constructor Details
-
AbstractTreeCellRenderer
public AbstractTreeCellRenderer()Default constructor.
-
-
Method Details
-
getPlainFont
Get the default plain font.- Parameters:
font- the font to base the result on.- Returns:
- a
Fontinstance.
-
getItalicFont
Get the default italic font.- Parameters:
font- the font to base the result on.- Returns:
- a
Fontinstance.
-
getBoldFont
Get the default bold font.- Parameters:
font- the font to base the result on.- Returns:
- a
Fontinstance.
-
getBoldItalicFont
Get the default bold and italic font.- Parameters:
font- the font to base the result on.- Returns:
- a
Fontinstance.
-
isShowIP
protected static boolean isShowIP()Determine whether IP addresses or host names are displayed.- Returns:
trueif IP addresses are displayed,falseotherwise.
-