| java.lang.Object org.apache.poi.hslf.model.Shape org.apache.poi.hslf.model.SimpleShape
All known Subclasses: org.apache.poi.hslf.model.Picture, org.apache.poi.hslf.model.Line, org.apache.poi.hslf.model.TextBox, org.apache.poi.hslf.model.AutoShape,
SimpleShape | public class SimpleShape extends Shape (Code) | | An abstract simple (non-group) shape.
This is the parent class for all primitive shapes like Line, Rectangle, etc.
author: Yegor Kozlov |
SimpleShape | protected SimpleShape(EscherContainerRecord escherRecord, Shape parent)(Code) | | Create a SimpleShape object and initialize it from the supplied Record container.
Parameters: escherRecord - EscherSpContainer container which holds information about this shape Parameters: parent - the parent of the shape |
createSpContainer | protected EscherContainerRecord createSpContainer(boolean isChild)(Code) | | Create a new Shape
Parameters: isChild - true if the Line is inside a group, false otherwise the record container which holds this shape |
getFillColor | public Color getFillColor()(Code) | | The color used to fill this shape.
|
getLineColor | public Color getLineColor()(Code) | | color of the line. If color is not set returns java.awt.Color.black |
getLineDashing | public int getLineDashing()(Code) | | Gets line dashing. One of the PEN_* constants defined in this class.
dashing of the line. |
getLineStyle | public int getLineStyle()(Code) | | Returns line style. One of the constants defined in this class.
style of the line. |
getLineWidth | public double getLineWidth()(Code) | | Returns width of the line in in points
|
setFillColor | public void setFillColor(Color color)(Code) | | The color used to fill this shape.
Parameters: color - the background color |
setLineColor | public void setLineColor(Color color)(Code) | | Sets the color of line
Parameters: color - new color of the line |
setLineDashing | public void setLineDashing(int pen)(Code) | | Sets line dashing. One of the PEN_* constants defined in this class.
Parameters: pen - new style of the line. |
setLineStyle | public void setLineStyle(int style)(Code) | | Sets line style. One of the constants defined in this class.
Parameters: style - new style of the line. |
setLineWidth | public void setLineWidth(double width)(Code) | | Sets the width of line in in points
Parameters: width - the width of line in in points |
|
|