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

public Class DrawSheet

extends Object
implements Drawable
Class Inheritance
All Implemented Interfaces
org.apache.poi.sl.draw.Drawable
Known Direct Subclasses
org.apache.poi.sl.draw.DrawSlide, org.apache.poi.sl.draw.DrawMasterSheet
Imports
java.awt.Color, .Dimension, .Graphics2D, java.awt.geom.AffineTransform, org.apache.poi.sl.usermodel.MasterSheet, .Shape, .Sheet

Field Summary

Modifier and TypeField and Description
protected final Sheet<?, ?>

Constructor Summary

AccessConstructor and Description
public
DrawSheet(Sheet<?, ?> sheet)

Method Summary

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

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

Apply 2-D transforms before drawing this shape.

protected boolean
canDraw(Graphics2D graphics, Shape<?, ?> shape)

Checks if this sheet displays the specified shape.

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

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

Draw this shape into the supplied canvas

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

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

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

sheetback to summary
protected final Sheet<?, ?> sheet

Constructor Detail

DrawSheetback to summary
public DrawSheet(Sheet<?, ?> sheet)

Method Detail

applyTransformback to summary
public void applyTransform(Graphics2D context)

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

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

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

Parameters
context:Graphics2D

the graphics whose transform matrix will be modified

Annotations
@Override
canDrawback to summary
protected boolean canDraw(Graphics2D graphics, Shape<?, ?> shape)

Checks if this sheet displays the specified shape. Subclasses can override it and skip certain shapes from drawings, for instance, slide masters and layouts don't display placeholders

drawback to summary
public void draw(Graphics2D graphics)

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

Annotations
@Override
drawContentback to summary
public void drawContent(Graphics2D context)

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
context:Graphics2D

the graphics to draw into

Annotations
@Override