com.f1j.drawing
Interface ShapeRange


public interface ShapeRange
extends Shape, Lockable

this interface describes the public API for a set of shapes, such as a selection.


Method Summary
 Shape getShape(int nIndex)
          Gets a shape from the shape range.
 int getShapeCount()
          Gets the number of shapes in the range.
 
Methods inherited from interface com.f1j.drawing.Shape
bringForward, bringToFront, canChangeType, canFlip, canRegroup, canUngroup, delete, flipHorizontal, flipVertical, getAutoShapeType, getFormat, getID, getName, getShapeAnchor, getText, getType, getZOrderPosition, hasText, isAllowChanges, isAllowSelection, isAllowText, isHorizontalFlip, isVerticalFlip, sendBackward, sendToBack, setAutoShapeType, setFormat, setName, setShapeAnchor, setText, setZOrder
 

Method Detail

getShape

public Shape getShape(int nIndex)
               throws com.f1j.util.InvalidIndexException,
                      F1Exception
Gets a shape from the shape range.
Parameters:
nIndex - The index of the shape
Returns:
Shape The Shape reference
Throws:
com.f1j.util.InvalidIndexException - if index is invalid.

getShapeCount

public int getShapeCount()
Gets the number of shapes in the range.
Returns:
int The shape count