@Immutable public final class PreparationContext extends Object
| Constructor and Description |
|---|
PreparationContext(PreparationContextGlobal aGlobalCtx,
float fAvailableWidth,
float fAvailableHeight)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
float |
getAvailableHeight() |
float |
getAvailableWidth() |
PreparationContextGlobal |
getGlobalContext() |
String |
toString() |
public PreparationContext(@Nonnull PreparationContextGlobal aGlobalCtx, @Nonnegative float fAvailableWidth, @Nonnegative float fAvailableHeight)
aGlobalCtx - The global preparation context worked uponfAvailableWidth - The available width for an element, without the element's margin and
padding. Should be > 0.fAvailableHeight - The available height for an element, without the element's margin
and padding. Should be > 0.@Nonnull public PreparationContextGlobal getGlobalContext()
public float getAvailableWidth()
public float getAvailableHeight()
Copyright © 2014–2016 Philip Helger. All rights reserved.