public class ShapeObj
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
double |
getBottom()
bottom edge
|
ShapeFormat |
getFormat()
Returns the Format object associated with this shape.
|
double |
getLeft()
left edge
|
java.lang.String |
getName()
get the shape name
|
ShapePos |
getPos()
get the shape position
|
double |
getRight()
right edge
|
double |
getTop()
top edge
|
void |
setAutoLayoutDirection(boolean leftToRight) |
void |
setFormat(ShapeFormat format)
Sets the Format for this shape.
|
void |
setName(java.lang.String name)
set the shape name
|
void |
setPosition(double x1,
double y1,
double x2,
double y2)
set the shape position
|
public ShapeFormat getFormat() throws java.lang.Exception
java.lang.Exception - exceptionpublic void setFormat(ShapeFormat format)
public double getLeft()
public double getRight()
public double getTop()
public double getBottom()
public void setPosition(double x1,
double y1,
double x2,
double y2)
throws java.lang.Exception
x1 - left positiony1 - top positionx2 - right positiony2 - bottom positionjava.lang.Exception - exceptionpublic void setAutoLayoutDirection(boolean leftToRight)
throws java.lang.Exception
java.lang.Exceptionpublic ShapePos getPos()
public java.lang.String getName()
public void setName(java.lang.String name)
name - shape name