Package org.apache.poi.sl.draw
Class DrawTableShape
- java.lang.Object
-
- org.apache.poi.sl.draw.DrawShape
-
- org.apache.poi.sl.draw.DrawTableShape
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.poi.sl.draw.Drawable
Drawable.DrawableHint
-
-
Field Summary
Fields Modifier and Type Field Description static int
borderSize
Additional spacing between cells-
Fields inherited from interface org.apache.poi.sl.draw.Drawable
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 Summary
Constructors Constructor Description DrawTableShape(TableShape<?,?> shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyTransform(Graphics2D graphics)
Apply 2-D transforms before drawing this shape.void
draw(Graphics2D graphics)
Draw this shape into the supplied canvasvoid
drawContent(Graphics2D graphics)
draw any content within this shape (image, text, etc.).protected Drawable
getGroupShape(Graphics2D graphics)
protected TableShape<?,?>
getShape()
void
setAllBorders(Object... args)
Format the table and apply the specified Line to all cell boundaries, both outside and inside.void
setInsideBorders(Object... args)
Format the inside border using the specified Line object An empty args parameter removes the affected border.void
setOutsideBorders(Object... args)
Format the outside border using the specified Line object An empty args parameter removes the affected border.
-
-
-
Field Detail
-
borderSize
@Internal public static final int borderSize
Additional spacing between cells- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DrawTableShape
public DrawTableShape(TableShape<?,?> shape)
-
-
Method Detail
-
getGroupShape
protected Drawable getGroupShape(Graphics2D graphics)
-
applyTransform
public void applyTransform(Graphics2D graphics)
Description copied from class:DrawShape
Apply 2-D transforms before drawing this shape. This includes rotation and flipping.- Specified by:
applyTransform
in interfaceDrawable
- Overrides:
applyTransform
in classDrawShape
- Parameters:
graphics
- the graphics whose transform matrix will be modified
-
draw
public void draw(Graphics2D graphics)
Description copied from interface:Drawable
Draw this shape into the supplied canvas
-
drawContent
public void drawContent(Graphics2D graphics)
Description copied from interface:Drawable
draw any content within this shape (image, text, etc.).- Specified by:
drawContent
in interfaceDrawable
- Overrides:
drawContent
in classDrawShape
- Parameters:
graphics
- the graphics to draw into
-
getShape
protected TableShape<?,?> getShape()
-
setAllBorders
public void setAllBorders(Object... args)
Format the table and apply the specified Line to all cell boundaries, both outside and inside. An empty args parameter removes the affected border.- Parameters:
args
- a varargs array possible containingDouble
(width),StrokeStyle.LineCompound
,Color
,StrokeStyle.LineDash
-
setOutsideBorders
public void setOutsideBorders(Object... args)
Format the outside border using the specified Line object An empty args parameter removes the affected border.- Parameters:
args
- a varargs array possible containingDouble
(width),StrokeStyle.LineCompound
,Color
,StrokeStyle.LineDash
-
setInsideBorders
public void setInsideBorders(Object... args)
Format the inside border using the specified Line object An empty args parameter removes the affected border.- Parameters:
args
- a varargs array possible containingDouble
(width),StrokeStyle.LineCompound
,Color
,StrokeStyle.LineDash
-
-