sofia.graphics.ShapeParent |
An interface implemented by classes that can contain a list of shapes, such as a ShapeView.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void | add(Shape shape) | ||||||||||
abstract void |
conditionallyRelayout()
Notifies the receiver that the shapes it owns need to be laid out again
(if the bounds of one of the shapes have changed).
| ||||||||||
abstract void |
conditionallyRepaint()
Notifies the receiver that the shapes it owns need to be repainted.
| ||||||||||
abstract RectF |
getBounds()
Gets the bounds of receiver where shapes can be contained.
| ||||||||||
abstract ShapeParent |
getShapeParent()
Gets the parent of this
ShapeParent . | ||||||||||
abstract Collection<Shape> |
getShapes()
Gets the collection of shapes owned by the receiver.
| ||||||||||
abstract boolean |
isInFrontOf(Shape left, Shape right)
Returns true if the left shape is drawn in front of (later than) the
shape on the right.
| ||||||||||
abstract void |
onPositionChanged(Shape shape)
Called by a shape inside the receiver when its position has changed, so
that the receiver can rearrange its shape collection accordingly.
| ||||||||||
abstract void | onShapesAdded(Iterable<? extends Shape> shapes) | ||||||||||
abstract void | onShapesRemoved(Iterable<? extends Shape> shapes) | ||||||||||
abstract void |
relayout()
Notifies the receiver that the shapes it owns need to be laid out again
(if the bounds of one of the shapes have changed).
| ||||||||||
abstract void | remove(Shape shape) | ||||||||||
abstract void |
repaint()
Notifies the receiver that the shapes it owns need to be repainted.
| ||||||||||
abstract void |
updateZIndex(Shape shape, int newZIndex)
Called by a shape inside the receiver when its z-index has changed, so
that the receiver can rearrange its shape collection accordingly.
|
Notifies the receiver that the shapes it owns need to be laid out again (if the bounds of one of the shapes have changed).
Notifies the receiver that the shapes it owns need to be repainted.
Gets the bounds of receiver where shapes can be contained.
Gets the parent of this ShapeParent
.
ShapeParent
that contains the receiver
Gets the collection of shapes owned by the receiver.
Collection
of Shape objects owned by the
receiver
Returns true if the left shape is drawn in front of (later than) the shape on the right.
left | The shape to check. |
---|---|
right | The shape to check against. |
Called by a shape inside the receiver when its position has changed, so that the receiver can rearrange its shape collection accordingly.
shape | the shape whose position was changed |
---|
Notifies the receiver that the shapes it owns need to be laid out again (if the bounds of one of the shapes have changed).
Notifies the receiver that the shapes it owns need to be repainted.
Called by a shape inside the receiver when its z-index has changed, so that the receiver can rearrange its shape collection accordingly.
shape | the shape whose z-index was changed |
---|