edu.jhu.tmaj.client.image.draw
Class ShapeRecord

java.lang.Object
  extended by 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

Field Summary
 int height
           
 java.lang.String pointsList
           
 int shapeID
           
 java.lang.String textDisplay
           
 java.lang.String type
           
 int width
           
 int x
           
 int x2
           
 int y
           
 int y2
           
 
Constructor Summary
ShapeRecord()
           
 
Method Summary
static Drawable createDrawable(ShapeRecord shapeRecord, DrawableLabel drawableLabel)
           
 void createFromResultSet(java.sql.ResultSet rs)
          Creates this Object from a ResultSet of a single row in the Shapes table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ShapeRecord

public ShapeRecord()
Method Detail

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)