ShapeCollection
Inheritance: java.lang.Object, com.aspose.diagram.Collection
public class ShapeCollection extends Collection<Shape>
Collection of Shapes.
Methods
| Method | Description |
|---|---|
| add(T o) | |
| add(Shape item) | Add the shape in the collection. |
| clear() | |
| contains(Object o) | |
| equals(Object arg0) | |
| get(int index) | |
| getClass() | |
| getCount() | |
| getInnerList() | |
| 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() | |
| indexOf(Object o) | |
| isExist(int index) | |
| iterator() | |
| notify() | |
| notifyAll() | |
| remove(Shape item) | Remove the shape from the collection. |
| removeAt(int index) | |
| 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(T o)
public int add(T o)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| o | T |
Returns: int
add(Shape item)
public int add(Shape item)
Add the shape in the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | Shape |
Returns: int - ID
clear()
public void clear()
contains(Object o)
public boolean contains(Object o)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| o | java.lang.Object |
Returns: boolean
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
get(int index)
public T get(int index)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int |
Returns: T
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getCount()
public int getCount()
Returns: int
getInnerList()
public ArrayList<T> getInnerList()
Returns:
java.util.ArrayList
getShape(String name)
public Shape getShape(String name)
Gets the element at the specified name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String |
Returns: Shape -
getShape(long ID)
public Shape getShape(long ID)
Gets the element at the specified ID.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| ID | long |
Returns: Shape -
getShapeIncludingChild(int id)
public Shape getShapeIncludingChild(int id)
Gets the element including it’s child shape at the specified id.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | int |
Returns: Shape -
getShapeIncludingChild(String name)
public Shape getShapeIncludingChild(String name)
Gets the element including it’s child shape at the specified name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.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:
| Parameter | Type | Description |
|---|---|---|
| groupItems | Shape[] | the group items. |
Returns: Shape - Return the group shape.
hashCode()
public native int hashCode()
Returns: int
indexOf(Object o)
public int indexOf(Object o)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| o | java.lang.Object |
Returns: int
isExist(int index)
public boolean isExist(int index)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int |
Returns: boolean
iterator()
public Iterator<T> iterator()
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:
| Parameter | Type | Description |
|---|---|---|
| item | Shape | Shape |
removeAt(int index)
public void removeAt(int index)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int |
removeDependsOn(Shape item)
public void removeDependsOn(Shape item)
Remove the shapes including DEPENDSON shapes from the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | Shape | Shape |
toString()
public String toString()
Returns: java.lang.String
unGroup(Shape groupShape)
public void unGroup(Shape groupShape)
UnGroup the shape.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| groupShape | Shape | the group shape. |
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |