|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.tableview.BasicRowHeaderUI
public class BasicRowHeaderUI
Nested Class Summary | |
---|---|
class |
BasicRowHeaderUI.MouseInputHandler
|
Field Summary | |
---|---|
protected RowHeader |
header
The JTableHeader that is delegating the painting to this UI. |
protected javax.swing.event.MouseInputListener |
mouseInputListener
|
protected javax.swing.CellRendererPane |
rendererPane
|
protected boolean |
resizingHeader
|
protected boolean |
resizingRow
|
Constructor Summary | |
---|---|
BasicRowHeaderUI()
|
Method Summary | |
---|---|
protected java.awt.Dimension |
createHeaderSize()
|
protected javax.swing.event.MouseInputListener |
createMouseInputListener()
Creates the mouse listener for the JTable. |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent h)
|
protected RowHeader |
getHeader()
|
protected java.awt.Component |
getHeaderRenderer(int rowIndex)
|
protected int |
getHeaderWidth()
|
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c)
Return the maximum size of the header. |
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
Return the minimum size of the header. |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
Return the preferred size of the header. |
protected void |
installDefaults()
Initialize JTableHeader properties, e.g. font, foreground, and background. |
protected void |
installKeyboardActions()
Register all keyboard actions on the JTableHeader. |
protected void |
installListeners()
Attaches listeners to the JTableHeader. |
void |
installUI(javax.swing.JComponent c)
|
boolean |
isResizingHeader()
|
boolean |
isResizingRow()
|
protected int |
modelIndexForRow(int row)
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
protected void |
paintCell(java.awt.Graphics g,
java.awt.Rectangle cellRect,
int rowIndex)
|
protected void |
paintCells(java.awt.Graphics g,
int rMin,
int rMax)
|
void |
setResizingHeader(boolean newValue)
|
void |
setResizingRow(boolean newValue)
|
protected void |
uninstallDefaults()
|
protected void |
uninstallKeyboardActions()
|
protected void |
uninstallListeners()
|
void |
uninstallUI(javax.swing.JComponent c)
|
protected int |
viewIndexForRow(int row)
|
Field Detail |
---|
protected RowHeader header
protected javax.swing.CellRendererPane rendererPane
protected boolean resizingHeader
protected boolean resizingRow
protected javax.swing.event.MouseInputListener mouseInputListener
Constructor Detail |
---|
public BasicRowHeaderUI()
Method Detail |
---|
protected int viewIndexForRow(int row)
protected int modelIndexForRow(int row)
protected RowHeader getHeader()
public void setResizingHeader(boolean newValue)
public boolean isResizingHeader()
public void setResizingRow(boolean newValue)
public boolean isResizingRow()
protected javax.swing.event.MouseInputListener createMouseInputListener()
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent h)
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.ComponentUI
protected void installDefaults()
installUI(javax.swing.JComponent)
protected void installListeners()
protected void installKeyboardActions()
public void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.ComponentUI
protected void uninstallDefaults()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
protected int getHeaderWidth()
protected java.awt.Dimension createHeaderSize()
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize
in class javax.swing.plaf.ComponentUI
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class javax.swing.plaf.ComponentUI
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize
in class javax.swing.plaf.ComponentUI
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.ComponentUI
protected void paintCell(java.awt.Graphics g, java.awt.Rectangle cellRect, int rowIndex)
protected java.awt.Component getHeaderRenderer(int rowIndex)
protected void paintCells(java.awt.Graphics g, int rMin, int rMax)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |