public class Layer extends Object
XElement
and provides support for shadows and shimming.Modifier and Type | Class and Description |
---|---|
static interface |
Layer.LayerAppearance |
static class |
Layer.LayerBaseAppearance |
static class |
Layer.LayerBaseAppearanceIe |
static interface |
Layer.LayerResources |
static interface |
Layer.LayerResourcesIe |
static interface |
Layer.LayerStyle |
static interface |
Layer.LayerStyleIe |
static interface |
Layer.LayerTemplates |
static interface |
Layer.LayerTemplatesIe |
static class |
Layer.ShadowPosition
Shadow position enumeration.
|
static interface |
Layer.ShimTemplates |
Constructor and Description |
---|
Layer(XElement elem) |
Layer(XElement elem,
Layer.LayerAppearance appearance) |
Modifier and Type | Method and Description |
---|---|
void |
disableShadow()
Disables the shadow.
|
void |
disableShim()
Disables the shim.
|
void |
disableUnders()
Disables the shim and the shadow.
|
void |
enableShadow()
Enables the shadow.
|
void |
enableShim()
Enables the shim.
|
Layer.LayerAppearance |
getAppearance() |
XElement |
getElement() |
XElement |
getShadow()
Returns the layer's shadow.
|
int |
getShadowOffset()
Returns the shadow offset.
|
Layer.ShadowPosition |
getShadowPosition()
Returns the shadow position.
|
XElement |
getShim()
Returns the layer's shim.
|
void |
hideShadow()
Hides the layer's shadow.
|
void |
hideShim()
Hides the shim.
|
void |
hideUnders()
Hides the shim and the shadow.
|
boolean |
isShadow() |
boolean |
isShim() |
void |
setShadowPosition(Layer.ShadowPosition shadowPosition)
Sets the shadow position (defaults to SIDES).
|
void |
sync(boolean show)
Syncs the layer with its element.
|
public Layer(XElement elem)
public Layer(XElement elem, Layer.LayerAppearance appearance)
public void disableShadow()
public void disableShim()
public void disableUnders()
public void enableShadow()
public void enableShim()
public Layer.LayerAppearance getAppearance()
public XElement getElement()
public XElement getShadow()
public int getShadowOffset()
public Layer.ShadowPosition getShadowPosition()
public XElement getShim()
public void hideShadow()
public void hideShim()
public void hideUnders()
public boolean isShadow()
public boolean isShim()
public void setShadowPosition(Layer.ShadowPosition shadowPosition)
shadowPosition
- the positionpublic void sync(boolean show)
show
- true to show the layerCopyright © 2018. All rights reserved.