@Immutable public final class PLElementWithSize extends Object
AbstractPLRenderableObject and stores the size.| Constructor and Description |
|---|
PLElementWithSize(IPLRenderableObject<?> aElement,
SizeSpec aSize)
Constructor
|
PLElementWithSize(IPLRenderableObject<?> aElement,
SizeSpec aSize,
SizeSpec aSizeFull)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
IPLRenderableObject<?> |
getElement() |
float |
getHeight() |
float |
getHeightFull() |
SizeSpec |
getSize() |
SizeSpec |
getSizeFull() |
float |
getWidth() |
float |
getWidthFull() |
String |
toString() |
public PLElementWithSize(@Nonnull IPLRenderableObject<?> aElement, @Nonnull SizeSpec aSize)
aElement - Element itself.aSize - Size of the element without padding and marginpublic PLElementWithSize(@Nonnull IPLRenderableObject<?> aElement, @Nonnull SizeSpec aSize, @Nonnull SizeSpec aSizeFull)
aElement - Element itself.aSize - Size of the element without padding and marginaSizeFull - Size of the element with padding, border and margin@Nonnull public IPLRenderableObject<?> getElement()
public float getWidth()
public float getWidthFull()
public float getHeight()
public float getHeightFull()
Copyright © 2014–2016 Philip Helger. All rights reserved.