org.apache.poi.sl.draw
Class DrawFactory
java.lang.Object
org.apache.poi.sl.draw.DrawFactory
public class DrawFactory
- extends java.lang.Object
Method Summary |
DrawBackground |
getDrawable(Background<?,?> shape)
|
DrawConnectorShape |
getDrawable(ConnectorShape<?,?> shape)
|
DrawFreeformShape |
getDrawable(FreeformShape<?,?> shape)
|
DrawGroupShape |
getDrawable(GroupShape<?,?> shape)
|
DrawMasterSheet |
getDrawable(MasterSheet<?,?> sheet)
|
DrawPictureShape |
getDrawable(PictureShape<?,?> shape)
|
Drawable |
getDrawable(Shape<?,?> shape)
|
DrawSheet |
getDrawable(Sheet<?,?> sheet)
|
DrawSlide |
getDrawable(Slide<?,?> sheet)
|
DrawTableShape |
getDrawable(TableShape<?,?> shape)
|
DrawTextBox |
getDrawable(TextBox<?,?> shape)
|
DrawTextParagraph |
getDrawable(TextParagraph<?,?,?> paragraph)
|
DrawTextShape |
getDrawable(TextShape<?,?> shape)
|
static DrawFactory |
getInstance(java.awt.Graphics2D graphics)
|
DrawPaint |
getPaint(PlaceableShape<?,?> shape)
|
DrawTextFragment |
getTextFragment(java.awt.font.TextLayout layout,
java.text.AttributedString str)
|
static void |
setDefaultFactory(DrawFactory factory)
Set a custom draw factory for the current thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultFactory
protected static final java.lang.ThreadLocal<DrawFactory> defaultFactory
DrawFactory
public DrawFactory()
setDefaultFactory
public static void setDefaultFactory(DrawFactory factory)
- Set a custom draw factory for the current thread.
This is a fallback, for operations where usercode can't set a graphics context.
Preferably use the rendering hint
Drawable.DRAW_FACTORY
to set the factory.
- Parameters:
factory
-
getInstance
public static DrawFactory getInstance(java.awt.Graphics2D graphics)
getDrawable
public Drawable getDrawable(Shape<?,?> shape)
getDrawable
public DrawSlide getDrawable(Slide<?,?> sheet)
getDrawable
public DrawSheet getDrawable(Sheet<?,?> sheet)
getDrawable
public DrawMasterSheet getDrawable(MasterSheet<?,?> sheet)
getDrawable
public DrawTextBox getDrawable(TextBox<?,?> shape)
getDrawable
public DrawFreeformShape getDrawable(FreeformShape<?,?> shape)
getDrawable
public DrawConnectorShape getDrawable(ConnectorShape<?,?> shape)
getDrawable
public DrawTableShape getDrawable(TableShape<?,?> shape)
getDrawable
public DrawTextShape getDrawable(TextShape<?,?> shape)
getDrawable
public DrawGroupShape getDrawable(GroupShape<?,?> shape)
getDrawable
public DrawPictureShape getDrawable(PictureShape<?,?> shape)
getDrawable
public DrawTextParagraph getDrawable(TextParagraph<?,?,?> paragraph)
getDrawable
public DrawBackground getDrawable(Background<?,?> shape)
getTextFragment
public DrawTextFragment getTextFragment(java.awt.font.TextLayout layout,
java.text.AttributedString str)
getPaint
public DrawPaint getPaint(PlaceableShape<?,?> shape)
Copyright 2015 The Apache Software Foundation or
its licensors, as applicable.