Drawable.DrawableHint
Modifier and Type | Field and Description |
---|---|
static int |
borderSize
Additional spacing between cells
(单元格之间的额外间距)
|
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 |
---|
DrawTableShape(TableShape<?,?> shape) |
Modifier and Type | Method and Description |
---|---|
void |
applyTransform(java.awt.Graphics2D graphics)
Apply 2-D transforms before drawing this shape.
(在绘制此形状之前应用二维变换。)
|
void |
draw(java.awt.Graphics2D graphics)
Draw this shape into the supplied canvas
(将此形状绘制到提供的画布中)
|
void |
drawContent(java.awt.Graphics2D graphics)
draw any content within this shape (image, text, etc.).
(在此形状内绘制任何内容(图像、文本等)。)
|
protected Drawable |
getGroupShape(java.awt.Graphics2D graphics) |
protected TableShape<?,?> |
getShape() |
void |
setAllBorders(java.lang.Object... args)
Format the table and apply the specified Line to all cell boundaries, both outside and inside.
(格式化表格并将指定的行应用于所有单元格边界,包括外部和内部。)
|
void |
setInsideBorders(java.lang.Object... args)
Format the inside border using the specified Line object An empty args parameter removes the affected border.
(使用指定的 Line 对象格式化内部边框 空 args 参数删除受影响的边框。)
|
void |
setOutsideBorders(java.lang.Object... args)
Format the outside border using the specified Line object An empty args parameter removes the affected border.
(使用指定的 Line 对象格式化外部边框空的 args 参数删除受影响的边框。)
|
@Internal public static final int borderSize
public DrawTableShape(TableShape<?,?> shape)
protected Drawable getGroupShape(java.awt.Graphics2D graphics)
public void applyTransform(java.awt.Graphics2D graphics)
DrawShape
applyTransform
in interface
Drawable
(接口 Drawable 中的 applyTransform)
applyTransform
in class
DrawShape
graphics
- the graphics whos transform matrix will be modified
(graphics - 将修改变换矩阵的图形)
public void draw(java.awt.Graphics2D graphics)
Drawable
public void drawContent(java.awt.Graphics2D graphics)
Drawable
drawContent
in interface
Drawable
(接口Drawable中的drawContent)
drawContent
in class
DrawShape
graphics
- the graphics to draw into
(graphics - 要绘制的图形)
protected TableShape<?,?> getShape()
public void setAllBorders(java.lang.Object... args)
args
- a varargs array possible containing
Double
(width),
StrokeStyle.LineCompound
,
Color
,
StrokeStyle.LineDash
(args - 一个可变参数数组,可能包含 Double(宽度)、StrokeStyle.LineCompound、Color、StrokeStyle.LineDash)
public void setOutsideBorders(java.lang.Object... args)
args
- a varargs array possible containing
Double
(width),
StrokeStyle.LineCompound
,
Color
,
StrokeStyle.LineDash
(args - 一个可变参数数组,可能包含 Double(宽度)、StrokeStyle.LineCompound、Color、StrokeStyle.LineDash)
public void setInsideBorders(java.lang.Object... args)
args
- a varargs array possible containing
Double
(width),
StrokeStyle.LineCompound
,
Color
,
StrokeStyle.LineDash
(args - 一个可变参数数组,可能包含 Double(宽度)、StrokeStyle.LineCompound、Color、StrokeStyle.LineDash)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.