Top Fields Constructors Methods
org.apache.poi.sl.draw

public Class DrawTableShape

extends DrawShape
Class Inheritance
Static Imports
org.apache.poi.sl.draw.DrawPaint.fillPaintWorkaround

Field Summary

Modifier and TypeField and Description
public static final int
borderSize

Additional spacing between cells

Inherited from org.apache.poi.sl.draw.DrawShape:
shape

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
applyTransform(Graphics2D
the graphics whose transform matrix will be modified
graphics
)

Overrides org.apache.poi.sl.draw.DrawShape.applyTransform.

Implements org.apache.poi.sl.draw.Drawable.applyTransform.

Apply 2-D transforms before drawing this shape.

public void
draw(Graphics2D
the graphics to draw into
graphics
)

Overrides org.apache.poi.sl.draw.DrawShape.draw.

Implements org.apache.poi.sl.draw.Drawable.draw.

Draw this shape into the supplied canvas

public void
drawContent(Graphics2D
the graphics to draw into
graphics
)

Overrides org.apache.poi.sl.draw.DrawShape.drawContent.

Implements org.apache.poi.sl.draw.Drawable.drawContent.

draw any content within this shape (image, text, etc.).

protected Drawable
protected TableShape<?, ?>
public void
setAllBorders(Object...
a varargs array possible containing Double (width), LineCompound, Color, LineDash
args
)

Format the table and apply the specified Line to all cell boundaries, both outside and inside.

private static void
setEdges(TableCell<?, ?>
the cell
cell
,
TableCell.BorderEdge[]
the border edges
edges
,
Object...
the border attributes
args
)

Apply the border attributes (args) to the given cell and edges

public void
setInsideBorders(Object...
a varargs array possible containing Double (width), LineCompound, Color, LineDash
args
)

Format the inside border using the specified Line object An empty args parameter removes the affected border.

public void
setOutsideBorders(Object...
a varargs array possible containing Double (width), LineCompound, Color, LineDash
args
)

Format the outside border using the specified Line object An empty args parameter removes the affected border.

Inherited from org.apache.poi.sl.draw.DrawShape:
getAnchorgetAnchorgetStrokeisHSLF

Field Detail

borderSizeback to summary
public static final int borderSize

Additional spacing between cells

Annotations
@Internal

Constructor Detail

DrawTableShapeback to summary
public DrawTableShape(TableShape<?, ?> shape)

Method Detail

applyTransformback to summary
public void applyTransform(Graphics2D graphics)

Overrides org.apache.poi.sl.draw.DrawShape.applyTransform.

Implements org.apache.poi.sl.draw.Drawable.applyTransform.

Doc from org.apache.poi.sl.draw.DrawShape.applyTransform.

Apply 2-D transforms before drawing this shape. This includes rotation and flipping.

Parameters
graphics:Graphics2D

the graphics whose transform matrix will be modified

drawback to summary
public void draw(Graphics2D graphics)

Overrides org.apache.poi.sl.draw.DrawShape.draw.

Implements org.apache.poi.sl.draw.Drawable.draw.

Doc from org.apache.poi.sl.draw.Drawable.draw.

Draw this shape into the supplied canvas

Parameters
graphics:Graphics2D

the graphics to draw into

drawContentback to summary
public void drawContent(Graphics2D graphics)

Overrides org.apache.poi.sl.draw.DrawShape.drawContent.

Implements org.apache.poi.sl.draw.Drawable.drawContent.

Doc from org.apache.poi.sl.draw.Drawable.drawContent.

draw any content within this shape (image, text, etc.).

Parameters
graphics:Graphics2D

the graphics to draw into

getGroupShapeback to summary
protected Drawable getGroupShape(Graphics2D graphics)
getShapeback to summary
protected TableShape<?, ?> getShape()

Overrides org.apache.poi.sl.draw.DrawShape.getShape.

Annotations
@Override
setAllBordersback to summary
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:Object[]

a varargs array possible containing Double (width), LineCompound, Color, LineDash

setEdgesback to summary
private static void setEdges(TableCell<?, ?> cell, TableCell.BorderEdge[] edges, Object... args)

Apply the border attributes (args) to the given cell and edges

Parameters
cell:TableCell<?, ?>

the cell

edges:TableCell.BorderEdge[]

the border edges

args:Object[]

the border attributes

setInsideBordersback to summary
public void setInsideBorders(Object... args)

Format the inside border using the specified Line object An empty args parameter removes the affected border.

Parameters
args:Object[]

a varargs array possible containing Double (width), LineCompound, Color, LineDash

setOutsideBordersback to summary
public void setOutsideBorders(Object... args)

Format the outside border using the specified Line object An empty args parameter removes the affected border.

Parameters
args:Object[]

a varargs array possible containing Double (width), LineCompound, Color, LineDash