|
JClass 4.5.0 API Documentation |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--com.klg.jclass.util.legend.JCLegend | +--com.klg.jclass.util.legend.JCGridLegend | +--com.klg.jclass.util.legend.JCMultiColLegend
JCMultiColLegend manages and renders a grid-based legend that can have multiple columns. It extends JCGridLegend, rearranging the position of legend items within the legend vector and relying on JCGridLegend's functionality to position and draw legend items. JCMultiColLegend assumes that the legend vector contains a number of group vectors, with the title of each group being the first item in each group vector.
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Field Summary | |
protected int |
numColumns
|
protected int |
numRows
|
Fields inherited from class com.klg.jclass.util.legend.JCGridLegend |
colWidths,
groupGap,
insideItemGap,
itemGap,
marginGap,
rowFirstLineHeights,
rowHeights,
strWidths,
symWidths |
Fields inherited from class com.klg.jclass.util.legend.JCLegend |
anchor,
ascent,
BOX,
cachedFont,
cachedVertical,
cellRendererPane,
changed,
changedFlag,
CUSTOM_ALL,
CUSTOM_SYMBOL,
descent,
EAST,
EASTWEST_MASK,
HORIZONTAL,
IMAGE,
IMAGE_OUTLINED,
legendItems,
legendPopulator,
legendRenderer,
NONE,
NORTH,
NORTHEAST,
NORTHSOUTH_MASK,
NORTHWEST,
orientation,
preferredSize,
ps,
SOUTH,
SOUTHEAST,
SOUTHWEST,
symbolSize,
textRend,
updateParent,
VERTICAL,
WEST |
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 |
Constructor Summary | |
JCMultiColLegend()
|
Method Summary | |
void |
contractItemList(List destList,
List sourceList,
List itemList,
int sourceIndex)
Remove a group from the legend vector, moving its contents to another group. |
int |
getNumColumns()
Gets the the number of columns set for this legend. |
int |
getNumRows()
Gets the number of rows set for this legend. |
Dimension |
layoutLegend(List itemList,
boolean vertical,
Font useFont)
layoutLegend overrides JCGridLegend's layoutLegend(). |
void |
setNumColumns(int columns)
Sets the number of columns in this legend. |
void |
setNumRows(int rows)
Sets the number of rows in this legend. |
Methods inherited from class com.klg.jclass.util.legend.JCGridLegend |
calcLegendSize,
fillSizeArrays,
getGroupGap,
getInsideItemGap,
getItemGap,
getMarginGap,
layoutLegendItems,
positionItemSymbol,
positionItemText,
setGroupGap,
setInsideItemGap,
setItemGap,
setMarginGap |
Methods inherited from class com.klg.jclass.util.legend.JCLegend |
drawLegendItem,
getAnchor,
getCellRendererPane,
getChanged,
getChanged,
getDrawingArea,
getDrawingArea,
getGraphics,
getLegendPopulator,
getLegendRenderer,
getOrientation,
getPreferredSize,
getSymbolSize,
getTextRenderer,
isBatched,
isChanged,
isChanged,
isTitleItem,
paintComponent,
pick,
recalc,
setAnchor,
setChanged,
setChanged,
setGraphics,
setLegendPopulator,
setLegendRenderer,
setOrientation,
setPreferredSize,
updateParent |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setCursor,
setLayout,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected int numRows
protected int numColumns
Constructor Detail |
public JCMultiColLegend()
Method Detail |
public void setNumRows(int rows)
rows
- the number of rows to use.public int getNumRows()
public void setNumColumns(int columns)
columns
- the number of columns to use.public int getNumColumns()
public Dimension layoutLegend(List itemList, boolean vertical, Font useFont)
itemList
- the legend vector of groups and legend itemsvertical
- true for a vertical legend, false for a horizontal legend.useFont
- the font for the legend.com.sun.java.util.collections.List
.public void contractItemList(List destList, List sourceList, List itemList, int sourceIndex)
destList
- the destination group vector.sourceList
- the source group vector.itemList
- the legend vectorsourceIndex
- the index of the sourceList group within the legend
vector.com.sun.java.util.collections.List
.
|
Copyright© 1999-2000 KL Group Inc. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |