com.tensegrity.composite
Interface CompositeTable

All Superinterfaces:
Attributable, AttributableOnSet, BaseComposite, BaseInteractable, Composite, CompositeControl, Interactable, InteractionProvider

public interface CompositeTable
extends CompositeControl

This interface represents the definition of a CompositeGroup that behaves like a 2-dimensional table, complete with rows and columns. This table allows a Composite object to be placed inside any cell which may span multiple columns and rows. The indices of the columns and rows are 1-based, such that the upper-left cell has the position [1,1]. Columns and rows can be resized, moved, added, removed and uniquely identified by their headers.

A CompositeTable is made up of a View and a Model. Embedded Composite objects and properties, such as row and column count, are part of the model. The view holds visual data, such as widths and selections. The following lists show to which group the different classes belong:

View

Model

The following figure shows a CompositeTable containing 4 labels positioned in cells [2,2] (with horizontal spanning), [2,6], [4,2] and cell [4,4] (with a horizontal spanning).

Screenshot CompositeTable

To get started using a CompositeTable, start by creating a new CoordinateSystem and then create a new DefaultCompositeTable.

These modes are used when a column or row is resized by the user dragging the border lines or when a column or row has to be resized due to a in-place editing of an inlying label.

The events fired by a CompositeTable can be divided into two parts: events concerning the model (changes to column or row count, composites added, etc.) and events concerning the view (cells selected, etc.) part of the table.

Notice: If you do not find the method you are looking, you should have a look at the JavaDoc for CompositeTableModel.

The CompositeTable is still under construction, so that the documentation ends here but will be extended within the next releases of the composite framework.

Version:
$Id: CompositeTable.java,v 1.108 2006/02/22 12:54:59 BurkhardWick Exp $
Author:
Michael Raue, Andreas Ebbert

Field Summary
static int CELL
          constants for the composites the table is made of
static int CELL_SELECTION
          select a single cell
static int CELL_SELECTION_ALL
          constant for the cell selection mode
static int CELL_SELECTION_NON_EMPTY
          constant for the cell selection mode
static int COLUMN
          constants for the composites the table is made of
static int COLUMN_SELECTION
          selection of a whole column
static int DEFAULT_COLUMN_COUNT
          Default values for column and row count
static int DEFAULT_ROW_COUNT
          Default values for column and row count
static int EVENT_MASK_ADD_COMPOSITE
          Constants that tell about the different events or groups of events and can be used with BaseComposite.enableEvents(int) to turn them on and BaseComposite.disableEvents(int) to turn them off.
static int EVENT_MASK_ADD_COMPOSITES
          Constants that tell about the different events or groups of events and can be used with BaseComposite.enableEvents(int) to turn them on and BaseComposite.disableEvents(int) to turn them off.
static int EVENT_MASK_FOLDSTATE_CHANGE
          Constants that tell about the different events or groups of events and can be used with BaseComposite.enableEvents(int) to turn them on and BaseComposite.disableEvents(int) to turn them off.
static int EVENT_MASK_MODEL
          Event masks, to en- or disable the appropriate events
static int EVENT_MASK_MODEL_COMPOSITE
          Event masks, to en- or disable the appropriate events
static int EVENT_MASK_REMOVE_COMPOSITE
          Constants that tell about the different events or groups of events and can be used with BaseComposite.enableEvents(int) to turn them on and BaseComposite.disableEvents(int) to turn them off.
static int EVENT_MASK_REMOVE_COMPOSITES
          Constants that tell about the different events or groups of events and can be used with BaseComposite.enableEvents(int) to turn them on and BaseComposite.disableEvents(int) to turn them off.
static int EVENT_MASK_RESTRICTED_BY_BUILDER
          Event masks, to en- or disable the appropriate events
static int EVENT_MASK_SELECTION_CHANGED
          Constants that tell about the different events or groups of events and can be used with BaseComposite.enableEvents(int) to turn them on and BaseComposite.disableEvents(int) to turn them off.
static int EVENT_MASK_SIZE_ADJUSTMENT
          Constants that tell about the different events or groups of events and can be used with BaseComposite.enableEvents(int) to turn them on and BaseComposite.disableEvents(int) to turn them off.
static int FOLDPLACEMENT_CENTERED
          Constants used to define the position of the fold-button.
static int FOLDPLACEMENT_UPPERCORNER
          Constants used to define the position of the fold-button.
static int FOLDSTATE_FOLDED
          Constant that tell about a state of folding a CompositeGroup supports
static int FOLDSTATE_UNFOLDED
          Constant that tell about a state of folding a CompositeGroup supports
static int HORIZONTAL
          vertical or horizontal alignment
static int MULTIPLE_SELECTION_MODE
          Multiple selections can be made
static int RESIZE_LAST
          The size of the last column or row is adjusted using the same amount of space, but in the opposite direction.
static int RESIZE_NEXT
          When the size of a column (respectively row) is adjusted, the size of the neighboring column (row) adjusted using the same amount of space, but in the opposite direction.
static int RESIZE_NONE
          Just set the size without affecting anything.
static int RESIZE_SUBSEQUENT
          Columns or rows are adjusted proportionally on a size change.
static int RESIZE_TABLE
          The entire table becomes larger or smaller when a column or row is resize.
static int ROW
          constants for the composites the table is made of
static int ROW_SELECTION
          select a whole row
static int SINGLE_SELECTION_MODE
          Only one selection at a time can be made
static boolean SUPPRESS_CROSSOVER_MULTISELECTION
           
static int VERTICAL
          vertical or horizontal alignment
 
Fields inherited from interface com.tensegrity.composite.Composite
BBOXMASK_INCLUDE_ALL, BBOXMASK_INCLUDE_EXTERNALS_ALL, BBOXMASK_INCLUDE_EXTERNALS_BACK, BBOXMASK_INCLUDE_EXTERNALS_BOTTOM, BBOXMASK_INCLUDE_EXTERNALS_FRONT, BBOXMASK_INCLUDE_EXTERNALS_LEFT, BBOXMASK_INCLUDE_EXTERNALS_RIGHT, BBOXMASK_INCLUDE_EXTERNALS_TOP, BBOXMASK_INCLUDE_MARKER, BBOXMASK_INCLUDE_SHADOW, BBOXMASK_INCLUDE_STROKE, BBOXMASK_INCLUDE_TEXT_OUTSIDE_OF_LABELS, EVENT_MASK_CHANGE, EVENT_MASK_MOVE, EVENT_MASK_RESIZE, TRANSFORMFROM_COMPOSITE, TRANSFORMTO_COMPOSITE
 
Fields inherited from interface com.tensegrity.composite.BaseComposite
DELEGATE_INFOVALUE, EVENT_MASK_MOUSE, EVENT_MASK_SELECT, GENERAL_INFOVALUE, NON_INFOVALUE
 
Fields inherited from interface com.tensegrity.generic.attribute.AttributableOnSet
TREE_SUBSET_POSTFIX
 
Method Summary
 void addTableSelectionListener(CompositeTableSelectionListener listener)
          Registers listener so that it will receive CompositeTableSelectionEvents.
 boolean areRowPortsEnabled()
          Returns true, if row-ports are enabled.
 void clearColumnRanges()
          Reset all column ranges.
 void clearRowRanges()
          Reset all set row ranges.
 void clearSelection()
          Clears all made selections (if any) of any type.
 int getActiveColumn()
          Returns the index of the active column selection, which usually is the last selected column.
 int getActiveRow()
          Returns the index of the active row selection, which usually is the last selected row.
 PaintFormat getBackgroundPaintFormat()
          Returns the PaintFormat of the tables background.
 Boundary getCellBounds(int col, int row)
          Returns the cell bounds of the cell in column col, row row.
 CompositeIterator getCellComposites()
          Returns an iterator over all Composites that are added to the grid of this table.
 PaintFormat getCellPaintFormat(int column, int row)
          Returns the PaintFormat of the given table cell.
 int getCellResizeMode()
          Returns the auto resize mode of the table.
 int getCellSelectionMode()
          Returns the cell selection mode.
 FontFormat getColumnHeaderFontFormat()
          Returns FontFormat used for column headers.
 int getColumnHeaderHeight()
          Returns the height of the column-headers.
 PaintFormat getColumnHeaderPaintFormat()
          Returns the PaintFormat for unselected column headers.
 StrokeFormat getColumnHeaderStrokeFormat()
          Returns the StrokeFormat of the column-headers.
 PaintFormat getColumnPaintFormat(int column)
          Returns the PaintFormat of the given table column.
 int getColumnWidth(int column)
          Returns the width of the specified column.
 java.lang.String getFoldedGeometry()
          Returns the geometry that is used for the folded representation
 java.lang.String getFoldedStyle()
          Returns the style that is used for the folded representation
 int getFoldState()
          Returns the state of folding of the CompositeGroup.
 int getFoldStateButtonCursor()
          Returns the cursor that is displayed over the foldstate button
 Size getFoldStateSize(int foldstate)
          Returns a Size instance that describes the extensions of a CompositeGroup when it is in a folded state defined by the constant given by foldstate.
 StrokeFormat getGridStrokeFormat()
          Returns the StrokeFormat of the tables grid.
 com.tensegrity.composite.defaultimpl.table.CompositeTableModel getModel()
          Return the used CompositeTableModel.
 FontFormat getRowHeaderFontFormat()
          Returns FontFormat used for row headers.
 PaintFormat getRowHeaderPaintFormat()
          Returns the PaintFormat for unselected row headers.
 StrokeFormat getRowHeaderStrokeFormat()
          Returns the StrokeFormat of the row-headers.
 int getRowHeaderWidth()
          Returns the width of the row-headers.
 int getRowHeight(int row)
          Returns the height of the specified row.
 PaintFormat getRowPaintFormat(int row)
          Returns the PaintFormat of the given table row.
 PaintFormat getSelectedCellPaintFormat()
          Returns the PaintFormat for selected cells.
 java.util.List getSelectedCells()
          Returns an List with all currently selected cells.
 PaintFormat getSelectedColumnHeaderPaintFormat()
          Returns the PaintFormat for selected column headers.
 ArrayListInt getSelectedColumns()
          Returns an ArrayListInt with all currently selected columns.
 java.util.List getSelectedComposites()
          Returns a List with all selected composites.
 PaintFormat getSelectedRowHeaderPaintFormat()
          Returns the PaintFormat for selected row headers.
 ArrayListInt getSelectedRows()
          Returns an ArrayListInt with all currently selected rows.
 com.tensegrity.composite.defaultimpl.table.TableElement getTableColumn(int column)
          Returns the TableElemnt for the given column column.
 com.tensegrity.composite.defaultimpl.table.TableElement getTableRow(int row)
          Returns the TableElemnt for the given row row.
 boolean isCellResizeEnabled()
          Determines whether the resizing of cells is allowed.
 boolean isCellSelectionEnabled()
          Returns true, if the selection of cells is allowed.
 boolean isColumnSelectionEnabled()
          Returns true, if the selection of columns is allowed.
 boolean isFoldable()
          Returns a boolean that indicates whether this CompositeGroup is foldable or not.
 boolean isGridVisible()
          Returns true if the table draws lines (a grid) between cells.
 boolean isGridVisible(int orientation)
          Returns true, if grid-lines for the given orientation are drawn.
 boolean isRowSelectionEnabled()
          Returns true, if the selection of columns is allowed.
 boolean isShowColumnHeaders()
          Returns true if column-headers are shown.
 boolean isShowRowHeaders()
          Returns true if row-headers are shown.
 boolean isUpperLeftCellVisible()
          Returns true, if the upper left cell of the header-area is visible.
 void moveColumn(int oldIndex, int newIndex)
          Moves the column and its header at oldIndex to newIndex.
 void moveRow(int oldIndex, int newIndex)
          Moves the row and its header at oldIndex to newIndex.
 void removeSelectedCompositesFromModel()
          Removes all selected Composites from the model (if any).
 void removeSelection(int col, int row, int type)
          Removes the specified selection at position column, row of type type from the list of currently made selections.
 void removeSelectionListener(CompositeTableSelectionListener listener)
          Unregisters the given listener so that it will no longer receive CompositeTableSelectionEvents.
 void setBackgroundPaintFormat(PaintFormat paintFormat)
          Sets the PaintFormat for the tables background.
 void setCellPaintFormat(int column, int row, PaintFormat pf)
          Sets the PaintFormat of cell (column, row) to the given one.
 void setCellResizeEnabled(boolean b)
          Enables / Disables the resizing of column- and rows via mouse interaction.
 void setCellResizeMode(int mode)
          Sets the table's resize mode when table columns or rows are resized.
 void setCellSelectionEnabled(boolean c)
          Enables or disables cell selections.
 void setCellSelectionMode(int mode)
          Sets the cell selection mode.
 void setColumnHeaderFontFormat(FontFormat format)
          Sets the FontFormat for column headers.
 void setColumnHeaderHeight(int height)
          Sets the height of single column-headers.
 void setColumnHeaderPaintFormat(PaintFormat format)
          Sets the PaintFormat for unselected column headers.
 void setColumnHeaderStrokeFormat(StrokeFormat strokeFormat)
          Set the StrokeFormat of the column-headers.
 void setColumnHeadersVisible(boolean show)
          Sets the visibility of the column headers
 void setColumnHeaderVisualizer(com.tensegrity.composite.defaultimpl.table.AbstractTableHeaderVisualizer vis)
          Sets the visualizer for table-columns.If no visualizer is set, the DefaultTableHeaderVisualizer will be used.
 void setColumnMargin(int column, int margin)
          Sets the margin for column column to margin.
 void setColumnPaintFormat(int column, PaintFormat pf)
          Sets the PaintFormat for the given column.
 void setColumnSelectionEnabled(boolean c)
          Enables or disables the selection of columns.
 void setColumnWidth(int column, int width)
          Sets the width of column column to width.
 void setCustomSpanAttributeEditor(CustomAttributeEditor customEditor)
          Sets a custom editor for a CompositeTableSpan when edited in the AttributeTable.
 void setCustomSpanAttributeRenderer(CustomAttributeRenderer customRenderer)
          Sets a custom renderer for a CompositeTableSpan when shown in the AttributeTable.
 void setFoldable(boolean foldable)
          Sets the state of foldability for this CompositeGroup to the value given by foldable.
 void setFoldedGeometry(java.lang.String geometryname)
          Sets the geometry that is used for the folded representation
 void setFoldedStyle(java.lang.String stylename)
          Sets the style that is used for the folded representation
 void setFoldState(int foldstate)
          Sets the CompositeGroup to the state of folding given by state.
 void setFoldStateButtonCursor(int cursorID)
          Sets the cursor that is displayed over the foldstate button
 void setFoldStateSize(int foldstate, Size size)
          Sets the extensions of a CompositeGroup for the fold state defined by the constant given by foldstate to the extensions of the Size instance given by size.
 void setGridStrokeFormat(StrokeFormat strokeFormat)
          Set the StrokeFormat of the tables grid.
 void setGridVisible(boolean showGrid)
          Sets whether grid lines are drawn between table cells.
 void setGridVisible(int orientation, boolean visible)
          Sets whether the grid is drawn for the given orientation.
 void setMargin(int margin)
          Sets the margin to be used within the whole table.
 void setMaximumCellSize(Size size)
          Sets the maximum size for all cells (columns and rows).
 void setMinimumCellSize(Size size)
          Sets the minimal size for all cells (columns and row).
 void setModel(com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
          Sets the Data-Model of the Table to the given model and registers for CompositeTableModelEvents.
 void setRowHeaderFontFormat(FontFormat format)
          Sets the FontFormat for row headers.
 void setRowHeaderPaintFormat(PaintFormat format)
          Sets the PaintFormat for unselected row headers.
 void setRowHeaderStrokeFormat(StrokeFormat strokeFormat)
          Set the StrokeFormat of the row-headers.
 void setRowHeadersVisible(boolean show)
          Sets whether the Row headers are shown or not.
 void setRowHeaderVisualizer(com.tensegrity.composite.defaultimpl.table.AbstractTableHeaderVisualizer vis)
          Sets the visualizer for table-rows.
 void setRowHeaderWidth(int width)
          Sets the width of the single row-headers.
 void setRowHeight(int row, int width)
          Sets the height of row row to height.
 void setRowMargin(int row, int margin)
          Sets the margin for row row to margin.
 void setRowPaintFormat(int row, PaintFormat pf)
          Sets the PaintFormat for the given table row.
 void setRowPortsEnabled(boolean b)
          Enables row ports depending on the given boolean parameter.
 void setRowSelectionEnabled(boolean c)
          Enables or disables the selection of columns.
 void setSelectedCellPaintFormat(PaintFormat paintFormat)
          Sets the PaintFormat for the table background.
 void setSelectedColumnHeaderPaintFormat(PaintFormat format)
          Sets the PaintFormat for selected column headers.
 void setSelectedRowHeaderPaintFormat(PaintFormat format)
          Sets the PaintFormat for selected rows headers.
 int setSelection(int column, int row, int type)
          Sets the actual selection to the cell / row / column specified by column, row.
 void setSelectionMode(int mode)
           
 void setUpperLeftCellVisible(boolean vis)
          Set the visibility of the upper left cell to the given one.
 
Methods inherited from interface com.tensegrity.composite.CompositeControl
isVisible
 
Methods inherited from interface com.tensegrity.composite.Composite
addCompositeListener, addToLocation, addVetoableCompositeListener, applyState, centerAtLocation, deepCopy, getBackgroundCursorID, getBoundingBox, getCoordinateSystem, getCoordinateSytemTransform, getLocation, getMinimumSize, getSize, getState, getTransform, internalGetHasSideHandles, internalGetKeepAspectRatioAtCornerHandles, internalSetHasSideHandles, internalSetKeepAspectRatioAtCornerHandles, layout, removeCompositeListener, removeVetoableCompositeListener, setBackgroundCursorID, setBoundingBox, setCoordinateSystem, setLocation, setMinimumSize, setSize, setTransform
 
Methods inherited from interface com.tensegrity.composite.BaseComposite
addPrimitive, adjustGeometry, adjustGeometry, applyGeometry, applyStyle, areEventsEnabled, disableEvents, draw, draw, drawComposite, enableEvents, getBaseCompositeContainer, getEventMask, getGeometryName, getInfoValue, getInfoValueIdentifier, getName, getPrimitiveIterator, getShadowColor, getShadowDirection, getStyleName, internalSetGeometryName, internalSetStyleName, isDeletable, isShadowVisible, registerAttributeConstraint, registerEventMediator, registerVetoableEventMediator, removeAllPrimitives, removePrimitive, setBaseCompositeContainer, setDeletable, setEventMask, setInfoValue, setInfoValue, setName, setShadowColor, setShadowDirection, setShadowVisible, unregisterAttributeConstraint
 
Methods inherited from interface com.tensegrity.generic.attribute.AttributableOnSet
addAttributableOnSetListener, areAttributableEventsEnabled, disableAttributableEvents, enableAttributableEvents, getAttributes, getAttributesTree, removeAttributableOnSetListener, setAttributes, setAttributesTree
 
Methods inherited from interface com.tensegrity.generic.attribute.Attributable
getAttribute, getAttributeType, getAttributeValue, setAttribute, setAttributeValue
 
Methods inherited from interface com.tensegrity.graphics.interaction.BaseInteractable
getBoundingBox, getInteractionDescriptor, getMoveItem, hits, internalEnableSelection, internalSelect, internalSetSelected, isMovable, isSelectable, isSelected, mouseClick, mouseDown, mouseEnter, mouseExit, mouseUp, postActing, preActing, select, setMovable, setSelectable, setSelected, startAction, stopAction
 
Methods inherited from interface com.tensegrity.graphics.interaction.Interactable
calculateBoundingBox, isResizable, setResizable
 
Methods inherited from interface com.tensegrity.graphics.interaction.InteractionProvider
actAt, descriptorChanged, dismissFromInteractionCycle, getCurrentInteractionItemFor, getCursorID, getInteractionProviders, getSelection, getSelectionBoundingBox, hasMultiSelection, hasSelection, hasSubSelection, hitsAt, mouseClickAt, mouseDownAt, mouseMoveAt, mouseUpAt, postAction, preAction, select, selectAll, selectAt, selectContaining, selectSubsequent, setSelection, startActionAt, stopActionAt, unselect, unselect, unselectAll, unselectSubsequent
 

Field Detail

SUPPRESS_CROSSOVER_MULTISELECTION

public static final boolean SUPPRESS_CROSSOVER_MULTISELECTION
See Also:
Constant Field Values

EVENT_MASK_ADD_COMPOSITE

public static final int EVENT_MASK_ADD_COMPOSITE
Constants that tell about the different events or groups of events and can be used with BaseComposite.enableEvents(int) to turn them on and BaseComposite.disableEvents(int) to turn them off.

See Also:
Constant Field Values

EVENT_MASK_ADD_COMPOSITES

public static final int EVENT_MASK_ADD_COMPOSITES
Constants that tell about the different events or groups of events and can be used with BaseComposite.enableEvents(int) to turn them on and BaseComposite.disableEvents(int) to turn them off.

See Also:
Constant Field Values

EVENT_MASK_REMOVE_COMPOSITE

public static final int EVENT_MASK_REMOVE_COMPOSITE
Constants that tell about the different events or groups of events and can be used with BaseComposite.enableEvents(int) to turn them on and BaseComposite.disableEvents(int) to turn them off.

See Also:
Constant Field Values

EVENT_MASK_REMOVE_COMPOSITES

public static final int EVENT_MASK_REMOVE_COMPOSITES
Constants that tell about the different events or groups of events and can be used with BaseComposite.enableEvents(int) to turn them on and BaseComposite.disableEvents(int) to turn them off.

See Also:
Constant Field Values

EVENT_MASK_SELECTION_CHANGED

public static final int EVENT_MASK_SELECTION_CHANGED
Constants that tell about the different events or groups of events and can be used with BaseComposite.enableEvents(int) to turn them on and BaseComposite.disableEvents(int) to turn them off.

See Also:
Constant Field Values

EVENT_MASK_FOLDSTATE_CHANGE

public static final int EVENT_MASK_FOLDSTATE_CHANGE
Constants that tell about the different events or groups of events and can be used with BaseComposite.enableEvents(int) to turn them on and BaseComposite.disableEvents(int) to turn them off.

See Also:
Constant Field Values

EVENT_MASK_SIZE_ADJUSTMENT

public static final int EVENT_MASK_SIZE_ADJUSTMENT
Constants that tell about the different events or groups of events and can be used with BaseComposite.enableEvents(int) to turn them on and BaseComposite.disableEvents(int) to turn them off.

See Also:
Constant Field Values

FOLDSTATE_FOLDED

public static final int FOLDSTATE_FOLDED
Constant that tell about a state of folding a CompositeGroup supports

See Also:
Constant Field Values

FOLDSTATE_UNFOLDED

public static final int FOLDSTATE_UNFOLDED
Constant that tell about a state of folding a CompositeGroup supports

See Also:
Constant Field Values

FOLDPLACEMENT_CENTERED

public static final int FOLDPLACEMENT_CENTERED
Constants used to define the position of the fold-button.

See Also:
Constant Field Values

FOLDPLACEMENT_UPPERCORNER

public static final int FOLDPLACEMENT_UPPERCORNER
Constants used to define the position of the fold-button.

See Also:
Constant Field Values

EVENT_MASK_MODEL

public static final int EVENT_MASK_MODEL
Event masks, to en- or disable the appropriate events

See Also:
Constant Field Values

EVENT_MASK_MODEL_COMPOSITE

public static final int EVENT_MASK_MODEL_COMPOSITE
Event masks, to en- or disable the appropriate events

See Also:
Constant Field Values

EVENT_MASK_RESTRICTED_BY_BUILDER

public static final int EVENT_MASK_RESTRICTED_BY_BUILDER
Event masks, to en- or disable the appropriate events

See Also:
Constant Field Values

RESIZE_NEXT

public static final int RESIZE_NEXT
When the size of a column (respectively row) is adjusted, the size of the neighboring column (row) adjusted using the same amount of space, but in the opposite direction.

See Also:
Constant Field Values

RESIZE_LAST

public static final int RESIZE_LAST
The size of the last column or row is adjusted using the same amount of space, but in the opposite direction.

See Also:
Constant Field Values

RESIZE_SUBSEQUENT

public static final int RESIZE_SUBSEQUENT
Columns or rows are adjusted proportionally on a size change.

See Also:
Constant Field Values

RESIZE_TABLE

public static final int RESIZE_TABLE
The entire table becomes larger or smaller when a column or row is resize. Hence all non-affected columns and rows remain untouched.

See Also:
Constant Field Values

RESIZE_NONE

public static final int RESIZE_NONE
Just set the size without affecting anything. Used by interally method applyGeomtry and the CompositeTableBuilder.

See Also:
Constant Field Values

CELL_SELECTION

public static final int CELL_SELECTION
select a single cell

See Also:
Constant Field Values

CELL_SELECTION_ALL

public static final int CELL_SELECTION_ALL
constant for the cell selection mode

See Also:
Constant Field Values

CELL_SELECTION_NON_EMPTY

public static final int CELL_SELECTION_NON_EMPTY
constant for the cell selection mode

See Also:
Constant Field Values

ROW_SELECTION

public static final int ROW_SELECTION
select a whole row

See Also:
Constant Field Values

COLUMN_SELECTION

public static final int COLUMN_SELECTION
selection of a whole column

See Also:
Constant Field Values

CELL

public static final int CELL
constants for the composites the table is made of

See Also:
Constant Field Values

COLUMN

public static final int COLUMN
constants for the composites the table is made of

See Also:
Constant Field Values

ROW

public static final int ROW
constants for the composites the table is made of

See Also:
Constant Field Values

DEFAULT_COLUMN_COUNT

public static final int DEFAULT_COLUMN_COUNT
Default values for column and row count

See Also:
Constant Field Values

DEFAULT_ROW_COUNT

public static final int DEFAULT_ROW_COUNT
Default values for column and row count

See Also:
Constant Field Values

VERTICAL

public static final int VERTICAL
vertical or horizontal alignment

See Also:
Constant Field Values

HORIZONTAL

public static final int HORIZONTAL
vertical or horizontal alignment

See Also:
Constant Field Values

SINGLE_SELECTION_MODE

public static final int SINGLE_SELECTION_MODE
Only one selection at a time can be made

See Also:
Constant Field Values

MULTIPLE_SELECTION_MODE

public static final int MULTIPLE_SELECTION_MODE
Multiple selections can be made

See Also:
Constant Field Values
Method Detail

setColumnWidth

public void setColumnWidth(int column,
                           int width)
Sets the width of column column to width. This column is then marked as - set -. All unset columns are adjusted so that the overall sum of all widths fits the width of the underlying coordinate-system. All previously set columns are unaffected by this adjustment. So, if there�s is just one unset column remaining and you try to set it�s width an Exception will be thrown. It�s width is determined by all previously set columns.

Parameters:
column - the column for which you would like to set the width.
width - the desired absolute width.

getColumnWidth

public int getColumnWidth(int column)
Returns the width of the specified column.

Parameters:
column - the column to return the width for.
Returns:
the width of the specified column.

setRowHeight

public void setRowHeight(int row,
                         int width)
Sets the height of row row to height. This row is then marked as - set -. All unset rows are adjusted so that the overall sum of all heights fits the height of the underlying coordinate-system. All previously set rows are unaffected by this adjustment. So, if there�s is just one unset row remaining and you try to set it�s height an Exception will be thrown. It�s height is determined by all previously set rows.

Parameters:
row - the row for which you would like to set the height.
width - the desired absolute height.

getRowHeight

public int getRowHeight(int row)
Returns the height of the specified row.

Parameters:
row - the row to query the height for.
Returns:
the height of the given row.

clearColumnRanges

public void clearColumnRanges()
Reset all column ranges. After calling this method there will be just one column range spanning all columns having the width of the underlying coordinate-system.


clearRowRanges

public void clearRowRanges()
Reset all set row ranges. After calling this method there will be just one row range spanning all rows having the height of the underlying coordinate-system.


isGridVisible

public boolean isGridVisible()
Returns true if the table draws lines (a grid) between cells. The default is true.

Returns:
true if a grid is drawn, false if not.
See Also:
setGridVisible(boolean)

setGridVisible

public void setGridVisible(boolean showGrid)
Sets whether grid lines are drawn between table cells.

Parameters:
showGrid - true, if grid lines should be drawn.
See Also:
isGridVisible()

isGridVisible

public boolean isGridVisible(int orientation)
Returns true, if grid-lines for the given orientation are drawn.

Parameters:
orientation - the orientation of the grid. Valid values are HORIZONTAL and VERTICAL.
Returns:
true, if grid-lines for the given direction are drawn.

setGridVisible

public void setGridVisible(int orientation,
                           boolean visible)
Sets whether the grid is drawn for the given orientation. The default is true.

Parameters:
orientation - the orientation of the grid. Valid values are HORIZONTAL and VERTICAL.
visible - true, if lines should be drawn.

getColumnHeaderHeight

public int getColumnHeaderHeight()
Returns the height of the column-headers.

Returns:
the height of the column-headers.

setColumnHeaderHeight

public void setColumnHeaderHeight(int height)
Sets the height of single column-headers.

Parameters:
height - the height of column-headers.

isShowColumnHeaders

public boolean isShowColumnHeaders()
Returns true if column-headers are shown.

Returns:
true if column-headers are shown.

setColumnHeadersVisible

public void setColumnHeadersVisible(boolean show)
Sets the visibility of the column headers

Parameters:
show - set to true, if column headers should be visible.

getRowHeaderWidth

public int getRowHeaderWidth()
Returns the width of the row-headers.

Returns:
the width of the row-headers.

setRowHeaderWidth

public void setRowHeaderWidth(int width)
Sets the width of the single row-headers.

Parameters:
width - the width to be set for every row-header.

isShowRowHeaders

public boolean isShowRowHeaders()
Returns true if row-headers are shown.

Returns:
true if row-headers are shown.

setRowHeadersVisible

public void setRowHeadersVisible(boolean show)
Sets whether the Row headers are shown or not.

Parameters:
show - true, if row headers should be displayed.

isUpperLeftCellVisible

public boolean isUpperLeftCellVisible()
Returns true, if the upper left cell of the header-area is visible.

Returns:
true, if the upper left cell is visible.

setUpperLeftCellVisible

public void setUpperLeftCellVisible(boolean vis)
Set the visibility of the upper left cell to the given one. Notice that this cell is only drawn, when both the column and the row header are visible.

Parameters:
vis - true, if the upper left cell should be drawn.

getCellResizeMode

public int getCellResizeMode()
Returns the auto resize mode of the table. The default mode is RESIZE_SUBSEQUENT.

Returns:
the cellResizeMode of the table

Find more information in the class documentation


setCellResizeMode

public void setCellResizeMode(int mode)
Sets the table's resize mode when table columns or rows are resized. When no mode is set explicitly the default mode RESIZE_SUBSEQUENT is used.

Parameters:
mode - the mode to set . Valid modes are

Find more information in the class documentation


isCellResizeEnabled

public boolean isCellResizeEnabled()
Determines whether the resizing of cells is allowed.

Returns:
true, if resizing is be enabled.

Find more information in the class documentation


setCellResizeEnabled

public void setCellResizeEnabled(boolean b)
Enables / Disables the resizing of column- and rows via mouse interaction.

Parameters:
b - true, if resizing shall be enabled.

Find more information in the class documentation


getCellPaintFormat

public PaintFormat getCellPaintFormat(int column,
                                      int row)
Returns the PaintFormat of the given table cell. Null is returned when no PaintFormat is set for the given cell.

Parameters:
column - the column.
row - the row.
Returns:
the PaintFormat of the given table cell.

setCellPaintFormat

public void setCellPaintFormat(int column,
                               int row,
                               PaintFormat pf)
Sets the PaintFormat of cell (column, row) to the given one.

Parameters:
column - the column for which to set the PaintFormat.
row - the row for which to set the PaintFormat.
pf - the PaintFormat to be set.

getColumnPaintFormat

public PaintFormat getColumnPaintFormat(int column)
Returns the PaintFormat of the given table column. If no PaintFormat is set null is returned.

Parameters:
column - the column to return the PaintFormat for.
Returns:
the PaintFormat of the given table column.

setColumnPaintFormat

public void setColumnPaintFormat(int column,
                                 PaintFormat pf)
Sets the PaintFormat for the given column.

Parameters:
column - the column for which to set the PaintFormat for.
pf - the PaintFormat to be set.

getRowPaintFormat

public PaintFormat getRowPaintFormat(int row)
Returns the PaintFormat of the given table row. If no PaintFormat is set null is returned.

Parameters:
row - the row to return the PaintFormat for.
Returns:
the PaintFormat of the given table row.

setRowPaintFormat

public void setRowPaintFormat(int row,
                              PaintFormat pf)
Sets the PaintFormat for the given table row.

Parameters:
row - the row for which to set the PaintFormat for.
pf - the PaintFormat to be set.

getBackgroundPaintFormat

public PaintFormat getBackgroundPaintFormat()
Returns the PaintFormat of the tables background. If no PaintFormat is set, null is returned.

Returns:
the PaintFormat of the tables background.

setBackgroundPaintFormat

public void setBackgroundPaintFormat(PaintFormat paintFormat)
Sets the PaintFormat for the tables background.

Parameters:
paintFormat - the PaintFormat to be set for the tables background.

getSelectedCellPaintFormat

public PaintFormat getSelectedCellPaintFormat()
Returns the PaintFormat for selected cells. If no PaintFormat is set, null is returned.

Returns:
the PaintFormat for selected cells.

setSelectedCellPaintFormat

public void setSelectedCellPaintFormat(PaintFormat paintFormat)
Sets the PaintFormat for the table background.

Parameters:
paintFormat - the PaintFormat to be used for selected cells.

getSelectedColumnHeaderPaintFormat

public PaintFormat getSelectedColumnHeaderPaintFormat()
Returns the PaintFormat for selected column headers.

Returns:
the actually used PaintFormat

setSelectedColumnHeaderPaintFormat

public void setSelectedColumnHeaderPaintFormat(PaintFormat format)
Sets the PaintFormat for selected column headers.

Parameters:
format - the PaintFormat to be set.

getSelectedRowHeaderPaintFormat

public PaintFormat getSelectedRowHeaderPaintFormat()
Returns the PaintFormat for selected row headers.

Returns:
the actually used PaintFormat

setSelectedRowHeaderPaintFormat

public void setSelectedRowHeaderPaintFormat(PaintFormat format)
Sets the PaintFormat for selected rows headers.

Parameters:
format - the PaintFormat to be set.

getColumnHeaderPaintFormat

public PaintFormat getColumnHeaderPaintFormat()
Returns the PaintFormat for unselected column headers.

Returns:
the actually used PaintFormat

setColumnHeaderPaintFormat

public void setColumnHeaderPaintFormat(PaintFormat format)
Sets the PaintFormat for unselected column headers.

Parameters:
format - the PaintFormat to be set.

getRowHeaderPaintFormat

public PaintFormat getRowHeaderPaintFormat()
Returns the PaintFormat for unselected row headers.

Returns:
the actually used PaintFormat

setRowHeaderPaintFormat

public void setRowHeaderPaintFormat(PaintFormat format)
Sets the PaintFormat for unselected row headers.

Parameters:
format - the PaintFormat to be set.

getColumnHeaderFontFormat

public FontFormat getColumnHeaderFontFormat()
Returns FontFormat used for column headers.

Returns:
the actually used FontFormat

setColumnHeaderFontFormat

public void setColumnHeaderFontFormat(FontFormat format)
Sets the FontFormat for column headers.

Parameters:
format - the FontFormat to be set.

getRowHeaderFontFormat

public FontFormat getRowHeaderFontFormat()
Returns FontFormat used for row headers.

Returns:
the actually used FontFormat

setRowHeaderFontFormat

public void setRowHeaderFontFormat(FontFormat format)
Sets the FontFormat for row headers.

Parameters:
format - the FontFormat to be set.

getGridStrokeFormat

public StrokeFormat getGridStrokeFormat()
Returns the StrokeFormat of the tables grid.

Returns:
the set StrokeFormat.

setGridStrokeFormat

public void setGridStrokeFormat(StrokeFormat strokeFormat)
Set the StrokeFormat of the tables grid.

Parameters:
strokeFormat - the StrokeFormat to be set.

getColumnHeaderStrokeFormat

public StrokeFormat getColumnHeaderStrokeFormat()
Returns the StrokeFormat of the column-headers.

Returns:
the set StrokeFormat.

setColumnHeaderStrokeFormat

public void setColumnHeaderStrokeFormat(StrokeFormat strokeFormat)
Set the StrokeFormat of the column-headers.

Parameters:
strokeFormat - the StrokeFormat to be set.

getRowHeaderStrokeFormat

public StrokeFormat getRowHeaderStrokeFormat()
Returns the StrokeFormat of the row-headers.

Returns:
the set StrokeFormat.

setRowHeaderStrokeFormat

public void setRowHeaderStrokeFormat(StrokeFormat strokeFormat)
Set the StrokeFormat of the row-headers.

Parameters:
strokeFormat - the StrokeFormat to be set.

getCellSelectionMode

public int getCellSelectionMode()
Returns the cell selection mode.

Returns:
the cell selection mode.

setCellSelectionMode

public void setCellSelectionMode(int mode)
Sets the cell selection mode. Valid values are CELL_SELECTION_ALL and CELL_SELECTION_NON_EMPTY.

Parameters:
mode - the cell selection mode to set.

setSelection

public int setSelection(int column,
                        int row,
                        int type)
Sets the actual selection to the cell / row / column specified by column, row. All selections of the given type made up to now will be erased. If the type is COLUMN- / ROW_SELECTION only the column / row -parameter is relevant.

Parameters:
column - the column to be selected.
row - the row to be selected.
type - the desired selection mode; legal values are SINGLE_CELL-,COLUMN- or ROW_SELECTION.
Returns:
a constant specifying what kind of selection occurred.

clearSelection

public void clearSelection()
Clears all made selections (if any) of any type.


removeSelection

public void removeSelection(int col,
                            int row,
                            int type)
Removes the specified selection at position column, row of type type from the list of currently made selections.

Parameters:
col - the column.
row - the row.
type - type can be SINGLE_CELL-,COLUMN- or ROW_SELECTION.
See Also:
setSelection(int, int, int)

getSelectedColumns

public ArrayListInt getSelectedColumns()
Returns an ArrayListInt with all currently selected columns.

Returns:
an ArrayListInt with all currently selected columns.

getActiveColumn

public int getActiveColumn()
Returns the index of the active column selection, which usually is the last selected column.

Returns:
the index of the active column selection, which usually is the last selected column.

getActiveRow

public int getActiveRow()
Returns the index of the active row selection, which usually is the last selected row.

Returns:
the index of the active row selection, which usually is the last selected row.

getSelectedRows

public ArrayListInt getSelectedRows()
Returns an ArrayListInt with all currently selected rows.

Returns:
an ArrayListInt with all currently selected rows.

getSelectedCells

public java.util.List getSelectedCells()
Returns an List with all currently selected cells. The inlaying cells are of type SelectionItems.Cell.

Returns:
an List that contains all currently selected cells.
See Also:
SelectionItems

isCellSelectionEnabled

public boolean isCellSelectionEnabled()
Returns true, if the selection of cells is allowed.

Returns:
true, if the selection of cells is allowed.

setCellSelectionEnabled

public void setCellSelectionEnabled(boolean c)
Enables or disables cell selections.

Parameters:
c - true, if cell selection should be allowed.

isColumnSelectionEnabled

public boolean isColumnSelectionEnabled()
Returns true, if the selection of columns is allowed.

Returns:
true, if the selection of columns is allowed.

setColumnSelectionEnabled

public void setColumnSelectionEnabled(boolean c)
Enables or disables the selection of columns.

Parameters:
c - true, if column selection should be allowed.

isRowSelectionEnabled

public boolean isRowSelectionEnabled()
Returns true, if the selection of columns is allowed.

Returns:
true, if the selection of columns is allowed.

setRowSelectionEnabled

public void setRowSelectionEnabled(boolean c)
Enables or disables the selection of columns.

Parameters:
c - true, if column selection should be allowed.

setRowMargin

public void setRowMargin(int row,
                         int margin)
Sets the margin for row row to margin. Note:
Use method setColumnMargin OR setRowMargin. If you try to use them both, only the row-margins will be considered.

Parameters:
row - the row to set the margin for.
margin - the margin to set.
See Also:
setColumnMargin(int, int)

setRowPortsEnabled

public void setRowPortsEnabled(boolean b)
Enables row ports depending on the given boolean parameter.

Parameters:
b - true to enable row ports, otherwise false.

areRowPortsEnabled

public boolean areRowPortsEnabled()
Returns true, if row-ports are enabled.

Returns:
true, if row-ports are enabled.

setColumnMargin

public void setColumnMargin(int column,
                            int margin)
Sets the margin for column column to margin. Note:
Use method setColumnMargin OR setRowMargin. If you try to use them both, only the row-margins will be considered.

Parameters:
column - the column to set the margin for.
margin - the margin to set.
See Also:
setRowMargin(int, int)

setMargin

public void setMargin(int margin)
Sets the margin to be used within the whole table.

Parameters:
margin - the margin to set.
See Also:
setRowMargin(int, int), setColumnMargin(int, int)

addTableSelectionListener

public void addTableSelectionListener(CompositeTableSelectionListener listener)
Registers listener so that it will receive CompositeTableSelectionEvents.

Parameters:
listener - the CompositeTableSelectionListener to register.
See Also:
CompositeTableSelectionEvent

removeSelectionListener

public void removeSelectionListener(CompositeTableSelectionListener listener)
Unregisters the given listener so that it will no longer receive CompositeTableSelectionEvents.

Parameters:
listener - the CompositeTableSelectionListener to unregister.

getSelectedComposites

public java.util.List getSelectedComposites()
Returns a List with all selected composites. A composite is selected, when the corresponding cell, column or row is selected. If no Composite is selected, null is returned.

Returns:
a List of the selected composites, or null when nothing is selected.

removeSelectedCompositesFromModel

public void removeSelectedCompositesFromModel()
Removes all selected Composites from the model (if any).


setCustomSpanAttributeEditor

public void setCustomSpanAttributeEditor(CustomAttributeEditor customEditor)
Sets a custom editor for a CompositeTableSpan when edited in the AttributeTable.

Parameters:
customEditor - the CustomAttributeEditor to set.

setCustomSpanAttributeRenderer

public void setCustomSpanAttributeRenderer(CustomAttributeRenderer customRenderer)
Sets a custom renderer for a CompositeTableSpan when shown in the AttributeTable.

Parameters:
customRenderer - the CustomAttributeRenderer to set.

setColumnHeaderVisualizer

public void setColumnHeaderVisualizer(com.tensegrity.composite.defaultimpl.table.AbstractTableHeaderVisualizer vis)
Sets the visualizer for table-columns.If no visualizer is set, the DefaultTableHeaderVisualizer will be used.

Parameters:
vis - the visualizer to be set for table column-headers.

Find more information in the class documentation


setRowHeaderVisualizer

public void setRowHeaderVisualizer(com.tensegrity.composite.defaultimpl.table.AbstractTableHeaderVisualizer vis)
Sets the visualizer for table-rows. If no visualizer is set, the DefaultTableHeaderVisualizer will be used.

Parameters:
vis - the visualizer to be set for the table row-headers.

Find more information in the class documentation


setMinimumCellSize

public void setMinimumCellSize(Size size)
Sets the minimal size for all cells (columns and row). This value is considered during cell resize operations.

Parameters:
size - the desired minimal cell size.
See Also:
setMaximumCellSize(Size)

setMaximumCellSize

public void setMaximumCellSize(Size size)
Sets the maximum size for all cells (columns and rows). This value is considered during cell resize operations.

Parameters:
size - the desired maximum cell size.
See Also:
setMinimumCellSize(Size)

moveColumn

public void moveColumn(int oldIndex,
                       int newIndex)
                throws com.tensegrity.composite.defaultimpl.table.CompositeTableException
Moves the column and its header at oldIndex to newIndex. All columns before and the one at column newIndex will be shifted left. This operation fails, if the columns at oldIndex or newIndex contain composites with spans. In this case a CompositeTableException will be thrown.
Notice:
If you have a SelectionListener registered with the table, all received column-row pairs refer to state of the table before all movements. For example: After moveColumn(1,3) column 1 will now lay in column 3, column 2 in column 1 and column 3 in column 2. Now a selection occurs in the first visible column (column 2). The column-number the SelectionEvent transmits has the value 2.

Parameters:
oldIndex - the index of the column to be moved.
newIndex - the index of the column's new location.
Throws:
com.tensegrity.composite.defaultimpl.table.CompositeTableException - if the given oldIndex or newIndex are not in the valid range or the columns contain Composites with set spans.

moveRow

public void moveRow(int oldIndex,
                    int newIndex)
             throws com.tensegrity.composite.defaultimpl.table.CompositeTableException
Moves the row and its header at oldIndex to newIndex. All rows top of and the one at index newIndex will be shifted upwards. This operation fails, if the rows at oldIndex or newIndex contain composites with spans. In this case a CompositeTableException will be thrown.
Notice:
See the notice for moveColumn(int, int).

Parameters:
oldIndex - the index of the row to be moved.
newIndex - index of the rows new location.
Throws:
com.tensegrity.composite.defaultimpl.table.CompositeTableException - will be raised, if the given oldIndex or newIndex are not in the valid range or the rows contain Composites with set spans.

getTableColumn

public com.tensegrity.composite.defaultimpl.table.TableElement getTableColumn(int column)
Returns the TableElemnt for the given column column.

Parameters:
column - the column to return the associated TableElement for.
Returns:
the TableElemnt for the given column.

getTableRow

public com.tensegrity.composite.defaultimpl.table.TableElement getTableRow(int row)
Returns the TableElemnt for the given row row.

Parameters:
row - the row to return the associated TableElement for.
Returns:
the TableElemnt for the given row.

getModel

public com.tensegrity.composite.defaultimpl.table.CompositeTableModel getModel()
Return the used CompositeTableModel.

Returns:
the used CompositeTableModel.

setModel

public void setModel(com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
              throws com.tensegrity.composite.defaultimpl.table.CompositeTableException
Sets the Data-Model of the Table to the given model and registers for CompositeTableModelEvents.

Parameters:
model - the model to be used for this table instance.
Throws:
com.tensegrity.composite.defaultimpl.table.CompositeTableException - if the given model is not suitable.

getCellBounds

public Boundary getCellBounds(int col,
                              int row)
Returns the cell bounds of the cell in column col, row row.

Parameters:
col - the column of the cell.
row - the row of the cell.
Returns:
the cell bounds of the cell in column col, row row.

getCellComposites

public CompositeIterator getCellComposites()
Returns an iterator over all Composites that are added to the grid of this table.

Returns:
an iterator over all Composites that are added to the grid of this table.

isFoldable

public boolean isFoldable()
Returns a boolean that indicates whether this CompositeGroup is foldable or not.

Returns:
boolean that indicates the state of foldability for the CompositeGroup

Find more information in the class documentation


setFoldable

public void setFoldable(boolean foldable)
Sets the state of foldability for this CompositeGroup to the value given by foldable. If the CompositeGroup is no longer foldable and it is in a fold state different from FOLDSTATE_UNFOLDED the fold state will be changed to FOLDSTATE_UNFOLDED.

Parameters:
foldable - the new fold state for the CompositeGroup

Find more information in the class documentation


getFoldState

public int getFoldState()
Returns the state of folding of the CompositeGroup. If the CompositeGroup is not foldable FOLDSTATE_UNFOLDED is returned.

Returns:
int the current state of folding for the CompositeGroup
See Also:
FOLDSTATE_FOLDED, FOLDSTATE_UNFOLDED

Find more information in the class documentation


setFoldState

public void setFoldState(int foldstate)
Sets the CompositeGroup to the state of folding given by state. The supported states of folding are defined through constants defined in this interface. If the CompositeGroup is not foldable nothing happens. If the CompositeGroup is actually in the given state also nothing will happen.

Parameters:
foldstate - the state of folding to set the CompositeGroup to
See Also:
FOLDSTATE_FOLDED, FOLDSTATE_UNFOLDED

Find more information in the class documentation


getFoldStateSize

public Size getFoldStateSize(int foldstate)
Returns a Size instance that describes the extensions of a CompositeGroup when it is in a folded state defined by the constant given by foldstate. These extensions may vary for different states of folding. The values of the extensions are given in the coordinate system of the context the CompositeGroup lies within. Notice that at the actual state of development only the FOLDSTATE_FOLDED constant is supported.

Parameters:
foldstate - the constant of the fold state the extensions should be returned for
Returns:
Size that describes the extensions of the CompositeGroup in the actual state of folding

Find more information in the class documentation


setFoldStateSize

public void setFoldStateSize(int foldstate,
                             Size size)
Sets the extensions of a CompositeGroup for the fold state defined by the constant given by foldstate to the extensions of the Size instance given by size. The values of the extensions should be given in the coordinate system of the context the CompositeGroup lies within. When setting the extensions for the defined fold state and the CompositeGroup is actually in that state creates a ResizeEvent if one of the new extensions is different from the current extensions for that state. Notice that at the actual state of development only the FOLDSTATE_FOLDED and FOLDSTATE_UNFOLDED constants are supported.

Parameters:
foldstate - the constant of the fold state the extensions should be adjusted for
size - the new extensions for the state of folding defined through the parameter

Find more information in the class documentation


getFoldStateButtonCursor

public int getFoldStateButtonCursor()
Returns the cursor that is displayed over the foldstate button

Returns:
the cursor that is displayed over the foldstate button

setFoldStateButtonCursor

public void setFoldStateButtonCursor(int cursorID)
Sets the cursor that is displayed over the foldstate button

Parameters:
cursorID - the cursor that is displayed over the foldstate button

getFoldedGeometry

public java.lang.String getFoldedGeometry()
Returns the geometry that is used for the folded representation

Returns:
the geometry that is used for the folded representation

setFoldedGeometry

public void setFoldedGeometry(java.lang.String geometryname)
Sets the geometry that is used for the folded representation

Parameters:
geometryname - the geometry that is used for the folded representation

getFoldedStyle

public java.lang.String getFoldedStyle()
Returns the style that is used for the folded representation

Returns:
the style that is used for the folded representation

setFoldedStyle

public void setFoldedStyle(java.lang.String stylename)
Sets the style that is used for the folded representation

Parameters:
stylename - the style that is used for the folded representation

setSelectionMode

public void setSelectionMode(int mode)


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.