public class DrawSheet extends java.lang.Object implements Drawable
Drawable.DrawableHint
Modifier and Type | Field and Description |
---|---|
protected Sheet<?,?> |
sheet |
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
Modifier and Type | Method and Description |
---|---|
void |
applyTransform(java.awt.Graphics2D context)
Apply 2-D transforms before drawing this shape.
(在绘制此形状之前应用二维变换。)
|
protected boolean |
canDraw(java.awt.Graphics2D graphics, Shape<?,?> shape)
Checks if this
sheet displays the specified shape.
(检查此工作表是否显示指定的形状。)
|
void |
draw(java.awt.Graphics2D graphics)
Draw this shape into the supplied canvas
(将此形状绘制到提供的画布中)
|
void |
drawContent(java.awt.Graphics2D context)
draw any content within this shape (image, text, etc.).
(在此形状内绘制任何内容(图像、文本等)。)
|
protected final Sheet<?,?> sheet
public DrawSheet(Sheet<?,?> sheet)
public void draw(java.awt.Graphics2D graphics)
Drawable
public void applyTransform(java.awt.Graphics2D context)
Drawable
applyTransform
in interface
Drawable
(接口 Drawable 中的 applyTransform)
context
- the graphics whos transform matrix will be modified
(context - 将修改变换矩阵的图形)
public void drawContent(java.awt.Graphics2D context)
Drawable
drawContent
in interface
Drawable
(接口Drawable中的drawContent)
context
- the graphics to draw into
(context - 要绘制的图形)
protected boolean canDraw(java.awt.Graphics2D graphics, Shape<?,?> shape)
sheet
displays the specified shape. Subclasses can override it and skip certain shapes from drawings, for instance, slide masters and layouts don't display placeholders
(检查此工作表是否显示指定的形状。子类可以覆盖它并跳过绘图中的某些形状,例如,幻灯片母版和布局不显示占位符)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.