org.apache.poi.xssf.usermodel
Class XSSFShape
- java.lang.Object
-
- org.apache.poi.xssf.usermodel.XSSFShape
-
- Direct Known Subclasses:
- XSSFConnector, XSSFGraphicFrame, XSSFPicture, XSSFShapeGroup, XSSFSimpleShape
public abstract class XSSFShape extends java.lang.ObjectRepresents a shape in a SpreadsheetML drawing.
-
-
Field Summary
Fields Modifier and Type Field and Description static intEMU_PER_PIXELstatic intEMU_PER_POINTstatic intPIXEL_DPIstatic intPOINT_DPI
-
Constructor Summary
Constructors Constructor and Description XSSFShape()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description XSSFAnchorgetAnchor()XSSFDrawinggetDrawing()Return the drawing that owns this shapeXSSFShapeGroupgetParent()Gets the parent shape.booleanisNoFill()Whether this shape is not filled with a colorvoidsetFillColor(int red, int green, int blue)Sets the color used to fill this shape using the solid fill pattern.voidsetLineStyle(int lineStyle)Sets the line style.voidsetLineStyleColor(int red, int green, int blue)The color applied to the lines of this shape.voidsetLineWidth(double lineWidth)Specifies the width to be used for the underline stroke.voidsetNoFill(boolean noFill)Sets whether this shape is filled or transparent.
-
-
-
Field Detail
-
EMU_PER_PIXEL
public static final int EMU_PER_PIXEL
- See Also:
- Constant Field Values
-
EMU_PER_POINT
public static final int EMU_PER_POINT
- See Also:
- Constant Field Values
-
POINT_DPI
public static final int POINT_DPI
- See Also:
- Constant Field Values
-
PIXEL_DPI
public static final int PIXEL_DPI
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDrawing
public XSSFDrawing getDrawing()
Return the drawing that owns this shape- Returns:
- the parent drawing that owns this shape
-
getParent
public XSSFShapeGroup getParent()
Gets the parent shape.
-
getAnchor
public XSSFAnchor getAnchor()
- Returns:
- the anchor that is used by this shape.
-
isNoFill
public boolean isNoFill()
Whether this shape is not filled with a color- Returns:
- true if this shape is not filled with a color.
-
setNoFill
public void setNoFill(boolean noFill)
Sets whether this shape is filled or transparent.- Parameters:
noFill- if true then no fill will be applied to the shape element.
-
setFillColor
public void setFillColor(int red, int green, int blue)Sets the color used to fill this shape using the solid fill pattern.
-
setLineStyleColor
public void setLineStyleColor(int red, int green, int blue)The color applied to the lines of this shape.
-
setLineWidth
public void setLineWidth(double lineWidth)
Specifies the width to be used for the underline stroke.- Parameters:
lineWidth- width in points
-
setLineStyle
public void setLineStyle(int lineStyle)
Sets the line style.- Parameters:
lineStyle-
-
-
DataMelt 3.0 © DataMelt by jWork.ORG