public abstract class HSLFSimpleShape extends HSLFShape implements SimpleShape<HSLFShape,HSLFTextParagraph>
Modifier and Type | Field and Description |
---|---|
protected EscherClientDataRecord |
_clientData |
protected Record[] |
_clientRecords
Records stored in EscherClientDataRecord
|
static double |
DEFAULT_LINE_WIDTH |
Modifier | Constructor and Description |
---|---|
protected |
HSLFSimpleShape(EscherContainerRecord escherRecord,
ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a SimpleShape object and initialize it from the supplied Record container.
|
Modifier and Type | Method and Description |
---|---|
protected EscherContainerRecord |
createSpContainer(boolean isChild)
Create a new Shape
|
Guide |
getAdjustValue(java.lang.String name) |
protected <T extends Record> |
getClientDataRecord(int recordType)
Find a record in the underlying EscherClientDataRecord
|
protected Record[] |
getClientRecords()
Search for EscherClientDataRecord, if found, convert its contents into an array of HSLF records
|
java.awt.Color |
getFillColor()
The color used to fill this shape.
|
CustomGeometry |
getGeometry() |
java.awt.Color |
getLineColor() |
StrokeStyle.LineCompound |
getLineCompound()
Gets the line compound style
|
StrokeStyle.LineDash |
getLineDashing()
Gets line dashing.
|
LineDecoration |
getLineDecoration() |
double |
getLineWidth()
Returns width of the line in in points
|
Shadow<HSLFShape,HSLFTextParagraph> |
getShadow() |
double |
getShadowAngle() |
java.awt.Color |
getShadowColor() |
double |
getShadowDistance() |
StrokeStyle |
getStrokeStyle()
Returns line style.
|
void |
setFillColor(java.awt.Color color)
The color used to fill this shape.
|
void |
setHyperlink(HSLFHyperlink link) |
void |
setLineColor(java.awt.Color color)
Sets the color of line
|
void |
setLineCompound(StrokeStyle.LineCompound style)
Sets the line compound style
|
void |
setLineDashing(StrokeStyle.LineDash pen)
Sets line dashing.
|
void |
setLineWidth(double width)
Sets the width of line in in points
|
protected void |
updateClientData() |
afterInsert, draw, getAnchor, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getHyperlink, getParent, getRotation, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, isPlaceholder, moveTo, setAnchor, setEscherProperty, setEscherProperty, setFlipHorizontal, setFlipVertical, setRotation, setShapeId, setShapeType, setSheet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFillStyle, getShapeType, isPlaceholder
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, setAnchor, setFlipHorizontal, setFlipVertical, setRotation
public static final double DEFAULT_LINE_WIDTH
protected Record[] _clientRecords
protected EscherClientDataRecord _clientData
protected HSLFSimpleShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
escherRecord
- EscherSpContainer
container which holds information about this shapeparent
- the parent of the shapeprotected EscherContainerRecord createSpContainer(boolean isChild)
createSpContainer
in class HSLFShape
isChild
- true
if the Line is inside a group, false
otherwisepublic double getLineWidth()
public void setLineWidth(double width)
width
- the width of line in in pointspublic void setLineColor(java.awt.Color color)
color
- new color of the linepublic java.awt.Color getLineColor()
java.awt.Color.black
public StrokeStyle.LineDash getLineDashing()
public void setLineDashing(StrokeStyle.LineDash pen)
pen
- new style of the line.public StrokeStyle.LineCompound getLineCompound()
public void setLineCompound(StrokeStyle.LineCompound style)
style
- new compound style of the line.public StrokeStyle getStrokeStyle()
getStrokeStyle
in interface SimpleShape<HSLFShape,HSLFTextParagraph>
public java.awt.Color getFillColor()
public void setFillColor(java.awt.Color color)
color
- the background colorprotected <T extends Record> T getClientDataRecord(int recordType)
recordType
- type of the record to searchprotected Record[] getClientRecords()
null
protected void updateClientData()
public void setHyperlink(HSLFHyperlink link)
public Guide getAdjustValue(java.lang.String name)
getAdjustValue
in interface IAdjustableShape
name
- name of a adjust value, e.g. adj1public CustomGeometry getGeometry()
getGeometry
in interface SimpleShape<HSLFShape,HSLFTextParagraph>
public double getShadowAngle()
public double getShadowDistance()
public java.awt.Color getShadowColor()
java.awt.Color.black
public Shadow<HSLFShape,HSLFTextParagraph> getShadow()
getShadow
in interface SimpleShape<HSLFShape,HSLFTextParagraph>
public LineDecoration getLineDecoration()
getLineDecoration
in interface SimpleShape<HSLFShape,HSLFTextParagraph>
Copyright 2016 The Apache Software Foundation or its licensors, as applicable.