|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.xslf.usermodel.XSLFShape
org.apache.poi.xslf.usermodel.XSLFSimpleShape
@Beta public abstract class XSLFSimpleShape
Represents a single (non-group) shape in a .pptx slide show
| Field Summary |
|---|
| Fields inherited from class org.apache.poi.xslf.usermodel.XSLFShape |
|---|
PML_NS |
| Method Summary | |
|---|---|
XSLFHyperlink |
createHyperlink()
Creates a hyperlink and asigns it to this shape. |
Guide |
getAdjustValue(java.lang.String name)
|
java.awt.geom.Rectangle2D |
getAnchor()
Returns the anchor (the bounding box rectangle) of this shape. |
java.awt.Color |
getFillColor()
Returns the solid color fill. |
FillStyle |
getFillStyle()
fetch shape fill as a java.awt.Paint |
boolean |
getFlipHorizontal()
Whether the shape is horizontally flipped |
boolean |
getFlipVertical()
Whether the shape is vertically flipped |
CustomGeometry |
getGeometry()
|
XSLFHyperlink |
getHyperlink()
Returns the hyperlink assigned to this shape |
StrokeStyle.LineCap |
getLineCap()
|
java.awt.Color |
getLineColor()
|
StrokeStyle.LineCompound |
getLineCompound()
|
StrokeStyle.LineDash |
getLineDash()
|
LineDecoration |
getLineDecoration()
|
LineDecoration.DecorationShape |
getLineHeadDecoration()
|
LineDecoration.DecorationSize |
getLineHeadLength()
|
LineDecoration.DecorationSize |
getLineHeadWidth()
|
protected PaintStyle |
getLinePaint()
|
LineDecoration.DecorationShape |
getLineTailDecoration()
|
LineDecoration.DecorationSize |
getLineTailLength()
|
LineDecoration.DecorationSize |
getLineTailWidth()
|
double |
getLineWidth()
|
double |
getRotation()
Rotation angle in degrees |
XSLFShadow |
getShadow()
|
ShapeType |
getShapeType()
|
StrokeStyle |
getStrokeStyle()
|
protected org.openxmlformats.schemas.drawingml.x2006.main.CTTransform2D |
getXfrm(boolean create)
|
boolean |
isPlaceholder()
|
void |
setAnchor(java.awt.geom.Rectangle2D anchor)
|
void |
setFillColor(java.awt.Color color)
Specifies a solid color fill. |
void |
setFlipHorizontal(boolean flip)
|
void |
setFlipVertical(boolean flip)
Whether the shape is vertically flipped |
void |
setLineCap(StrokeStyle.LineCap cap)
|
void |
setLineColor(java.awt.Color color)
|
void |
setLineCompound(StrokeStyle.LineCompound compound)
|
void |
setLineDash(StrokeStyle.LineDash dash)
|
void |
setLineHeadDecoration(LineDecoration.DecorationShape style)
Specifies the line end decoration, such as a triangle or arrowhead. |
void |
setLineHeadLength(LineDecoration.DecorationSize style)
Specifies the line end width in relation to the line width. |
void |
setLineHeadWidth(LineDecoration.DecorationSize style)
specifies decoration width of the head of a line. |
void |
setLineTailDecoration(LineDecoration.DecorationShape style)
Specifies the line end decoration, such as a triangle or arrowhead. |
void |
setLineTailLength(LineDecoration.DecorationSize style)
Specifies the line end width in relation to the line width. |
void |
setLineTailWidth(LineDecoration.DecorationSize style)
specifies decorations which can be added to the tail of a line. |
void |
setLineWidth(double width)
|
void |
setPlaceholder(Placeholder placeholder)
Specifies that the corresponding shape should be represented by the generating application as a placeholder. |
void |
setRotation(double theta)
Rotate this shape. |
void |
setShapeType(ShapeType type)
|
void |
setStrokeStyle(java.lang.Object... styles)
Sets the line attributes. |
| Methods inherited from class org.apache.poi.xslf.usermodel.XSLFShape |
|---|
draw, fetchShapeProperty, getBgPr, getBgRef, getChild, getCNvPr, getCTPlaceholder, getFillPaint, getGrpSpPr, getParent, getPlaceholder, getShapeId, getShapeName, getShapeProperties, getSheet, getSpStyle, getXmlObject, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.poi.sl.usermodel.SimpleShape |
|---|
getPlaceholder |
| Methods inherited from interface org.apache.poi.sl.usermodel.Shape |
|---|
draw, getParent, getSheet |
| Methods inherited from interface org.apache.poi.sl.usermodel.PlaceableShape |
|---|
getParent, getSheet |
| Method Detail |
|---|
public void setShapeType(ShapeType type)
setShapeType in interface SimpleShape<XSLFShape,XSLFTextParagraph>public ShapeType getShapeType()
getShapeType in interface SimpleShape<XSLFShape,XSLFTextParagraph>protected org.openxmlformats.schemas.drawingml.x2006.main.CTTransform2D getXfrm(boolean create)
public java.awt.geom.Rectangle2D getAnchor()
Shape
getAnchor in interface PlaceableShape<XSLFShape,XSLFTextParagraph>getAnchor in interface Shape<XSLFShape,XSLFTextParagraph>public void setAnchor(java.awt.geom.Rectangle2D anchor)
setAnchor in interface PlaceableShape<XSLFShape,XSLFTextParagraph>anchor - the position of this shape within the drawing canvas.
The coordinates are expressed in pointspublic void setRotation(double theta)
PlaceableShapePositive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).
setRotation in interface PlaceableShape<XSLFShape,XSLFTextParagraph>theta - the rotation angle in degrees.public double getRotation()
PlaceableShapePositive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).
getRotation in interface PlaceableShape<XSLFShape,XSLFTextParagraph>public void setFlipHorizontal(boolean flip)
setFlipHorizontal in interface PlaceableShape<XSLFShape,XSLFTextParagraph>flip - whether the shape is horizontally flippedpublic void setFlipVertical(boolean flip)
PlaceableShape
setFlipVertical in interface PlaceableShape<XSLFShape,XSLFTextParagraph>flip - whether the shape is vertically flippedpublic boolean getFlipHorizontal()
PlaceableShape
getFlipHorizontal in interface PlaceableShape<XSLFShape,XSLFTextParagraph>public boolean getFlipVertical()
PlaceableShape
getFlipVertical in interface PlaceableShape<XSLFShape,XSLFTextParagraph>public void setLineColor(java.awt.Color color)
color - the color to paint the shape outline.
A null value turns off the shape outline.public java.awt.Color getLineColor()
null
if outline is turned offprotected PaintStyle getLinePaint()
public void setLineWidth(double width)
width - line width in points. 0 means no linepublic double getLineWidth()
0 means no line.public void setLineCompound(StrokeStyle.LineCompound compound)
compound - set the line compound stylepublic StrokeStyle.LineCompound getLineCompound()
public void setLineDash(StrokeStyle.LineDash dash)
dash - a preset line dashing scheme to stroke thr shape outlinepublic StrokeStyle.LineDash getLineDash()
public void setLineCap(StrokeStyle.LineCap cap)
cap - the line end cap stylepublic StrokeStyle.LineCap getLineCap()
public void setFillColor(java.awt.Color color)
SimpleShape
setFillColor in interface SimpleShape<XSLFShape,XSLFTextParagraph>color - the solid color fill. The value of null unsets
the solid fill attribute from the underlying implementationpublic java.awt.Color getFillColor()
SimpleShape
getFillColor in interface SimpleShape<XSLFShape,XSLFTextParagraph>public XSLFShadow getShadow()
getShadow in interface SimpleShape<XSLFShape,XSLFTextParagraph>public CustomGeometry getGeometry()
getGeometry in interface SimpleShape<XSLFShape,XSLFTextParagraph>public void setLineHeadDecoration(LineDecoration.DecorationShape style)
style - the line end docoration stylepublic LineDecoration.DecorationShape getLineHeadDecoration()
public void setLineHeadWidth(LineDecoration.DecorationSize style)
style - the decoration widthpublic LineDecoration.DecorationSize getLineHeadWidth()
public void setLineHeadLength(LineDecoration.DecorationSize style)
public LineDecoration.DecorationSize getLineHeadLength()
public void setLineTailDecoration(LineDecoration.DecorationShape style)
public LineDecoration.DecorationShape getLineTailDecoration()
public void setLineTailWidth(LineDecoration.DecorationSize style)
public LineDecoration.DecorationSize getLineTailWidth()
public void setLineTailLength(LineDecoration.DecorationSize style)
public LineDecoration.DecorationSize getLineTailLength()
public boolean isPlaceholder()
public Guide getAdjustValue(java.lang.String name)
getAdjustValue in interface IAdjustableShapename - name of a adjust value, e.g. adj1
public LineDecoration getLineDecoration()
getLineDecoration in interface SimpleShape<XSLFShape,XSLFTextParagraph>public FillStyle getFillStyle()
getFillStyle in interface SimpleShape<XSLFShape,XSLFTextParagraph>public StrokeStyle getStrokeStyle()
getStrokeStyle in interface SimpleShape<XSLFShape,XSLFTextParagraph>public void setStrokeStyle(java.lang.Object... styles)
SimpleShape
setStrokeStyle in interface SimpleShape<XSLFShape,XSLFTextParagraph>styles - the line attributespublic void setPlaceholder(Placeholder placeholder)
XSLFShape
setPlaceholder in interface SimpleShape<XSLFShape,XSLFTextParagraph>setPlaceholder in class XSLFShapeplaceholder - The shape to use as placeholder or null if no placeholder should be set.public XSLFHyperlink getHyperlink()
SimpleShape
getHyperlink in interface SimpleShape<XSLFShape,XSLFTextParagraph>null if not found.public XSLFHyperlink createHyperlink()
SimpleShape
createHyperlink in interface SimpleShape<XSLFShape,XSLFTextParagraph>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||