edu.jhu.tmaj.client.image.draw
Class ShapeRecord
java.lang.Object
edu.jhu.tmaj.client.image.draw.ShapeRecord
- All Implemented Interfaces:
- java.io.Serializable
public final class ShapeRecord
- extends java.lang.Object
- implements java.io.Serializable
Represents a record in the Shapes database table. The createDrawable() method is used to create
Drawable objects from a single record in the shapes table.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shapeID
public int shapeID
x
public int x
y
public int y
x2
public int x2
y2
public int y2
width
public int width
height
public int height
textDisplay
public java.lang.String textDisplay
pointsList
public java.lang.String pointsList
type
public java.lang.String type
ShapeRecord
public ShapeRecord()
createFromResultSet
public void createFromResultSet(java.sql.ResultSet rs)
throws java.sql.SQLException
- Creates this Object from a ResultSet of a single row in the Shapes table
- Throws:
java.sql.SQLException
createDrawable
public static Drawable createDrawable(ShapeRecord shapeRecord,
DrawableLabel drawableLabel)