Package org.apache.poi.ss.usermodel
Interface Shape
-
- All Known Subinterfaces:
ObjectData,Picture,SimpleShape
- All Known Implementing Classes:
HSSFChartShape,HSSFCombobox,HSSFComment,HSSFObjectData,HSSFPicture,HSSFPolygon,HSSFShape,HSSFShapeGroup,HSSFSimpleShape,HSSFTextbox
public interface ShapeCommon interface for all drawing shapes- Since:
- POI 3.16-beta2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChildAnchorgetAnchor()ShapegetParent()StringgetShapeName()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.voidsetLineStyleColor(int red, int green, int blue)The color applied to the lines of this shape.voidsetNoFill(boolean noFill)Sets whether this shape is filled or transparent.
-
-
-
Method Detail
-
getShapeName
String getShapeName()
- Returns:
- the name of this shape
-
getParent
Shape getParent()
- Returns:
- the parent shape.
-
getAnchor
ChildAnchor getAnchor()
- Returns:
- the anchor that is used by this shape.
-
isNoFill
boolean isNoFill()
Whether this shape is not filled with a color- Returns:
- true if this shape is not filled with a color.
-
setNoFill
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
void setFillColor(int red, int green, int blue)Sets the color used to fill this shape using the solid fill pattern.
-
setLineStyleColor
void setLineStyleColor(int red, int green, int blue)The color applied to the lines of this shape.
-
-