public abstract class HSLFSimpleShape extends HSLFShape implements SimpleShape<HSLFShape,HSLFTextParagraph>
Modifier and Type | Field and Description |
---|---|
protected HSLFHyperlink |
_hyperlink
Hyperlink
|
protected static EscherPropertyTypes[] |
ADJUST_VALUES |
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.
|
afterInsert, draw, getAnchor, getClientData, getClientDataRecord, getClientRecords, getEscherChild, getEscherChild, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getParent, getRotation, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setEscherProperty, setEscherProperty, setEscherProperty, setFlipHorizontal, setFlipVertical, setRotation, setShapeId, setShapeType, setSheet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFillStyle, getShapeType, setShapeType
draw, getAnchor, getParent, getShapeId, getShapeName, getSheet
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotation
public static final double DEFAULT_LINE_WIDTH
protected static final EscherPropertyTypes[] ADJUST_VALUES
protected HSLFHyperlink _hyperlink
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()
null
public java.awt.Color getLineBackgroundColor()
null
public void setLineBackgroundColor(java.awt.Color color)
color
- new background color of the linepublic StrokeStyle.LineCap getLineCap()
public void setLineCap(StrokeStyle.LineCap pen)
pen
- new style of the line.public StrokeStyle.LineDash getLineDash()
public void setLineDash(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()
SimpleShape
getFillColor
in interface SimpleShape<HSLFShape,HSLFTextParagraph>
public void setFillColor(java.awt.Color color)
SimpleShape
setFillColor
in interface SimpleShape<HSLFShape,HSLFTextParagraph>
color
- the solid color fill. The value of null
unsets
the solid fill attribute from the underlying implementationpublic 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.DecorationShape getLineHeadDecoration()
public void setLineHeadDecoration(LineDecoration.DecorationShape decoShape)
public LineDecoration.DecorationSize getLineHeadWidth()
public void setLineHeadWidth(LineDecoration.DecorationSize decoSize)
public LineDecoration.DecorationSize getLineHeadLength()
public void setLineHeadLength(LineDecoration.DecorationSize decoSize)
public LineDecoration.DecorationShape getLineTailDecoration()
public void setLineTailDecoration(LineDecoration.DecorationShape decoShape)
public LineDecoration.DecorationSize getLineTailWidth()
public void setLineTailWidth(LineDecoration.DecorationSize decoSize)
public LineDecoration.DecorationSize getLineTailLength()
public void setLineTailLength(LineDecoration.DecorationSize decoSize)
public LineDecoration getLineDecoration()
getLineDecoration
in interface SimpleShape<HSLFShape,HSLFTextParagraph>
public HSLFShapePlaceholderDetails getPlaceholderDetails()
getPlaceholderDetails
in interface SimpleShape<HSLFShape,HSLFTextParagraph>
public Placeholder getPlaceholder()
getPlaceholder
in interface SimpleShape<HSLFShape,HSLFTextParagraph>
SimpleShape.setPlaceholder(Placeholder)
public void setPlaceholder(Placeholder placeholder)
SimpleShape
setPlaceholder
in interface SimpleShape<HSLFShape,HSLFTextParagraph>
placeholder
- the placeholder or null to remove the reference to the placeholderpublic void setStrokeStyle(java.lang.Object... styles)
SimpleShape
setStrokeStyle
in interface SimpleShape<HSLFShape,HSLFTextParagraph>
styles
- the line attributespublic HSLFHyperlink getHyperlink()
SimpleShape
getHyperlink
in interface SimpleShape<HSLFShape,HSLFTextParagraph>
null
if not found.public HSLFHyperlink createHyperlink()
SimpleShape
createHyperlink
in interface SimpleShape<HSLFShape,HSLFTextParagraph>
protected void setHyperlink(HSLFHyperlink link)
link
- the hyperlinkpublic boolean isPlaceholder()
SimpleShape
isPlaceholder
in interface SimpleShape<HSLFShape,HSLFTextParagraph>
isPlaceholder
in class HSLFShape
true
if the shape is a placeholderCopyright 2021 The Apache Software Foundation or its licensors, as applicable.