|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.olaptableview.OLAPColumnHeader
public class OLAPColumnHeader
Field Summary | |
---|---|
protected AxisInterface |
axis
|
protected java.util.List |
columnLevelHeights
|
protected javax.swing.SizeSequence |
levelHeights
|
static java.lang.String |
RB_KEY
|
Fields inherited from class com.sas.swing.visuals.tableview.ColumnHeader |
---|
cellsToSizeCount, height, heightSet, holdingEnabled, lastColumnSized, printing |
Constructor Summary | |
---|---|
OLAPColumnHeader()
Constructs a OLAPColumnHeader with a default
TableColumnModel . |
|
OLAPColumnHeader(javax.swing.table.TableColumnModel model)
Constructs a OLAPColumnHeader which is initialized with
model as the Column model. |
Method Summary | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
int[] |
calculatePreferredWidthForColumns(int[] columns)
Calculates the preferred widths for the given columns based on it's label and data. |
||||||||||||||||||||||||
void |
columnAdded(javax.swing.event.TableColumnModelEvent e)
Invoked when a column is added to the table column model. |
||||||||||||||||||||||||
protected javax.swing.table.TableColumnModel |
createDefaultColumnModel()
Returns the default column model object which is a javax.swing.table.DefaultTableColumnModel . |
||||||||||||||||||||||||
protected javax.swing.table.TableCellRenderer |
createDefaultRenderer()
Returns a default renderer to be used when no header renderer is defined by a TableColumn . |
||||||||||||||||||||||||
AxisInterface |
getAxis()
Returns the instance of the AxisInterface
that is being used by the header. |
||||||||||||||||||||||||
java.awt.Rectangle |
getHeaderRect(int column,
int level)
Returns the rectangle containing the header tile at column , level . |
||||||||||||||||||||||||
java.awt.Component |
getHeaderRendererComponent(TupleElementInterface element,
int level,
int column)
Returns the component that is used to renderer the given TupleElementInterface . |
||||||||||||||||||||||||
int |
getLevelCount(int column)
Returns the numbers of levels associated with the given column . |
||||||||||||||||||||||||
int |
getLevelHeight(int level)
Returns the actual height in pixels of the given level . |
||||||||||||||||||||||||
protected javax.swing.SizeSequence |
getLevelHeights()
|
||||||||||||||||||||||||
int |
getMaxLevelCount()
Returns the maximum number of levels currently being shown on the header. |
||||||||||||||||||||||||
int |
getPreferredLevelHeight(int level)
Returns the preferred height in pixels of the given level . |
||||||||||||||||||||||||
java.lang.String |
getToolTipText(java.awt.event.MouseEvent event)
Allows the renderer's tips to be used if there is text set. |
||||||||||||||||||||||||
TupleElementInterface |
getTupleElementAt(int columnIndex,
int levelIndex)
Returns the instance of the TupleElementInterface
at columnIndex , level . |
||||||||||||||||||||||||
TupleElementInterface[] |
getTupleElementsForCoordinate(int axisCoordinate)
Returns the set of TupleElementInterface
associated with the given axis coordinate. |
||||||||||||||||||||||||
java.lang.String |
getUIClassID()
Returns the suffix used to construct the name of the look and feel (L&F) class used to render this component. |
||||||||||||||||||||||||
protected void |
initializeLocalVars()
Initializes the local variables and properties with default values. |
||||||||||||||||||||||||
int |
levelAtPoint(java.awt.Point point)
Returns the level at the given point. |
||||||||||||||||||||||||
void |
setAxis(AxisInterface newAxis)
Sets the new AxisInterface instance
for the OLAPRowHeader. |
||||||||||||||||||||||||
void |
setHoldingEnabled(boolean b)
Holding is always not allowed. |
||||||||||||||||||||||||
void |
setLevelHeight(int level,
int levelHeight)
Sets the height for the level to levelHeight ,
revalidates, and repaints. |
||||||||||||||||||||||||
void |
setReorderingAllowed(boolean b)
Reordering is always not allowed. |
||||||||||||||||||||||||
void |
updateUI()
Notification from the
RB_KEYpublic static final java.lang.String RB_KEY
axisprotected AxisInterface axis levelHeightsprotected javax.swing.SizeSequence levelHeights columnLevelHeightsprotected java.util.List columnLevelHeights
OLAPColumnHeaderpublic OLAPColumnHeader()
OLAPColumnHeaderpublic OLAPColumnHeader(javax.swing.table.TableColumnModel model)
createDefaultColumnModelprotected javax.swing.table.TableColumnModel createDefaultColumnModel()
createDefaultRendererprotected javax.swing.table.TableCellRenderer createDefaultRenderer()
levelAtPointpublic int levelAtPoint(java.awt.Point point)
getHeaderRectpublic java.awt.Rectangle getHeaderRect(int column, int level)
initializeLocalVarsprotected void initializeLocalVars()
setReorderingAllowedpublic void setReorderingAllowed(boolean b)
setHoldingEnabledpublic void setHoldingEnabled(boolean b)
updateUIpublic void updateUI()
getUIClassIDpublic java.lang.String getUIClassID()
setAxispublic void setAxis(AxisInterface newAxis)
getAxispublic AxisInterface getAxis()
getTupleElementsForCoordinatepublic TupleElementInterface[] getTupleElementsForCoordinate(int axisCoordinate)
getMaxLevelCountpublic int getMaxLevelCount()
getLevelCountpublic int getLevelCount(int column)
getLevelHeightsprotected javax.swing.SizeSequence getLevelHeights() getLevelHeightpublic int getLevelHeight(int level)
getPreferredLevelHeightpublic int getPreferredLevelHeight(int level)
getHeaderRendererComponentpublic java.awt.Component getHeaderRendererComponent(TupleElementInterface element, int level, int column)
setLevelHeightpublic void setLevelHeight(int level, int levelHeight)
getTupleElementAtpublic TupleElementInterface getTupleElementAt(int columnIndex, int levelIndex)
getToolTipTextpublic java.lang.String getToolTipText(java.awt.event.MouseEvent event)
calculatePreferredWidthForColumnspublic int[] calculatePreferredWidthForColumns(int[] columns)
columnAddedpublic void columnAdded(javax.swing.event.TableColumnModelEvent e)
Copyright © 2009 SAS Institute Inc. All Rights Reserved. |