public abstract class ClippedLayer extends Layer
x, y coordinate (as adjusted by its origin) extended to the layer's
scaled width and height.
NOTE: clipping rectangles cannot be rotated. If the layer has a rotation, the clipping region will be undefined (and most certainly wacky).
Layer.HitTester, Layer.Origin, Layer.StateCloseable.Set, Closeable.Util| Constructor and Description |
|---|
ClippedLayer(float width,
float height) |
| Modifier and Type | Method and Description |
|---|---|
float |
height()
Returns the height of this layer.
|
ClippedLayer |
setHeight(float height)
Updates the height of this group layer, and hence its clipping rectangle.
|
ClippedLayer |
setSize(float width,
float height)
Updates the size of this clipped layer, and hence its clipping rectangle.
|
ClippedLayer |
setSize(IDimension size)
Updates the size of this clipped layer, and hence its clipping rectangle.
|
ClippedLayer |
setWidth(float width)
Updates the width of this group layer, and hence its clipping rectangle.
|
float |
width()
Returns the width of this layer.
|
absorbHits, alpha, close, depth, disposed, events, hasEventListeners, hitTest, hitTestDefault, interactive, name, onAdded, onDisposed, onRemoved, origin, origin, originX, originY, paint, parent, rotation, scale, scaledHeight, scaledWidth, scaleX, scaleY, setAlpha, setBatch, setDepth, setHitTester, setInteractive, setName, setOrigin, setOrigin, setRotation, setScale, setScale, setScaleX, setScaleY, setTint, setTranslation, setTranslation, setTx, setTy, setVisible, tint, toString, transform, translation, translation, tx, ty, visiblepublic float width()
Layerpublic float height()
Layerpublic ClippedLayer setSize(float width, float height)
public ClippedLayer setSize(IDimension size)
public ClippedLayer setWidth(float width)
public ClippedLayer setHeight(float height)
Copyright © 2017. All Rights Reserved.