|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arctorus.documents.Shape
public class Shape
Shape on a page, e.g. line, ellipse, rectangle, picture.
Use static methods from ShapeFactory class to create new shapes.
ShapeFactory
Method Summary | |
---|---|
static com.arctorus.documents.CustomShape |
createCustomShape()
Create and return new custom shape. |
static Shape |
createEllipse()
Create and return new ellipse shape. |
static Shape |
createLine()
Create and return new line shape. |
static Picture |
createPicture()
Create and return new picture shape. |
static Shape |
createRectangle()
Create and return new rectangle shape. |
AdjustmentList |
getAdjustmentList()
Return adjustments of a shape. |
java.awt.geom.Rectangle2D |
getBounds()
Get bounds of a shape. |
FillFormat |
getFillFormat()
Get fill style of a shape. |
Hyperlink |
getHyperlink()
Get hyperlink for a shape. |
java.awt.geom.Point2D |
getLowerRightPoint()
Get lower right point of shape bounds. |
int |
getRotation()
Get rotation angle (degree) of a shape. |
ShapeType |
getShapeType()
Get type of a shape. |
StrokeFormat |
getStrokeFormat()
Get style of lines used to draw a shape. |
TextBox |
getTextBox()
Get text box of a shape. |
java.awt.geom.Point2D |
getUpperLeftPoint()
Get upper left point of shape bounds. |
boolean |
hasHyperlink()
Determines whether a shape has a hyperlink. |
boolean |
isProtected()
Get whether a shape is protected against selecting and modifying. |
boolean |
isReflectVertically()
Get whether a shape is reflected vertically. |
void |
setBounds(java.awt.geom.Rectangle2D bounds)
Set bounds of a shape. |
void |
setFillFormat(FillFormat fillFormat)
Set fill style of a shape. |
void |
setHyperlink(Hyperlink hyperlink)
Set hyperlink for a shape. |
void |
setProtected(boolean isProtected)
Set whether a shape is protected against selecting and modifying. |
void |
setReflectVertically(boolean isReflectVertically)
Set whether a shape is reflected vertically. |
void |
setRotation(int rotation)
Set rotation angle (degree) of a shape. |
void |
setStrokeFormat(StrokeFormat strokeFormat)
Set style of lines used to draw a shape. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public TextBox getTextBox()
public ShapeType getShapeType()
public int getRotation()
public void setRotation(int rotation)
rotation
- new rotation angle (degree).public StrokeFormat getStrokeFormat()
public void setStrokeFormat(StrokeFormat strokeFormat)
strokeFormat
- new line style. if strokeFormat is null then it will not change anything.public FillFormat getFillFormat()
public void setFillFormat(FillFormat fillFormat)
fillFormat
- new fill style. if fillFormat is null then it will not change anything.public boolean hasHyperlink()
public Hyperlink getHyperlink()
public void setHyperlink(Hyperlink hyperlink)
hyperlink
- new hyperlink. if hyperlink is null then it will not change anything.public boolean isReflectVertically()
public void setReflectVertically(boolean isReflectVertically)
isReflectVertically
- true to reflect the shape.public java.awt.geom.Rectangle2D getBounds()
public void setBounds(java.awt.geom.Rectangle2D bounds)
bounds
- new shape bounds. if bounds is null then it will not change anything.public static Shape createRectangle()
public static Shape createEllipse()
public static Shape createLine()
public static com.arctorus.documents.CustomShape createCustomShape()
public static Picture createPicture()
public boolean isProtected()
public void setProtected(boolean isProtected)
isProtected
- true to protect a shape.public java.awt.geom.Point2D getUpperLeftPoint()
public java.awt.geom.Point2D getLowerRightPoint()
public AdjustmentList getAdjustmentList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |