public class DrawSimpleShape extends DrawShape
Drawable.DrawableHint
CURRENT_SLIDE, DRAW_FACTORY, FONT_FALLBACK, FONT_HANDLER, FONT_MAP, GRADIENT_SHAPE, GRESTORE, GROUP_TRANSFORM, GSAVE, IMAGE_RENDERER, PRESET_GEOMETRY_CACHE, TEXT_AS_CHARACTERS, TEXT_AS_SHAPES, TEXT_RENDERING_MODE
Constructor and Description |
---|
DrawSimpleShape(SimpleShape<?,?> shape) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<Outline> |
computeOutlines(java.awt.Graphics2D graphics) |
void |
draw(java.awt.Graphics2D graphics)
Draw this shape into the supplied canvas
|
protected void |
drawDecoration(java.awt.Graphics2D graphics,
java.awt.Paint line,
java.awt.BasicStroke stroke) |
protected void |
drawShadow(java.awt.Graphics2D graphics,
java.util.Collection<Outline> outlines,
java.awt.Paint fill,
java.awt.Paint line) |
protected static CustomGeometry |
getCustomGeometry(java.lang.String name) |
protected static CustomGeometry |
getCustomGeometry(java.lang.String name,
java.awt.Graphics2D graphics) |
protected Outline |
getHeadDecoration(java.awt.Graphics2D graphics,
LineDecoration deco,
java.awt.BasicStroke stroke) |
protected SimpleShape<?,?> |
getShape() |
java.awt.BasicStroke |
getStroke() |
protected Outline |
getTailDecoration(java.awt.Graphics2D graphics,
LineDecoration deco,
java.awt.BasicStroke stroke) |
applyTransform, drawContent, getAnchor, getAnchor, getStroke
public DrawSimpleShape(SimpleShape<?,?> shape)
public void draw(java.awt.Graphics2D graphics)
Drawable
protected void drawDecoration(java.awt.Graphics2D graphics, java.awt.Paint line, java.awt.BasicStroke stroke)
protected Outline getTailDecoration(java.awt.Graphics2D graphics, LineDecoration deco, java.awt.BasicStroke stroke)
protected Outline getHeadDecoration(java.awt.Graphics2D graphics, LineDecoration deco, java.awt.BasicStroke stroke)
public java.awt.BasicStroke getStroke()
protected void drawShadow(java.awt.Graphics2D graphics, java.util.Collection<Outline> outlines, java.awt.Paint fill, java.awt.Paint line)
protected static CustomGeometry getCustomGeometry(java.lang.String name)
protected static CustomGeometry getCustomGeometry(java.lang.String name, java.awt.Graphics2D graphics)
protected java.util.Collection<Outline> computeOutlines(java.awt.Graphics2D graphics)
protected SimpleShape<?,?> getShape()
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.