Top Description Methods
org.apache.poi.ss.usermodel

public Interface Shape

Known Direct Subinterfaces
org.apache.poi.ss.usermodel.SimpleShape, org.apache.poi.ss.usermodel.Picture
Known Direct Implementers
org.apache.poi.hssf.usermodel.HSSFShape

Common interface for all drawing shapes
Since
POI 3.16-beta2

Method Summary

Modifier and TypeMethod and Description
public ChildAnchor

Returns:

the anchor that is used by this shape.
getAnchor
()

public Shape

Returns:

the parent shape.
getParent
()

public String

Returns:

the name of this shape
getShapeName
()

public boolean

Returns:

true if this shape is not filled with a color.
isNoFill
()

Whether this shape is not filled with a color

public void
setFillColor(int red, int green, int blue)

Sets the color used to fill this shape using the solid fill pattern.

public void
setLineStyleColor(int red, int green, int blue)

The color applied to the lines of this shape.

public void
setNoFill(boolean
if true then no fill will be applied to the shape element.
noFill
)

Sets whether this shape is filled or transparent.

Method Detail

getAnchorback to summary
public ChildAnchor getAnchor()
Returns:ChildAnchor

the anchor that is used by this shape.

getParentback to summary
public Shape getParent()
Returns:Shape

the parent shape.

getShapeNameback to summary
public String getShapeName()
Returns:String

the name of this shape

isNoFillback to summary
public boolean isNoFill()

Whether this shape is not filled with a color

Returns:boolean

true if this shape is not filled with a color.

setFillColorback to summary
public void setFillColor(int red, int green, int blue)

Sets the color used to fill this shape using the solid fill pattern.

setLineStyleColorback to summary
public void setLineStyleColor(int red, int green, int blue)

The color applied to the lines of this shape.

setNoFillback to summary
public void setNoFill(boolean noFill)

Sets whether this shape is filled or transparent.

Parameters
noFill:boolean

if true then no fill will be applied to the shape element.