Skip to main content

IShapeCollection Interface

Defines methods and properties for managing a collection of shape objects.

Declaration

public interface IShapeCollection extends List<ShapeBase>

Implements

java.util.List<com.devexpress.docs.presentation.ShapeBase>

Methods

<TResult>find(Class<TResult> clazzTResult, Function<TResult,Boolean> predicate) Method

Returns the first element of the specified type that matches the specified predicate.

Declaration

public abstract TResult <TResult>find(Class<TResult> clazzTResult, Function<TResult,Boolean> predicate)

Parameters

Name Type Description
clazzTResult java.lang.Class<TResult>

The class of elements to search for.

predicate java.util.function.Function<TResult,java.lang.Boolean>

The predicate used to match elements.

Returns

Type Description
TResult

The first matching element, if found.

<TResult>findAll(Class<TResult> clazzTResult, Function<TResult,Boolean> predicate) Method

Returns all elements of the specified type that match the specified predicate.

Declaration

public abstract Iterable<TResult> <TResult>findAll(Class<TResult> clazzTResult, Function<TResult,Boolean> predicate)

Parameters

Name Type Description
clazzTResult java.lang.Class<TResult>

The class of elements to search for.

predicate java.util.function.Function<TResult,java.lang.Boolean>

The predicate used to match elements.

Returns

Type Description
java.lang.Iterable<TResult>

A collection of all matching elements.

bringForward(int index) Method

Brings the element at the specified index one level forward.

Declaration

public abstract void bringForward(int index)

Parameters

Name Type Description
index int

An index of an element to be brought one level forward.

bringForward(ShapeBase shape) Method

Brings the specified element one level forward.

Declaration

public abstract void bringForward(ShapeBase shape)

Parameters

Name Type Description
shape ShapeBase

The shape to bring one level forward.

bringToFront(int index) Method

Brings the element at the specified index to the front.

Declaration

public abstract void bringToFront(int index)

Parameters

Name Type Description
index int

An index of an element to be brought to the front.

bringToFront(ShapeBase shape) Method

Brings the specified element to the front.

Declaration

public abstract void bringToFront(ShapeBase shape)

Parameters

Name Type Description
shape ShapeBase

The shape to bring to the front.

move(int oldIndex, int newIndex) Method

Moves the element at the specified index to a new position.

Declaration

public abstract void move(int oldIndex, int newIndex)

Parameters

Name Type Description
oldIndex int

The current zero-based index of the element.

newIndex int

The new zero-based index for the element.

move(ShapeBase shape, int newIndex) Method

Moves the specified element to a new position.

Declaration

public abstract void move(ShapeBase shape, int newIndex)

Parameters

Name Type Description
shape ShapeBase

The shape to move.

newIndex int

The new zero-based index for the element.

sendBackward(int index) Method

Sends the element at the specified index one level backward.

Declaration

public abstract void sendBackward(int index)

Parameters

Name Type Description
index int

An index of an element to be sent one level backward.

sendBackward(ShapeBase shape) Method

Sends the specified element one level backward.

Declaration

public abstract void sendBackward(ShapeBase shape)

Parameters

Name Type Description
shape ShapeBase

The shape to send one level backward.

sendToBack(int index) Method

Sends the element at the specified index to the back.

Declaration

public abstract void sendToBack(int index)

Parameters

Name Type Description
index int

An index of an element to be sent to the back.

sendToBack(ShapeBase shape) Method

Sends the specified element to the back.

Declaration

public abstract void sendToBack(ShapeBase shape)

Parameters

Name Type Description
shape ShapeBase

The shape to send to the back.