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()
TextLayoutFactory
createLayout
in interface TextLayoutFactory
public TextLayout getLayout()
TextLayoutFactory
getLayout
in interface TextLayoutFactory
public void disposeLayout(TextLayout layout)
TextLayoutFactory
disposeLayout
in interface TextLayoutFactory
public static PrismTextLayoutFactory getFactory()