Modifier and Type | Field and Description |
---|---|
protected EscherClientDataRecord |
_clientData |
protected Record[] |
_clientRecords
Records stored in EscherClientDataRecord
|
static double |
DEFAULT_LINE_WIDTH |
_escherContainer, _fill, _parent, _sheet, EMU_PER_CENTIMETER, EMU_PER_INCH, EMU_PER_POINT, logger, MASTER_DPI, PIXEL_DPI, POINT_DPI
Modifier | Constructor and Description |
---|---|
protected |
SimpleShape(EscherContainerRecord escherRecord,
Shape 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
|
void |
draw(Graphics2D graphics) |
protected 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
|
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
|
Color |
getLineColor() |
int |
getLineDashing()
Gets line dashing.
|
int |
getLineStyle()
Returns line style.
|
double |
getLineWidth()
Returns width of the line in in points
|
Rectangle2D |
getLogicalAnchor2D() |
int |
getRotation()
Rotation angle in degrees
|
void |
setFillColor(Color color)
The color used to fill this shape.
|
void |
setHyperlink(Hyperlink link) |
void |
setLineColor(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
|
void |
setRotation(int theta)
Rotate this shape
|
protected void |
updateClientData() |
afterInsert, getAnchor, getAnchor2D, getEscherChild, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getHyperlink, getOutline, getParent, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setShapeId, setShapeType, setSheet
public static final double DEFAULT_LINE_WIDTH
protected Record[] _clientRecords
protected EscherClientDataRecord _clientData
protected SimpleShape(EscherContainerRecord escherRecord, Shape parent)
escherRecord
- EscherSpContainer
container which holds information about this shapeparent
- the parent of the shapeprotected EscherContainerRecord createSpContainer(boolean isChild)
createSpContainer
in class Shape
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(Color color)
color
- new color of the linepublic 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 Color getFillColor()
public void setFillColor(Color color)
color
- the background colorpublic boolean getFlipHorizontal()
public boolean getFlipVertical()
public int getRotation()
public void setRotation(int theta)
theta
- the rotation angle in degreespublic Rectangle2D getLogicalAnchor2D()
getLogicalAnchor2D
in class Shape
public void draw(Graphics2D graphics)
protected Record getClientDataRecord(int recordType)
recordType
- type of the record to searchprotected Record[] getClientRecords()
null
protected void updateClientData()
public void setHyperlink(Hyperlink link)
Copyright © 2020. All rights reserved.