public class PrismTextLayoutFactory extends java.lang.Object implements TextLayoutFactory
| Modifier and Type | Field and Description |
|---|---|
private static PrismTextLayoutFactory |
factory |
private static boolean |
inUse |
private static PrismTextLayout |
reusableTL |
| Modifier | Constructor and Description |
|---|---|
private |
PrismTextLayoutFactory() |
| Modifier and Type | Method and Description |
|---|---|
TextLayout |
createLayout()
Returns a new TextLayout instance.
|
void |
disposeLayout(TextLayout layout)
Disposes the reusable TextLayout.
|
static PrismTextLayoutFactory |
getFactory() |
TextLayout |
getLayout()
Returns a reusable instance of TextLayout, the caller is responsible by
returning the instance back to the factory using disposeLayout().
|
private static final PrismTextLayout reusableTL
private static boolean inUse
private static final PrismTextLayoutFactory factory
public TextLayout createLayout()
TextLayoutFactorycreateLayout in interface TextLayoutFactorypublic TextLayout getLayout()
TextLayoutFactorygetLayout in interface TextLayoutFactorypublic void disposeLayout(TextLayout layout)
TextLayoutFactorydisposeLayout in interface TextLayoutFactorypublic static PrismTextLayoutFactory getFactory()