|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hslf.usermodel.HSLFShape
org.apache.poi.hslf.usermodel.HSLFSimpleShape
public abstract class HSLFSimpleShape
An abstract simple (non-group) shape. This is the parent class for all primitive shapes like Line, Rectangle, etc.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.poi.sl.usermodel.SimpleShape |
---|
SimpleShape.Placeholder |
Field Summary | |
---|---|
protected EscherClientDataRecord |
_clientData
|
protected Record[] |
_clientRecords
Records stored in EscherClientDataRecord |
static double |
DEFAULT_LINE_WIDTH
|
Fields inherited from class org.apache.poi.hslf.usermodel.HSLFShape |
---|
_escherContainer, _fill, _parent, _sheet, logger |
Constructor Summary | |
---|---|
protected |
HSLFSimpleShape(EscherContainerRecord escherRecord,
ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a SimpleShape object and initialize it from the supplied Record container. |
Methods inherited from class org.apache.poi.hslf.usermodel.HSLFShape |
---|
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 |
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.sl.usermodel.SimpleShape |
---|
getFillStyle, getShapeType, isPlaceholder, setShapeType |
Methods inherited from interface org.apache.poi.sl.usermodel.Shape |
---|
getAnchor, getParent, getSheet |
Methods inherited from interface org.apache.poi.sl.usermodel.PlaceableShape |
---|
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, setAnchor, setFlipHorizontal, setFlipVertical, setRotation |
Field Detail |
---|
public static final double DEFAULT_LINE_WIDTH
protected Record[] _clientRecords
protected EscherClientDataRecord _clientData
Constructor Detail |
---|
protected HSLFSimpleShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
escherRecord
- EscherSpContainer
container which holds information about this shapeparent
- the parent of the shapeMethod Detail |
---|
protected EscherContainerRecord createSpContainer(boolean isChild)
createSpContainer
in class HSLFShape
isChild
- true
if the Line is inside a group, false
otherwise
public 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.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 implementationprotected <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. adj1
public 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>
protected void setPlaceholder(SimpleShape.Placeholder placeholder)
public void setStrokeStyle(java.lang.Object... styles)
SimpleShape
setStrokeStyle
in interface SimpleShape<HSLFShape,HSLFTextParagraph>
styles
- the line attributes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |