ShapeCollection

Inheritance: java.lang.Object, com.aspose.diagram.Collection

public class ShapeCollection extends Collection

Collection of Shapes.

Methods

MethodDescription
add(Shape item)Add the shape in the collection.
clear()Removes all elements from collection.
equals(Object arg0)
get(int index)Gets the element at the specified index.
getClass()
getCount()Gets the number of elements actually contained in the collection.
getShape(String name)Gets the element at the specified name.
getShape(long ID)Gets the element at the specified ID.
getShapeIncludingChild(int id)Gets the element including it’s child shape at the specified id.
getShapeIncludingChild(String name)Gets the element including it’s child shape at the specified name.
group(Shape[] groupItems)Group the shapes.
hashCode()
isExist(int index)Is exist item in the collection.
iterator()Supports a simple iteration over a nongeneric collection.
notify()
notifyAll()
remove(Shape item)Remove the shape from the collection.
removeDependsOn(Shape item)Remove the shapes including DEPENDSON shapes from the collection.
toString()
unGroup(Shape groupShape)UnGroup the shape.
wait()
wait(long arg0)
wait(long arg0, int arg1)

add(Shape item)

public int add(Shape item)

Add the shape in the collection.

Parameters:

ParameterTypeDescription
itemShape

Returns: int - ID

clear()

public void clear()

Removes all elements from collection.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

get(int index)

public Shape get(int index)

Gets the element at the specified index.

Parameters:

ParameterTypeDescription
indexint

Returns: Shape -

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCount()

public int getCount()

Gets the number of elements actually contained in the collection.

Returns: int

getShape(String name)

public Shape getShape(String name)

Gets the element at the specified name.

Parameters:

ParameterTypeDescription
namejava.lang.String

Returns: Shape -

getShape(long ID)

public Shape getShape(long ID)

Gets the element at the specified ID.

Parameters:

ParameterTypeDescription
IDlong

Returns: Shape -

getShapeIncludingChild(int id)

public Shape getShapeIncludingChild(int id)

Gets the element including it’s child shape at the specified id.

Parameters:

ParameterTypeDescription
idint

Returns: Shape -

getShapeIncludingChild(String name)

public Shape getShapeIncludingChild(String name)

Gets the element including it’s child shape at the specified name.

Parameters:

ParameterTypeDescription
namejava.lang.String

Returns: Shape -

group(Shape[] groupItems)

public Shape group(Shape[] groupItems)

Group the shapes. The shape in the groupItems should not be grouped. The shape must be in this Shapes collection.

Parameters:

ParameterTypeDescription
groupItemsShape[]the group items.

Returns: Shape - Return the group shape.

hashCode()

public native int hashCode()

Returns: int

isExist(int index)

public boolean isExist(int index)

Is exist item in the collection.

Parameters:

ParameterTypeDescription
indexintindex of element.

Returns: boolean -

iterator()

public Iterator iterator()

Supports a simple iteration over a nongeneric collection.

Returns: java.util.Iterator -

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

remove(Shape item)

public void remove(Shape item)

Remove the shape from the collection.

Parameters:

ParameterTypeDescription
itemShapeShape

removeDependsOn(Shape item)

public void removeDependsOn(Shape item)

Remove the shapes including DEPENDSON shapes from the collection.

Parameters:

ParameterTypeDescription
itemShapeShape

toString()

public String toString()

Returns: java.lang.String

unGroup(Shape groupShape)

public void unGroup(Shape groupShape)

UnGroup the shape.

Parameters:

ParameterTypeDescription
groupShapeShapethe group shape.

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int