|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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.
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected int |
actualNumColumns
|
protected int |
actualNumRows
|
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, BOX_PLAIN, cachedFont, cachedVertical, cellRendererPane, changed, changedFlag, CUSTOM_ALL, CUSTOM_SYMBOL, descent, EAST, EASTWEST_MASK, HORIZONTAL, IMAGE, IMAGE_OUTLINED, imageMapInfo, legendItems, legendPopulator, legendRenderer, LINE, locale, 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 |
Fields inherited from interface com.klg.jclass.util.Changeable |
BASIC_CHANGE_MASK, LAYOUT, NO_CHANGE, NOTIFY_PARENT_LAYOUT, RECALC, REDRAW |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JCMultiColLegend()
|
Method Summary | |
protected void |
calcActualNumRowsAndColumns()
Calculate the actual number of rows and columns from either the set row and column variables or, if they've been set to default, from the number of legend items associated with this legend. |
protected void |
calcActualNumRowsAndColumns(boolean vertical,
int numGroups,
int numLinesPerGroup)
Calculate the actual number of rows and columns from either the passed number of groups and lines per group or, if they're default values, from the number of legend items associated with this legend. |
void |
contractItemList(List destList,
List sourceList,
List itemList,
int sourceIndex)
Removes a group from the legend vector, moving its contents to another group. |
int |
getActualNumColumns()
Gets the actual number of columns used in this legend. |
int |
getActualNumRows()
Gets the actual number of rows used in this legend. |
int |
getNumColumns()
Gets 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 |
checkAnchor, drawLegendItem, getAnchor, getCellRendererPane, getChanged, getChanged, getDrawingArea, getDrawingArea, getGraphics, getImageMapInfo, getLegendItems, getLegendPopulator, getLegendRenderer, getOrientation, getPreferredSize, getSymbolSize, getTextRenderer, isBatched, isChanged, isChanged, isTitleItem, paintComponent, pick, recalc, setAnchor, setChanged, setChanged, setGraphics, setImageMapInfo, setLegendPopulator, setLegendRenderer, setLocale, setOrientation, setPreferredSize, setUpLegendVariables, updateParent |
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
protected int actualNumRows
protected int actualNumColumns
Constructor Detail |
public JCMultiColLegend()
Method Detail |
public void setNumRows(int rows)
rows
- the number of rows to usepublic int getNumRows()
public void setNumColumns(int columns)
columns
- the number of columns to usepublic int getNumColumns()
public int getActualNumRows()
public int getActualNumColumns()
public Dimension layoutLegend(List itemList, boolean vertical, Font useFont)
layoutLegend
overrides JCGridLegend
's
layoutLegend()
. layoutLegend
manipulates the legend
vector so that the items are in the order you specify. It calls
JCGridLegend
's layoutLegend()
to do the layout.
layoutLegend
in class JCGridLegend
itemList
- the legend vector of groups and legend itemsvertical
- true
for a vertical legend; false
for a horizontal legenduseFont
- the font for the legend
JCGridLegend
's
layoutLegend()
protected void calcActualNumRowsAndColumns()
protected void calcActualNumRowsAndColumns(boolean vertical, int numGroups, int numLinesPerGroup)
public void contractItemList(List destList, List sourceList, List itemList, int sourceIndex)
destList
- the destination group vectorsourceList
- the source group vectoritemList
- the legend vectorsourceIndex
- the index of the sourceList
group within
the legend vector
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |