Note
Microsoft Excel seems to sometimes disallow higher y1 than y2 or higher x1 than x2 in the anchor, you might need to reverse them and draw shapes vertically or horizontally flipped via setFlipVertical() or setFlipHorizontally().
| Modifier and Type | Field and Description |
|---|---|
| private final EscherContainerRecord | |
| private final ObjRecord | |
| private final EscherOptRecord | |
| private HSSFPatriarch | |
| pack-priv HSSFAnchor | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final boolean | |
| public static final int | |
| public static final int | |
| private HSSFShape |
| Access | Constructor and Description |
|---|---|
| public | |
| public | HSSFShape(HSSFShape parent, HSSFAnchor anchor)
Create a new shape with the specified parent and anchor. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract void | |
| protected abstract void | afterRemove(HSSFPatriarch patriarch)
remove escher container from the patriarch.escherAggregate remove obj, textObj and note records if it's necessary in case of ShapeGroup remove all contained shapes |
| protected abstract HSSFShape | |
| public int | |
| protected abstract ObjRecord | |
| protected abstract EscherContainerRecord | |
| public HSSFAnchor | Returns: the anchor that is used by this shape.Implements org.
|
| protected EscherContainerRecord | |
| public int | |
| public int | |
| public int | |
| public int | |
| protected ObjRecord | |
| public EscherOptRecord | Returns: the low-level EscherOptRecordReturn the low-level EscherOptRecord to read/modify not yet wrapped escher properties |
| public HSSFShape | |
| public HSSFPatriarch | |
| public int | |
| pack-priv int | |
| public String | Returns: the name of this shapeImplements org.
|
| public boolean | |
| public boolean | |
| public boolean | isNoFill()
Implements org. Whether this shape is not filled with a color |
| public void | |
| public void | |
| public void | setFillColor(int red, int green, int blue)
Implements org. Sets the color used to fill this shape using the solid fill pattern. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setLineStyleColor(int red, int green, int blue)
Implements org. The color applied to the lines of this shape. |
| public void | |
| public void | setNoFill(boolean
if true then no fill will be applied to the shape element. noFill)Implements org. Sets whether this shape is filled or transparent. |
| protected void | |
| protected void | |
| protected void | |
| public void | |
| pack-priv void |
| _escherContainer | back to summary |
|---|---|
| private final EscherContainerRecord _escherContainer | |
| _objRecord | back to summary |
|---|---|
| private final ObjRecord _objRecord | |
| _optRecord | back to summary |
|---|---|
| private final EscherOptRecord _optRecord | |
| _patriarch | back to summary |
|---|---|
| private HSSFPatriarch _patriarch | |
| anchor | back to summary |
|---|---|
| pack-priv HSSFAnchor anchor | |
| FILL__FILLCOLOR_DEFAULT | back to summary |
|---|---|
| public static final int FILL__FILLCOLOR_DEFAULT | |
| LINESTYLE__COLOR_DEFAULT | back to summary |
|---|---|
| public static final int LINESTYLE__COLOR_DEFAULT | |
| LINESTYLE_DASHDOTDOTSYS | back to summary |
|---|---|
| public static final int LINESTYLE_DASHDOTDOTSYS | |
| LINESTYLE_DASHDOTGEL | back to summary |
|---|---|
| public static final int LINESTYLE_DASHDOTGEL | |
| LINESTYLE_DASHDOTSYS | back to summary |
|---|---|
| public static final int LINESTYLE_DASHDOTSYS | |
| LINESTYLE_DASHGEL | back to summary |
|---|---|
| public static final int LINESTYLE_DASHGEL | |
| LINESTYLE_DASHSYS | back to summary |
|---|---|
| public static final int LINESTYLE_DASHSYS | |
| LINESTYLE_DEFAULT | back to summary |
|---|---|
| public static final int LINESTYLE_DEFAULT | |
| LINESTYLE_DOTGEL | back to summary |
|---|---|
| public static final int LINESTYLE_DOTGEL | |
| LINESTYLE_DOTSYS | back to summary |
|---|---|
| public static final int LINESTYLE_DOTSYS | |
| LINESTYLE_LONGDASHDOTDOTGEL | back to summary |
|---|---|
| public static final int LINESTYLE_LONGDASHDOTDOTGEL | |
| LINESTYLE_LONGDASHDOTGEL | back to summary |
|---|---|
| public static final int LINESTYLE_LONGDASHDOTGEL | |
| LINESTYLE_LONGDASHGEL | back to summary |
|---|---|
| public static final int LINESTYLE_LONGDASHGEL | |
| LINESTYLE_NONE | back to summary |
|---|---|
| public static final int LINESTYLE_NONE | |
| LINESTYLE_SOLID | back to summary |
|---|---|
| public static final int LINESTYLE_SOLID | |
| LINEWIDTH_DEFAULT | back to summary |
|---|---|
| public static final int LINEWIDTH_DEFAULT | |
| LINEWIDTH_ONE_PT | back to summary |
|---|---|
| public static final int LINEWIDTH_ONE_PT | |
| NO_FILL_DEFAULT | back to summary |
|---|---|
| public static final boolean NO_FILL_DEFAULT | |
| NO_FILLHITTEST_FALSE | back to summary |
|---|---|
| public static final int NO_FILLHITTEST_FALSE | |
| NO_FILLHITTEST_TRUE | back to summary |
|---|---|
| public static final int NO_FILLHITTEST_TRUE | |
| parent | back to summary |
|---|---|
| private HSSFShape parent | |
| HSSFShape | back to summary |
|---|---|
| public HSSFShape(EscherContainerRecord spContainer, ObjRecord objRecord) creates shapes from existing file | |
| HSSFShape | back to summary |
|---|---|
| public HSSFShape(HSSFShape parent, HSSFAnchor anchor) Create a new shape with the specified parent and anchor. | |
| afterInsert | back to summary |
|---|---|
| pack-priv abstract void afterInsert(HSSFPatriarch patriarch) | |
| afterRemove | back to summary |
|---|---|
| protected abstract void afterRemove(HSSFPatriarch patriarch) remove escher container from the patriarch.escherAggregate remove obj, textObj and note records if it's necessary in case of ShapeGroup remove all contained shapes | |
| cloneShape | back to summary |
|---|---|
| protected abstract HSSFShape cloneShape() | |
| countOfAllChildren | back to summary |
|---|---|
| public int countOfAllChildren() Count of all children and their children's children. | |
| createObjRecord | back to summary |
|---|---|
| protected abstract ObjRecord createObjRecord() | |
| createSpContainer | back to summary |
|---|---|
| protected abstract EscherContainerRecord createSpContainer() | |
| getAnchor | back to summary |
|---|---|
| public HSSFAnchor getAnchor() Implements org.
| |
| getEscherContainer | back to summary |
|---|---|
| protected EscherContainerRecord getEscherContainer() | |
| getFillColor | back to summary |
|---|---|
| public int getFillColor() The color used to fill this shape. | |
| getLineStyle | back to summary |
|---|---|
public int getLineStyle()
| |
| getLineStyleColor | back to summary |
|---|---|
| public int getLineStyleColor() The color applied to the lines of this shape. | |
| getLineWidth | back to summary |
|---|---|
public int getLineWidth()
| |
| getObjRecord | back to summary |
|---|---|
| protected ObjRecord getObjRecord() | |
| getOptRecord | back to summary |
|---|---|
| public EscherOptRecord getOptRecord() Return the low-level EscherOptRecord to read/modify not yet wrapped escher properties
| |
| getParent | back to summary |
|---|---|
| public HSSFShape getParent() Implements org.
| |
| getPatriarch | back to summary |
|---|---|
| public HSSFPatriarch getPatriarch() | |
| getRotationDegree | back to summary |
|---|---|
public int getRotationDegree()
| |
| getShapeId | back to summary |
|---|---|
pack-priv int getShapeId()
| |
| getShapeName | back to summary |
|---|---|
| public String getShapeName() Implements org. | |
| isFlipHorizontal | back to summary |
|---|---|
public boolean isFlipHorizontal()
| |
| isFlipVertical | back to summary |
|---|---|
public boolean isFlipVertical()
| |
| isNoFill | back to summary |
|---|---|
| public boolean isNoFill() Implements org. Doc from org. Whether this shape is not filled with a color
| |
| setAnchor | back to summary |
|---|---|
| public void setAnchor(HSSFAnchor anchor) Sets a particular anchor. A top-level shape must have an anchor of HSSFClientAnchor. A child anchor must have an anchor of HSSFChildAnchor
| |
| setFillColor | back to summary |
|---|---|
| public void setFillColor(int fillColor) The color used to fill this shape. | |
| setFillColor | back to summary |
|---|---|
| public void setFillColor(int red, int green, int blue) Implements org. Doc from org. Sets the color used to fill this shape using the solid fill pattern.
| |
| setFlipHorizontal | back to summary |
|---|---|
public void setFlipHorizontal(boolean value)
| |
| setFlipVertical | back to summary |
|---|---|
public void setFlipVertical(boolean value)
| |
| setLineStyle | back to summary |
|---|---|
| public void setLineStyle(int lineStyle) Sets the line style.
| |
| setLineStyleColor | back to summary |
|---|---|
| public void setLineStyleColor(int lineStyleColor) The color applied to the lines of this shape. | |
| setLineStyleColor | back to summary |
|---|---|
| public void setLineStyleColor(int red, int green, int blue) Implements org. Doc from org. The color applied to the lines of this shape.
| |
| setLineWidth | back to summary |
|---|---|
| public void setLineWidth(int lineWidth) Sets the width of the line. 12700 = 1 pt.
| |
| setNoFill | back to summary |
|---|---|
| public void setNoFill(boolean noFill) Implements org. Doc from org. Sets whether this shape is filled or transparent.
| |
| setParent | back to summary |
|---|---|
| protected void setParent(HSSFShape parent) | |
| setPatriarch | back to summary |
|---|---|
| protected void setPatriarch(HSSFPatriarch _patriarch) | |
| setPropertyValue | back to summary |
|---|---|
| protected void setPropertyValue(EscherProperty property) | |
| setRotationDegree | back to summary |
|---|---|
| public void setRotationDegree(short value) specifies the rotation, in degrees, that is applied to a shape. Positive values specify rotation in the clockwise direction. Negative values specify rotation in the counterclockwise direction. Rotation occurs around the center of the shape. The default value for this property is 0x00000000 | |
| setShapeId | back to summary |
|---|---|
pack-priv void setShapeId(int shapeId)
| |