|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.xssf.usermodel.XSSFShape
public abstract class XSSFShape
Represents a shape in a SpreadsheetML drawing.
Field Summary | |
---|---|
protected XSSFAnchor |
anchor
anchor that is used by this shape |
protected XSSFDrawing |
drawing
Parent drawing |
static int |
EMU_PER_PIXEL
Deprecated. POI 3.17 beta 1 |
static int |
EMU_PER_POINT
Deprecated. POI 3.17 beta 1 |
protected XSSFShapeGroup |
parent
The parent shape, always not-null for shapes in groups |
static int |
PIXEL_DPI
Deprecated. POI 3.17 beta 1 |
static int |
POINT_DPI
Deprecated. POI 3.17 beta 1 |
Constructor Summary | |
---|---|
XSSFShape()
|
Method Summary | |
---|---|
XSSFAnchor |
getAnchor()
|
XSSFDrawing |
getDrawing()
Return the drawing that owns this shape |
XSSFShapeGroup |
getParent()
|
protected abstract org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties |
getShapeProperties()
Returns xml bean with shape properties. |
boolean |
isNoFill()
Whether this shape is not filled with a color |
void |
setFillColor(int red,
int green,
int blue)
Sets the color used to fill this shape using the solid fill pattern. |
void |
setLineStyle(int lineStyle)
Sets the line style. |
void |
setLineStyleColor(int red,
int green,
int blue)
The color applied to the lines of this shape. |
void |
setLineWidth(double lineWidth)
Specifies the width to be used for the underline stroke. |
void |
setNoFill(boolean noFill)
Sets whether this shape is filled or transparent. |
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.ss.usermodel.Shape |
---|
getShapeName |
Field Detail |
---|
@Removal(version="3.19") public static final int EMU_PER_PIXEL
Units.EMU_PER_PIXEL
,
Constant Field Values@Removal(version="3.19") public static final int EMU_PER_POINT
Units.EMU_PER_POINT
,
Constant Field Values@Removal(version="3.19") public static final int POINT_DPI
Units.POINT_DPI
,
Constant Field Values@Removal(version="3.19") public static final int PIXEL_DPI
Units.PIXEL_DPI
,
Constant Field Valuesprotected XSSFDrawing drawing
protected XSSFShapeGroup parent
protected XSSFAnchor anchor
Constructor Detail |
---|
public XSSFShape()
Method Detail |
---|
public XSSFDrawing getDrawing()
public XSSFShapeGroup getParent()
getParent
in interface Shape
public XSSFAnchor getAnchor()
getAnchor
in interface Shape
protected abstract org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties getShapeProperties()
public boolean isNoFill()
Shape
isNoFill
in interface Shape
public void setNoFill(boolean noFill)
Shape
setNoFill
in interface Shape
noFill
- if true then no fill will be applied to the shape element.public void setFillColor(int red, int green, int blue)
Shape
setFillColor
in interface Shape
public void setLineStyleColor(int red, int green, int blue)
Shape
setLineStyleColor
in interface Shape
public void setLineWidth(double lineWidth)
lineWidth
- width in pointspublic void setLineStyle(int lineStyle)
lineStyle
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |