Package pal.gui
Class TreeComponent
java.lang.Object
java.awt.Component
pal.gui.TreeComponent
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Serializable
An AWT Component for displaying a tree.
- Version:
- $Id: TreeComponent.java,v 1.17 2002/03/25 02:38:45 alexi Exp $
- Author:
- Alexei Drummond
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final String[]
static final int
static final int
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Constructor Summary
ConstructorsConstructorDescriptionTreeComponent
(Tree tree) TreeComponent
(Tree tree, boolean usingSymbols) TreeComponent
(Tree tree, String title) TreeComponent
(Tree tree, String title, boolean showTitle) TreeComponent
(Tree tree, TimeOrderCharacterData tocd, boolean usingSymbols) -
Method Summary
Modifier and TypeMethodDescriptiongetTitle()
void
void
setAttributeName
(String name) void
void
setInvertCircular
(boolean invert) final void
void
setMaxHeight
(double maxHeight) void
setMode
(int mode) Sets the mode of display for this component.void
void
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
-
Field Details
-
NORMAL_BW
public static final int NORMAL_BW- See Also:
-
CIRCULAR_BW
public static final int CIRCULAR_BW- See Also:
-
NORMAL_COLOR
public static final int NORMAL_COLOR- See Also:
-
CIRCULAR_COLOR
public static final int CIRCULAR_COLOR- See Also:
-
MODE_NAMES
-
-
Constructor Details
-
TreeComponent
-
TreeComponent
-
TreeComponent
-
TreeComponent
-
TreeComponent
-
-
Method Details
-
setLabelMapping
-
setColouriser
-
setAttributeName
-
setMaxHeight
public void setMaxHeight(double maxHeight) -
setTree
-
setTitle
-
getPreferredSize
- Overrides:
getPreferredSize
in classComponent
-
setInvertCircular
public void setInvertCircular(boolean invert) -
getMinimumSize
- Overrides:
getMinimumSize
in classComponent
-
getTitle
-
setMode
public void setMode(int mode) Sets the mode of display for this component.- Parameters:
the
- mode to switch to. Valid arguments are NORMAL (for normal tree display), and CIRCULAR (for a circular view of the trees)
-
paint
-