| 
JAPI 0.9.0 Yet another Java API API Documentation  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTree
net.sf.japi.swing.treetable.JTreeTable.TreeTableCellRenderer
public class JTreeTable.TreeTableCellRenderer
Renderer for TreeTableCells.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class javax.swing.JTree | 
|---|
JTree.AccessibleJTree, JTree.DynamicUtilTreeNode, JTree.EmptySelectionModel, JTree.TreeModelHandler, JTree.TreeSelectionRedirector | 
| Nested classes/interfaces inherited from class javax.swing.JComponent | 
|---|
JComponent.AccessibleJComponent | 
| Nested classes/interfaces inherited from class java.awt.Container | 
|---|
Container.AccessibleAWTContainer | 
| Nested classes/interfaces inherited from class java.awt.Component | 
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy | 
| Field Summary | 
|---|
| Fields inherited from class javax.swing.JComponent | 
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW | 
| 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 | |
|---|---|
JTreeTable.TreeTableCellRenderer(TreeModel model)
 | 
|
| Method Summary | |
|---|---|
 Component | 
getTableCellRendererComponent(JTable table,
                                                           Object value,
                                                           boolean isSelected,
                                                           boolean hasFocus,
                                                           int row,
                                                           int column)
Returns the component used for drawing the cell.  | 
 void | 
paint(Graphics g)
Invoked by Swing to draw components.  | 
 void | 
setBounds(int x,
                   int y,
                   int width,
                   int height)
Moves and resizes this component.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public JTreeTable.TreeTableCellRenderer(TreeModel model)
| Method Detail | 
|---|
public void setBounds(int x,
                      int y,
                      int width,
                      int height)
java.awt.Componentx and y, and the
 new size is specified by width and height.
setBounds in class Componentx - the new x-coordinate of this componenty - the new y-coordinate of this componentwidth - the new width of this componentheight - the new height of this 
          componentComponent.getBounds(), 
Component.setLocation(int, int), 
Component.setLocation(Point), 
Component.setSize(int, int), 
Component.setSize(Dimension)public void paint(Graphics g)
javax.swing.JComponentpaint directly,
 but should instead use the repaint method to
 schedule the component for redrawing.
 
 This method actually delegates the work of painting to three
 protected methods: paintComponent,
 paintBorder,
 and paintChildren.  They're called in the order
 listed to ensure that children appear on top of component itself.
 Generally speaking, the component and its children should not
 paint in the insets area allocated to the border. Subclasses can
 just override this method, as always.  A subclass that just
 wants to specialize the UI (look and feel) delegate's
 paint method should just override
 paintComponent.
paint in class JComponentg - the Graphics context in which to paintJComponent.paintComponent(java.awt.Graphics), 
JComponent.paintBorder(java.awt.Graphics), 
JComponent.paintChildren(java.awt.Graphics), 
JComponent.getComponentGraphics(java.awt.Graphics), 
JComponent.repaint(long, int, int, int, int)
public Component getTableCellRendererComponent(JTable table,
                                               Object value,
                                               boolean isSelected,
                                               boolean hasFocus,
                                               int row,
                                               int column)
javax.swing.table.TableCellRenderer
getTableCellRendererComponent in interface TableCellRenderertable - the JTable that is asking the 
                                renderer to draw; can be nullvalue - the value of the cell to be rendered.  It is
                                up to the specific renderer to interpret
                                and draw the value.  For example, if
                                value
                                is the string "true", it could be rendered as a
                                string or it could be rendered as a check
                                box that is checked.  null is a
                                valid valueisSelected - true if the cell is to be rendered with the
                                selection highlighted; otherwise falsehasFocus - if true, render cell appropriately.  For
                                example, put a special border on the cell, if
                                the cell can be edited, render in the color used
                                to indicate editingrow - the row index of the cell being drawn.  When
                                drawing the header, the value of
                                row is -1column - the column index of the cell being drawn
  | 
JAPI Yet another Java API API Documentation  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||