MindFusion.Java Package Programmer's Guide
ShapeListBox Members
Constructors Methods
 


The ShapeListBox control displays a set of shapes defined in the Shape class.

The following tables list the members exposed by the ShapeListBox type.

 Public Constructors

  Name Description

ShapeListBox

Initializes a new instance of the ShapeListBox class.

 Public Methods

  Name Description

addShape

Adds a single Shape to the list box.

addShapeListener

Adds a listener for select, rename and delete events.

addShapes

Overloaded.  

clearShapes

Removes all shapes from the ShapeListBox, leaving it empty.

getAllowRemove

Gets a value indicating whether deletion of listbox items by pressing DEL is allowed. Only the list box items are deleted, but not the Shape definitions themselves.

getAllowRename

Gets a value indicating whether inline renaming of listbox items is allowed. Currently the list box displays shape identifiers as names.

getDefaultShapeSize

Gets the size of the shape that is created when dragging items from the list box to the diagram.

getIconMargin

Gets the horizontal and vertical margins of the shape icons in the ListBox.

getIconSize

Gets the size of the shape icons displayed in the ListBox.

getShapeAt

Returns the Shape at the specified index.

getShapeCount

Returns the number of shapes after filtering.

getShapeFillColor

Gets the fill color of the shapes in the list box.

getShapeFilter

Gets the identifiers of the shapes that should be displayed in the list box.

getShapes

Retrieves all shapes visible in the list box after filtering.

getShowLabels

Gets a value indicating whether to show text labels along with icons for each list item.

invalidateShapeAt

Invalidates the specified shape, causing its icon to be recreated and redrawn. Call this method when a shape definition changes.

removeShapeAt

Removes a shape from the list box.

removeShapeListener

Removes previously added listener for select, rename and delete events.

resumeRepaint

Resumes repainting the control after a suspendRepaint call.

setAllowRemove

Sets a value specifying whether removing of listbox items is allowed.

setAllowRename

Sets a value specifying whether inline renaming of listbox items is allowed. Items can be renamed by pressing F2. Currently the list box displays shape identifiers as names.

setDefaultShapeSize

Sets the size of the shape that is created when dragging items from the list box to the flowchart.

setIconMargin

Sets the horizontal and vertical margins of the shape icons in the ListBox.

setIconSize

Sets the size of the shape icons displayed in the ListBox.

setShapeAt

Sets the shape at the specified position.

setShapeFillColor

Sets the fill color of the shapes in the list box.

setShapeFilter

Sets the identifiers of the shapes that should be displayed in the list box.

setShapes

Replaces all current shapes with the specified ones.

setShowLabels

 

startInlineEdit

Initiates inline editing of shape id.

suspendRepaint

Stops repainting the control. This is useful when using the JDiagram API from JavaScript, where the control would be repainted after each script line executes.

 Protected Methods

  Name Description

fireShapeRemoved

 

fireShapeRenamed

 

fireShapeSelected

 

onKeyDown

 

paintComponent

 

 See Also

ShapeListBox Class
com.mindfusion.diagramming Namespace