|
ElegantJ Trees Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.TextComponent
java.awt.TextArea
com.elegantj.awt.tree.TextAreaAWTTreeCellRenderer
TextAreaAWTTreeCellRenderer is the awt button which provides the cell renderer for the AWTTree which Implements AWTTreeCellRenderer
| Nested Class Summary |
| Nested classes inherited from class java.awt.TextArea |
java.awt.TextArea.AccessibleAWTTextArea |
| Nested classes inherited from class java.awt.TextComponent |
java.awt.TextComponent.AccessibleAWTTextComponent |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
protected java.awt.Color |
backgroundNonSelectionColor
|
protected java.awt.Color |
backgroundSelectionColor
|
protected java.awt.Color |
borderSelectionColor
|
protected boolean |
hasFocus
|
protected boolean |
selected
|
protected java.awt.Color |
textNonSelectionColor
|
protected java.awt.Color |
textSelectionColor
|
| Fields inherited from class java.awt.TextArea |
SCROLLBARS_BOTH, SCROLLBARS_HORIZONTAL_ONLY, SCROLLBARS_NONE, SCROLLBARS_VERTICAL_ONLY |
| Fields inherited from class java.awt.TextComponent |
textListener |
| Fields inherited from class java.awt.Component |
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 | |
TextAreaAWTTreeCellRenderer()
Constructs the TextAreaAWTTreeCellRenderer |
|
| Method Summary | |
java.awt.Component |
getAWTTreeCellRendererComponent(AWTTree tree,
java.lang.Object value,
boolean sel,
boolean expanded,
boolean leaf,
AWTTreeNode node,
boolean hasFocus)
Returns the component -- cell renderer for the AWTTree |
java.awt.Color |
getBackgroundNonSelectionColor()
Returns the non selection background |
java.awt.Color |
getBackgroundSelectionColor()
Returns the selection background |
java.awt.Color |
getBorderSelectionColor()
Returns the border selection color |
java.awt.Image |
getImageIcon(AWTTree tree,
java.lang.Object value,
boolean selected,
boolean expanded,
boolean leaf,
AWTTreeNode node,
boolean hasFocus)
Returns the image icon for the specified node |
java.awt.Dimension |
getPreferredSize()
Overriden getPreferredSize |
java.awt.Color |
getTextNonSelectionColor()
Returns the text non selection color |
java.awt.Color |
getTextSelectionColor()
Returns the text selection color |
java.lang.Object |
getValue()
Returns the value of the cell renderer |
void |
paint(java.awt.Graphics g)
Overriden the paint method |
void |
paintText(java.awt.Graphics g)
|
void |
repaint(long tm,
int x,
int y,
int width,
int height)
|
void |
repaint(java.awt.Rectangle r)
|
void |
revalidate()
|
void |
setBackground(java.awt.Color color)
Sets the background for the cell renderer |
void |
setBackgroundNonSelectionColor(java.awt.Color newColor)
Sets the non selection background |
void |
setBackgroundSelectionColor(java.awt.Color newColor)
Sets the selection background |
void |
setBorderSelectionColor(java.awt.Color color)
Sets the border selection color |
void |
setFont(java.awt.Font font)
Sets the font for the cell renderer |
void |
setTextNonSelectionColor(java.awt.Color newColor)
Sets the text non selection color |
void |
setTextSelectionColor(java.awt.Color newColor)
Sets the text selection color |
void |
setValue(java.lang.Object value)
Sets the value for the cell renderer |
void |
validate()
|
| Methods inherited from class java.awt.TextArea |
addNotify, append, appendText, getAccessibleContext, getColumns, getMinimumSize, getMinimumSize, getPreferredSize, getRows, getScrollbarVisibility, insert, insertText, minimumSize, minimumSize, paramString, preferredSize, preferredSize, replaceRange, replaceText, setColumns, setRows |
| Methods inherited from class java.awt.TextComponent |
addTextListener, enableInputMethods, getBackground, getCaretPosition, getListeners, getSelectedText, getSelectionEnd, getSelectionStart, getText, getTextListeners, isEditable, processEvent, processTextEvent, removeNotify, removeTextListener, select, selectAll, setCaretPosition, setEditable, setSelectionEnd, setSelectionStart, setText |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, 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, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, 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, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, print, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected boolean selected
protected boolean hasFocus
protected java.awt.Color textSelectionColor
protected java.awt.Color textNonSelectionColor
protected java.awt.Color backgroundSelectionColor
protected java.awt.Color backgroundNonSelectionColor
protected java.awt.Color borderSelectionColor
| Constructor Detail |
public TextAreaAWTTreeCellRenderer()
| Method Detail |
public void setTextSelectionColor(java.awt.Color newColor)
newColor - The text selection colorpublic java.awt.Color getTextSelectionColor()
public void setTextNonSelectionColor(java.awt.Color newColor)
newColor - The text non selection colorpublic java.awt.Color getTextNonSelectionColor()
public void setBackgroundSelectionColor(java.awt.Color newColor)
newColor - The selection backgroundpublic java.awt.Color getBackgroundSelectionColor()
public void setBackgroundNonSelectionColor(java.awt.Color newColor)
newColor - The non selection backgroundpublic java.awt.Color getBackgroundNonSelectionColor()
public void setBorderSelectionColor(java.awt.Color color)
public java.awt.Color getBorderSelectionColor()
public void setFont(java.awt.Font font)
font - The font for the cell rendererpublic void setBackground(java.awt.Color color)
color - The background for the cell renderer
public java.awt.Component getAWTTreeCellRendererComponent(AWTTree tree,
java.lang.Object value,
boolean sel,
boolean expanded,
boolean leaf,
AWTTreeNode node,
boolean hasFocus)
getAWTTreeCellRendererComponent in interface AWTTreeCellRenderertree - The AWTTreevalue - The valuesel - wheather node is selected or notexpanded - wheather node is expanded or notleaf - wheather node is leaf or notnode - The AWTTreeNodehasFocus - wheather node has focus or not
public java.awt.Image getImageIcon(AWTTree tree,
java.lang.Object value,
boolean selected,
boolean expanded,
boolean leaf,
AWTTreeNode node,
boolean hasFocus)
getImageIcon in interface AWTTreeCellRenderertree - The AWTTreevalue - The user obejct of the nodeselected - wheather node is selected or notexpanded - wheather node is expanded or notleaf - wheather node is leaf or notnode - The AWTTreeNodehasFocus - wheather node has focus or not
public void setValue(java.lang.Object value)
setValue in interface AWTTreeCellRenderervalue - The value for the cell rendererpublic java.lang.Object getValue()
getValue in interface AWTTreeCellRendererpublic void paint(java.awt.Graphics g)
public void paintText(java.awt.Graphics g)
public java.awt.Dimension getPreferredSize()
public void validate()
public void revalidate()
public void repaint(long tm,
int x,
int y,
int width,
int height)
public void repaint(java.awt.Rectangle r)
|
ElegantJ Trees Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||