| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadLocal |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | drawShape(Graphics2D
the graphics context to draw to graphics, Shape<?, ?> the shape shape, Rectangle2D the bounds within the graphics context to draw to bounds)Convenience method for drawing single shapes. |
| public Drawable | |
| public DrawSlide | |
| public DrawSheet | |
| public DrawMasterSheet | |
| public DrawTextBox | |
| public DrawFreeformShape | |
| public DrawConnectorShape | |
| public DrawTableShape | |
| public DrawTextShape | |
| public DrawGroupShape | |
| public DrawPictureShape | |
| public DrawGraphicalFrame | |
| public DrawTextParagraph | |
| public DrawBackground | |
| public DrawFontManager | Returns: the font managerthe graphics context holding potentially a font manager graphics)Return a FontManager, either registered beforehand or a default implementation |
| public static DrawFactory | Returns: the draw factorythe current graphics context or null graphics)Returns the DrawFactory, preferably via a graphics instance. |
| public DrawPaint | |
| public DrawTextFragment | |
| public static void | setDefaultFactory(DrawFactory
the custom factory or factory)null to reset/remove the default factorySet a custom draw factory for the current thread. |
| defaultFactory | back to summary |
|---|---|
| private static final ThreadLocal<DrawFactory> defaultFactory | |
| DrawFactory | back to summary |
|---|---|
| public DrawFactory() | |
| drawShape | back to summary |
|---|---|
| public void drawShape(Graphics2D graphics, Shape<?, ?> shape, Rectangle2D bounds) Convenience method for drawing single shapes.
For drawing whole slides, use
| |
| getDrawable | back to summary |
|---|---|
| public Drawable getDrawable(Shape<?, ?> shape) | |
| getDrawable | back to summary |
|---|---|
| public DrawSlide getDrawable(Slide<?, ?> sheet) | |
| getDrawable | back to summary |
|---|---|
| public DrawSheet getDrawable(Sheet<?, ?> sheet) | |
| getDrawable | back to summary |
|---|---|
| public DrawMasterSheet getDrawable(MasterSheet<?, ?> sheet) | |
| getDrawable | back to summary |
|---|---|
| public DrawTextBox getDrawable(TextBox<?, ?> shape) | |
| getDrawable | back to summary |
|---|---|
| public DrawFreeformShape getDrawable(FreeformShape<?, ?> shape) | |
| getDrawable | back to summary |
|---|---|
| public DrawConnectorShape getDrawable(ConnectorShape<?, ?> shape) | |
| getDrawable | back to summary |
|---|---|
| public DrawTableShape getDrawable(TableShape<?, ?> shape) | |
| getDrawable | back to summary |
|---|---|
| public DrawTextShape getDrawable(TextShape<?, ?> shape) | |
| getDrawable | back to summary |
|---|---|
| public DrawGroupShape getDrawable(GroupShape<?, ?> shape) | |
| getDrawable | back to summary |
|---|---|
| public DrawPictureShape getDrawable(PictureShape<?, ?> shape) | |
| getDrawable | back to summary |
|---|---|
| public DrawGraphicalFrame getDrawable(GraphicalFrame<?, ?> shape) | |
| getDrawable | back to summary |
|---|---|
| public DrawTextParagraph getDrawable(TextParagraph<?, ?, ?> paragraph) | |
| getDrawable | back to summary |
|---|---|
| public DrawBackground getDrawable(Background<?, ?> shape) | |
| getFontManager | back to summary |
|---|---|
| public DrawFontManager getFontManager(Graphics2D graphics) Return a FontManager, either registered beforehand or a default implementation
| |
| getInstance | back to summary |
|---|---|
| public static DrawFactory getInstance(Graphics2D graphics) Returns the DrawFactory, preferably via a graphics instance. If graphics is null, the current thread local is checked or if it is not set, a new factory is created.
| |
| getPaint | back to summary |
|---|---|
| public DrawPaint getPaint(PlaceableShape<?, ?> shape) | |
| getTextFragment | back to summary |
|---|---|
public DrawTextFragment getTextFragment(TextLayout layout, AttributedString str)
| |
| setDefaultFactory | back to summary |
|---|---|
| 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
| |