|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hslf.model.Shape
org.apache.poi.hslf.model.SimpleShape
public class SimpleShape
An abstract simple (non-group) shape. This is the parent class for all primitive shapes like Line, Rectangle, etc.
Field Summary |
---|
Fields inherited from class org.apache.poi.hslf.model.Shape |
---|
_escherContainer, _fill, _parent, _sheet, EMU_PER_CENTIMETER, EMU_PER_INCH, EMU_PER_POINT, logger, MASTER_DPI, PIXEL_DPI, POINT_DPI |
Constructor Summary | |
---|---|
protected |
SimpleShape(EscherContainerRecord escherRecord,
Shape parent)
Create a SimpleShape object and initialize it from the supplied Record container. |
Method Summary | |
---|---|
protected EscherContainerRecord |
createSpContainer(boolean isChild)
Create a new Shape |
void |
draw(java.awt.Graphics2D graphics)
|
protected Record |
getClientDataRecord(int recordType)
Find a record in the underlying EscherClientDataRecord |
java.awt.Color |
getFillColor()
The color used to fill this shape. |
boolean |
getFlipHorizontal()
Whether the shape is horizontally flipped |
boolean |
getFlipVertical()
Whether the shape is vertically flipped |
java.awt.Color |
getLineColor()
|
int |
getLineDashing()
Gets line dashing. |
int |
getLineStyle()
Returns line style. |
double |
getLineWidth()
Returns width of the line in in points |
java.awt.geom.Rectangle2D |
getLogicalAnchor2D()
|
int |
getRotation()
Rotation angle in degrees |
void |
setFillColor(java.awt.Color color)
The color used to fill this shape. |
void |
setLineColor(java.awt.Color color)
Sets the color of line |
void |
setLineDashing(int pen)
Sets line dashing. |
void |
setLineStyle(int style)
Sets line style. |
void |
setLineWidth(double width)
Sets the width of line in in points |
Methods inherited from class org.apache.poi.hslf.model.Shape |
---|
afterInsert, getAnchor, getAnchor2D, getColor, getEscherChild, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getHyperlink, getOutline, getParent, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setShapeId, setShapeType, setSheet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SimpleShape(EscherContainerRecord escherRecord, Shape parent)
escherRecord
- EscherSpContainer
container which holds information about this shapeparent
- the parent of the shapeMethod Detail |
---|
protected EscherContainerRecord createSpContainer(boolean isChild)
createSpContainer
in class Shape
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 int getLineDashing()
public void setLineDashing(int pen)
pen
- new style of the line.public void setLineStyle(int style)
style
- new style of the line.public int getLineStyle()
public java.awt.Color getFillColor()
public void setFillColor(java.awt.Color color)
color
- the background colorpublic boolean getFlipHorizontal()
public boolean getFlipVertical()
public int getRotation()
public java.awt.geom.Rectangle2D getLogicalAnchor2D()
getLogicalAnchor2D
in class Shape
public void draw(java.awt.Graphics2D graphics)
draw
in class Shape
protected Record getClientDataRecord(int recordType)
recordType
- type of the record to search
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |