Top Methods
org.apache.poi.sl.usermodel

public Interface SimpleShape<S extends Shape<S, P>, P extends TextParagraph<S, P, ? extends TextRun>>

extends Shape<S extends Shape<S, P>, P extends TextParagraph<S, P, ? extends TextRun>>, IAdjustableShape, PlaceableShape<S extends Shape<S, P>, P extends TextParagraph<S, P, ? extends TextRun>>
Known Direct Subinterfaces
org.apache.poi.sl.usermodel.TextShape, org.apache.poi.sl.usermodel.ConnectorShape, org.apache.poi.sl.usermodel.PictureShape
Imports
java.awt.Color, org.apache.poi.sl.draw.geom.CustomGeometry, .IAdjustableShape

Method Summary

Modifier and TypeMethod and Description
public Color

Returns:

solid fill color of null if not set or fill color is not solid (pattern or gradient)
getFillColor
()

Returns the solid color fill.

public FillStyle
public CustomGeometry
public LineDecoration
public Placeholder

Returns:

the placeholder or null if none is assigned
getPlaceholder
()

public PlaceholderDetails

Returns:

an accessor for placeholder details
getPlaceholderDetails
()

public Shadow<S, P>
public ShapeType
public StrokeStyle
public boolean

Returns:

true if the shape is a placeholder
isPlaceholder
()

Checks if the shape is a placeholder.

public void
setFillColor(Color
the solid color fill. The value of null unsets the solid fill attribute from the underlying implementation
color
)

Specifies a solid color fill.

public void
setPlaceholder(Placeholder
the placeholder or null to remove the reference to the placeholder
placeholder
)

Specifies that the corresponding shape should be represented by the generating application as a placeholder.

public void
public void
setStrokeStyle(Object...
the line attributes
styles
)

Sets the line attributes.

Inherited from org.apache.poi.sl.draw.geom.IAdjustableShape:
getAdjustValue
Inherited from org.apache.poi.sl.usermodel.PlaceableShape:
getAnchorgetFlipHorizontalgetFlipVerticalgetParentgetRotationgetSheetsetAnchorsetFlipHorizontalsetFlipVerticalsetRotation
Inherited from org.apache.poi.sl.usermodel.Shape:
drawgetAnchorgetParentgetShapeIdgetShapeNamegetSheet

Method Detail

getFillColorback to summary
public Color getFillColor()

Returns the solid color fill.

Returns:Color

solid fill color of null if not set or fill color is not solid (pattern or gradient)

getFillStyleback to summary
public FillStyle getFillStyle()
getGeometryback to summary
public CustomGeometry getGeometry()
getLineDecorationback to summary
public LineDecoration getLineDecoration()
getPlaceholderback to summary
public Placeholder getPlaceholder()
Returns:Placeholder

the placeholder or null if none is assigned

See Also
setPlaceholder(Placeholder)
getPlaceholderDetailsback to summary
public PlaceholderDetails getPlaceholderDetails()
Returns:PlaceholderDetails

an accessor for placeholder details

Since
POI 4.0.0
getShadowback to summary
public Shadow<S, P> getShadow()
getShapeTypeback to summary
public ShapeType getShapeType()
getStrokeStyleback to summary
public StrokeStyle getStrokeStyle()
isPlaceholderback to summary
public boolean isPlaceholder()

Checks if the shape is a placeholder. (placeholders aren't normal shapes, they are visible only in the Edit Master mode)

Returns:boolean

true if the shape is a placeholder

Since
POI 4.0.0
setFillColorback to summary
public void setFillColor(Color color)

Specifies a solid color fill. The shape is filled entirely with the specified color.

Parameters
color:Color

the solid color fill. The value of null unsets the solid fill attribute from the underlying implementation

setPlaceholderback to summary
public void setPlaceholder(Placeholder placeholder)

Specifies that the corresponding shape should be represented by the generating application as a placeholder. When a shape is considered a placeholder by the generating application it can have special properties to alert the user that they may enter content into the shape.

Parameters
placeholder:Placeholder

the placeholder or null to remove the reference to the placeholder

setShapeTypeback to summary
public void setShapeType(ShapeType type)
setStrokeStyleback to summary
public void setStrokeStyle(Object... styles)

Sets the line attributes. Possible attributes are Double (width), LineCap, LineDash, LineCompound, Color (implementations of PaintStyle aren't yet supported ...) If no styles are given, the line will be hidden

Parameters
styles:Object[]

the line attributes