public class DrawSimpleShape extends DrawShape
Drawable.DrawableHint
BUFFERED_IMAGE, CURRENT_SLIDE, DEFAULT_CHARSET, DRAW_FACTORY, EMF_FORCE_HEADER_BOUNDS, 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 java.awt.Paint |
getFillPaint(java.awt.Graphics2D graphics) |
protected Outline |
getHeadDecoration(java.awt.Graphics2D graphics,
LineDecoration deco,
java.awt.BasicStroke stroke) |
protected java.awt.Paint |
getLinePaint(java.awt.Graphics2D graphics) |
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 java.awt.Paint getFillPaint(java.awt.Graphics2D graphics)
protected java.awt.Paint getLinePaint(java.awt.Graphics2D graphics)
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 java.util.Collection<Outline> computeOutlines(java.awt.Graphics2D graphics)
protected SimpleShape<?,?> getShape()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.