Package org.apache.poi.sl.draw
Class DrawTableShape
java.lang.Object
org.apache.poi.sl.draw.DrawShape
org.apache.poi.sl.draw.DrawTableShape
- All Implemented Interfaces:
Drawable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.poi.sl.draw.Drawable
Drawable.DrawableHint -
Field Summary
FieldsFields inherited from interface org.apache.poi.sl.draw.Drawable
CURRENT_SLIDE, DRAW_FACTORY, 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTransform(Graphics2D graphics) Apply 2-D transforms before drawing this shape.voiddraw(Graphics2D graphics) Draw this shape into the supplied canvasvoiddrawContent(Graphics2D graphics) draw any content within this shape (image, text, etc.).protected DrawablegetGroupShape(Graphics2D graphics) protected TableShape<?,?> getShape()voidsetAllBorders(Object... args) Format the table and apply the specified Line to all cell boundaries, both outside and inside.voidsetInsideBorders(Object... args) Format the inside border using the specified Line object An empty args parameter removes the affected border.voidsetOutsideBorders(Object... args) Format the outside border using the specified Line object An empty args parameter removes the affected border.
-
Field Details
-
borderSize
Additional spacing between cells- See Also:
-
-
Constructor Details
-
DrawTableShape
-
-
Method Details
-
getGroupShape
-
applyTransform
Description copied from class:DrawShapeApply 2-D transforms before drawing this shape. This includes rotation and flipping.- Specified by:
applyTransformin interfaceDrawable- Overrides:
applyTransformin classDrawShape- Parameters:
graphics- the graphics whos transform matrix will be modified
-
draw
Description copied from interface:DrawableDraw this shape into the supplied canvas -
drawContent
Description copied from interface:Drawabledraw any content within this shape (image, text, etc.).- Specified by:
drawContentin interfaceDrawable- Overrides:
drawContentin classDrawShape- Parameters:
graphics- the graphics to draw into
-
getShape
-
setAllBorders
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
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
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
-