org.apache.poi.sl.usermodel
Interface SimpleShape<S extends Shape<S,P>,P extends TextParagraph<S,P,?>>

All Superinterfaces:
IAdjustableShape, PlaceableShape<S,P>, Shape<S,P>
All Known Subinterfaces:
AutoShape<S,P>, ConnectorShape<S,P>, FreeformShape<S,P>, Line<S,P>, PictureShape<S,P>, TableCell<S,P>, TextBox<S,P>, TextShape<S,P>
All Known Implementing Classes:
ActiveXShape, HSLFAutoShape, HSLFConnectorShape, HSLFFreeformShape, HSLFLine, HSLFPictureShape, HSLFPlaceholder, HSLFSimpleShape, HSLFTableCell, HSLFTextBox, HSLFTextShape, MovieShape, OLEShape, Polygon, XSLFAutoShape, XSLFBackground, XSLFConnectorShape, XSLFFreeformShape, XSLFPictureShape, XSLFSimpleShape, XSLFTableCell, XSLFTextBox, XSLFTextShape

public interface SimpleShape<S extends Shape<S,P>,P extends TextParagraph<S,P,?>>
extends Shape<S,P>, IAdjustableShape, PlaceableShape<S,P>


Nested Class Summary
static class SimpleShape.Placeholder
           
 
Method Summary
 java.awt.Color getFillColor()
          Returns the solid color fill.
 FillStyle getFillStyle()
           
 CustomGeometry getGeometry()
           
 LineDecoration getLineDecoration()
           
 Shadow<S,P> getShadow()
           
 ShapeType getShapeType()
           
 StrokeStyle getStrokeStyle()
           
 boolean isPlaceholder()
           
 void setFillColor(java.awt.Color color)
          Specifies a solid color fill.
 void setShapeType(ShapeType type)
           
 void setStrokeStyle(java.lang.Object... styles)
          Sets the line attributes.
 
Methods inherited from interface org.apache.poi.sl.usermodel.Shape
getAnchor, getParent, getSheet
 
Methods inherited from interface org.apache.poi.sl.draw.geom.IAdjustableShape
getAdjustValue
 
Methods inherited from interface org.apache.poi.sl.usermodel.PlaceableShape
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, setAnchor, setFlipHorizontal, setFlipVertical, setRotation
 

Method Detail

getFillStyle

FillStyle getFillStyle()

getLineDecoration

LineDecoration getLineDecoration()

getStrokeStyle

StrokeStyle getStrokeStyle()

setStrokeStyle

void setStrokeStyle(java.lang.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 - the line attributes

getGeometry

CustomGeometry getGeometry()

getShapeType

ShapeType getShapeType()

setShapeType

void setShapeType(ShapeType type)

isPlaceholder

boolean isPlaceholder()

getShadow

Shadow<S,P> getShadow()

getFillColor

java.awt.Color getFillColor()
Returns the solid color fill.

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

setFillColor

void setFillColor(java.awt.Color color)
Specifies a solid color fill. The shape is filled entirely with the specified color.

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


Copyright 2015 The Apache Software Foundation or its licensors, as applicable.