Drawable.DrawableHint
Modifier and Type | Field and Description |
---|---|
static int |
borderSize
Additional spacing between cells
|
BUFFERED_IMAGE, CACHE_IMAGE_SOURCE, 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.
|
void |
setOutsideBorders(java.lang.Object... args)
Format the outside border using the specified Line object
An empty args parameter removes the affected border.
|
@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
applyTransform
in class DrawShape
graphics
- the graphics whos transform matrix will be modifiedpublic void draw(java.awt.Graphics2D graphics)
Drawable
public void drawContent(java.awt.Graphics2D graphics)
Drawable
drawContent
in interface Drawable
drawContent
in class DrawShape
graphics
- the graphics to draw intoprotected TableShape<?,?> getShape()
public void setAllBorders(java.lang.Object... args)
args
- a varargs array possible containing Double
(width),
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
public void setInsideBorders(java.lang.Object... args)
args
- a varargs array possible containing Double
(width),
StrokeStyle.LineCompound
, Color
, StrokeStyle.LineDash
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.