|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.olaptableview.OLAPRowHeader
public class OLAPRowHeader
Field Summary | |
---|---|
protected AxisInterface |
axis
|
protected javax.swing.SizeSequence |
levelWidths
|
protected java.util.List |
rowLevelWidths
|
Fields inherited from class com.sas.swing.visuals.tableview.RowHeader |
---|
cellsToSizeCount, draggedDistance, draggedRow, heldRows, heldRowsBottom, heldRowsTop, holdingEnabled, numRowsSized, printing, RB_KEY, reorderingAllowed, resizingAllowed, resizingRow, rowModel, rowsSized, table, width, widthSet |
Constructor Summary | |
---|---|
OLAPRowHeader()
Constructs a default OLAPRowHeader |
|
OLAPRowHeader(TableRowModel model)
Constructs a OLAPRowHeader which is initialized with
model as the row model. |
Method Summary | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
int |
calculatePreferredHeightForRow(int row)
Calculates the preferred height for the given row based on it's label and data. |
||||||||||||||||||||||
protected javax.swing.table.TableCellRenderer |
createDefaultRenderer()
Returns a default renderer to be used. |
||||||||||||||||||||||
AxisInterface |
getAxis()
Returns the instance of the AxisInterface
that is being used by the header. |
||||||||||||||||||||||
java.awt.Rectangle |
getHeaderRect(int row,
int level)
Returns the rectangle containing the header tile at row , level . |
||||||||||||||||||||||
java.awt.Component |
getHeaderRendererComponent(TupleElementInterface element,
int level,
int row)
Returns the component that is used to renderer the given TupleElementInterface . |
||||||||||||||||||||||
int |
getLevelCount(int rowNumber)
Returns the numbers of levels associated with the given rowNumber . |
||||||||||||||||||||||
int |
getLevelWidth(int level)
Returns the actual width in pixels of the given level . |
||||||||||||||||||||||
protected javax.swing.SizeSequence |
getLevelWidths()
|
||||||||||||||||||||||
int |
getMaxLevelCount()
Returns the maximum number of levels currently being shown on the header. |
||||||||||||||||||||||
int |
getPreferredLevelWidth(int level)
Returns the preferred width 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 rowIndex,
int levelIndex)
Returns the instance of the TupleElementInterface
at row , 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. |
||||||||||||||||||||||
java.lang.Object |
getValueAt(int rowIndex)
Returns the row label for the TupleElementInterface
associated with the given row's cells. |
||||||||||||||||||||||
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 |
setLevelWidth(int level,
int levelWidth)
Sets the width for the level to levelWidth ,
revalidates, and repaints. |
||||||||||||||||||||||
void |
setReorderingAllowed(boolean b)
Reordering is always not allowed. |
||||||||||||||||||||||
void |
updateUI()
Notification from the
axisprotected AxisInterface axis levelWidthsprotected javax.swing.SizeSequence levelWidths rowLevelWidthsprotected java.util.List rowLevelWidths
OLAPRowHeaderpublic OLAPRowHeader()
OLAPRowHeaderpublic OLAPRowHeader(TableRowModel model)
levelAtPointpublic int levelAtPoint(java.awt.Point point)
getHeaderRectpublic java.awt.Rectangle getHeaderRect(int row, 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()
getValueAtpublic java.lang.Object getValueAt(int rowIndex)
getTupleElementAtpublic TupleElementInterface getTupleElementAt(int rowIndex, int levelIndex)
getToolTipTextpublic java.lang.String getToolTipText(java.awt.event.MouseEvent event)
getTupleElementsForCoordinatepublic TupleElementInterface[] getTupleElementsForCoordinate(int axisCoordinate)
getMaxLevelCountpublic int getMaxLevelCount()
getLevelCountpublic int getLevelCount(int rowNumber)
getLevelWidthsprotected javax.swing.SizeSequence getLevelWidths() getLevelWidthpublic int getLevelWidth(int level)
getPreferredLevelWidthpublic int getPreferredLevelWidth(int level)
getHeaderRendererComponentpublic java.awt.Component getHeaderRendererComponent(TupleElementInterface element, int level, int row)
createDefaultRendererprotected javax.swing.table.TableCellRenderer createDefaultRenderer()
setLevelWidthpublic void setLevelWidth(int level, int levelWidth)
calculatePreferredHeightForRowpublic int calculatePreferredHeightForRow(int row)
Copyright © 2009 SAS Institute Inc. All Rights Reserved. |