com.jxcell
Class ShapeObj

java.lang.Object
  extended bycom.jxcell.ShapeObj
Direct Known Subclasses:
ChartShape, FormControlShape, PictureShape

public class ShapeObj
extends java.lang.Object

This class is base class of drawing Format.


Method Summary
 double getBottom()
           
 ShapeFormat getFormat()
          Returns the Format object associated with this shape.
 double getLeft()
           
 java.lang.String getName()
           
 ShapeObj getNextShapeObj()
           
 ShapePos getPos()
          get the shape position
 double getRight()
           
 double getTop()
           
 void setFormat()
          Sets the Format for this shape.
 void setPosition(double x1, double y1, double x2, double y2)
          set the shape position
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFormat

public ShapeFormat getFormat()
                      throws java.lang.Exception
Returns the Format object associated with this shape.

Returns:
shape format.
Throws:
java.lang.Exception - exception

setFormat

public void setFormat()
Sets the Format for this shape.


getLeft

public double getLeft()

getRight

public double getRight()

getTop

public double getTop()

getBottom

public double getBottom()

setPosition

public void setPosition(double x1,
                        double y1,
                        double x2,
                        double y2)
                 throws java.lang.Exception
set the shape position

Parameters:
x1 - left position
y1 - top position
x2 - right position
y2 - bottom position
Throws:
java.lang.Exception - exception

getPos

public ShapePos getPos()
get the shape position

Returns:
shape position

getNextShapeObj

public ShapeObj getNextShapeObj()

getName

public java.lang.String getName()