Package org.apache.poi.xslf.usermodel
Class XSLFSimpleShape
java.lang.Object
org.apache.poi.xslf.usermodel.XSLFShape
org.apache.poi.xslf.usermodel.XSLFSimpleShape
- All Implemented Interfaces:
IAdjustableShape,PlaceableShape<XSLFShape,,XSLFTextParagraph> Shape<XSLFShape,,XSLFTextParagraph> SimpleShape<XSLFShape,XSLFTextParagraph>
- Direct Known Subclasses:
XSLFBackground,XSLFConnectorShape,XSLFPictureShape,XSLFTextShape
@Beta
public abstract class XSLFSimpleShape
extends XSLFShape
implements SimpleShape<XSLFShape,XSLFTextParagraph>
Represents a single (non-group) shape in a .pptx slide show
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.poi.xslf.usermodel.XSLFShape
XSLFShape.ReparseFactory<T extends XmlObject> -
Method Summary
Modifier and TypeMethodDescriptiongetAdjustValue(String name) fetch shape fill as a java.awt.Paintbooleanbooleanprotected PaintStyledoubledoubleprotected org.openxmlformats.schemas.drawingml.x2006.main.CTTransform2DgetXfrm(boolean create) voidsetAnchor(Rectangle2D anchor) voidsetFillColor(Color color) voidsetFlipHorizontal(boolean flip) voidsetFlipVertical(boolean flip) voidvoidsetLineColor(Color color) voidsetLineCompound(StrokeStyle.LineCompound compound) voidvoidSpecifies the line end decoration, such as a triangle or arrowhead.voidSpecifies the line end width in relation to the line width.voidspecifies decoration width of the head of a line.voidSpecifies the line end decoration, such as a triangle or arrowhead.voidSpecifies the line end width in relation to the line width.voidspecifies decorations which can be added to the tail of a line.voidsetLineWidth(double width) voidsetRotation(double theta) voidsetShapeType(ShapeType type) voidsetStrokeStyle(Object... styles) Methods inherited from class org.apache.poi.xslf.usermodel.XSLFShape
draw, fetchShapeProperty, getBgPr, getBgRef, getChild, getCNvPr, getFillPaint, getGrpSpPr, getParent, getPlaceholder, getPlaceholderDetails, getShapeId, getShapeName, getShapeProperties, getSheet, getSpStyle, getXmlObject, isPlaceholder, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, setParent, setPlaceholderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.sl.usermodel.PlaceableShape
getParent, getSheetMethods inherited from interface org.apache.poi.sl.usermodel.Shape
draw, getParent, getShapeId, getShapeName, getSheetMethods inherited from interface org.apache.poi.sl.usermodel.SimpleShape
getPlaceholder, getPlaceholderDetails, isPlaceholder, setPlaceholder
-
Method Details
-
setShapeType
- Specified by:
setShapeTypein interfaceSimpleShape<XSLFShape,XSLFTextParagraph>
-
getShapeType
- Specified by:
getShapeTypein interfaceSimpleShape<XSLFShape,XSLFTextParagraph>
-
getXfrm
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTransform2D getXfrm(boolean create) -
getAnchor
- Specified by:
getAnchorin interfacePlaceableShape<XSLFShape,XSLFTextParagraph> - Specified by:
getAnchorin interfaceShape<XSLFShape,XSLFTextParagraph>
-
setAnchor
- Specified by:
setAnchorin interfacePlaceableShape<XSLFShape,XSLFTextParagraph>
-
setRotation
public void setRotation(double theta) - Specified by:
setRotationin interfacePlaceableShape<XSLFShape,XSLFTextParagraph>
-
getRotation
public double getRotation()- Specified by:
getRotationin interfacePlaceableShape<XSLFShape,XSLFTextParagraph>
-
setFlipHorizontal
public void setFlipHorizontal(boolean flip) - Specified by:
setFlipHorizontalin interfacePlaceableShape<XSLFShape,XSLFTextParagraph>
-
setFlipVertical
public void setFlipVertical(boolean flip) - Specified by:
setFlipVerticalin interfacePlaceableShape<XSLFShape,XSLFTextParagraph>
-
getFlipHorizontal
public boolean getFlipHorizontal()- Specified by:
getFlipHorizontalin interfacePlaceableShape<XSLFShape,XSLFTextParagraph>
-
getFlipVertical
public boolean getFlipVertical()- Specified by:
getFlipVerticalin interfacePlaceableShape<XSLFShape,XSLFTextParagraph>
-
setLineColor
- Parameters:
color- the color to paint the shape outline. Anullvalue turns off the shape outline.
-
getLineColor
- Returns:
- the color of the shape outline or
nullif outline is turned off
-
getLinePaint
-
setLineWidth
public void setLineWidth(double width) - Parameters:
width- line width in points.0means no line
-
getLineWidth
public double getLineWidth()- Returns:
- line width in points.
0means no line.
-
setLineCompound
- Parameters:
compound- set the line compound style
-
getLineCompound
- Returns:
- the line compound
-
setLineDash
- Parameters:
dash- a preset line dashing scheme to stroke thr shape outline
-
getLineDash
- Returns:
- a preset line dashing scheme to stroke the shape outline
-
setLineCap
- Parameters:
cap- the line end cap style
-
getLineCap
- Returns:
- the line end cap style
-
setFillColor
- Specified by:
setFillColorin interfaceSimpleShape<XSLFShape,XSLFTextParagraph>
-
getFillColor
- Specified by:
getFillColorin interfaceSimpleShape<XSLFShape,XSLFTextParagraph>
-
getShadow
- Specified by:
getShadowin interfaceSimpleShape<XSLFShape,XSLFTextParagraph> - Returns:
- shadow of this shape or null if shadow is disabled
-
getGeometry
- Specified by:
getGeometryin interfaceSimpleShape<XSLFShape,XSLFTextParagraph> - Returns:
- definition of the shape geometry
-
setLineHeadDecoration
Specifies the line end decoration, such as a triangle or arrowhead.- Parameters:
style- the line end decoration style
-
getLineHeadDecoration
- Returns:
- the line end decoration shape
-
setLineHeadWidth
specifies decoration width of the head of a line.- Parameters:
style- the decoration width
-
getLineHeadWidth
- Returns:
- the line end decoration width
-
setLineHeadLength
Specifies the line end width in relation to the line width. -
getLineHeadLength
- Returns:
- the line end decoration length
-
setLineTailDecoration
Specifies the line end decoration, such as a triangle or arrowhead. -
getLineTailDecoration
- Returns:
- the line end decoration shape
-
setLineTailWidth
specifies decorations which can be added to the tail of a line. -
getLineTailWidth
- Returns:
- the line end decoration width
-
setLineTailLength
Specifies the line end width in relation to the line width. -
getLineTailLength
- Returns:
- the line end decoration length
-
getAdjustValue
- Specified by:
getAdjustValuein interfaceIAdjustableShape
-
getLineDecoration
- Specified by:
getLineDecorationin interfaceSimpleShape<XSLFShape,XSLFTextParagraph>
-
getFillStyle
fetch shape fill as a java.awt.Paint- Specified by:
getFillStylein interfaceSimpleShape<XSLFShape,XSLFTextParagraph> - Returns:
- either Color or GradientPaint or TexturePaint or null
-
getStrokeStyle
- Specified by:
getStrokeStylein interfaceSimpleShape<XSLFShape,XSLFTextParagraph>
-
setStrokeStyle
- Specified by:
setStrokeStylein interfaceSimpleShape<XSLFShape,XSLFTextParagraph>
-
getHyperlink
- Specified by:
getHyperlinkin interfaceSimpleShape<XSLFShape,XSLFTextParagraph>
-
createHyperlink
- Specified by:
createHyperlinkin interfaceSimpleShape<XSLFShape,XSLFTextParagraph>
-