|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.tmaj.client.image.draw.AbstractDrawable edu.jhu.tmaj.client.image.draw.RectangleDrawable edu.jhu.tmaj.client.image.draw.OvalDrawable
public final class OvalDrawable
An oval
Field Summary |
---|
Fields inherited from class edu.jhu.tmaj.client.image.draw.RectangleDrawable |
---|
height, width, x, y |
Fields inherited from class edu.jhu.tmaj.client.image.draw.AbstractDrawable |
---|
BLACK_SQUARE_SIZE, drawableLabel, isCompleted, MARGIN, userID |
Constructor Summary | |
---|---|
OvalDrawable(DrawableLabel d)
|
Method Summary | |
---|---|
void |
draw(java.awt.Graphics g)
Sets the color and draws the black squares aroudn the Drawable |
InsertSQL |
getInsertSQL(int scoredImageID)
Returns a SQL statement to update an existing shape in the database. |
boolean |
shouldPointActivate(int xPos,
int yPos)
Returns true if the x and y are close enough to the border of the shape to "Select" the shape |
java.lang.String |
toString()
|
Methods inherited from class edu.jhu.tmaj.client.image.draw.RectangleDrawable |
---|
callSuperDotDraw, createFromShapeRecord, getBlackSquares, getDrawableRectangle, getInsertSQL, getUpdateSQL, handleMouseDragged, handleMousePressed, isValid, move |
Methods inherited from class edu.jhu.tmaj.client.image.draw.AbstractDrawable |
---|
allowMoving, changeNormalStatusToModified, createNewShapeOnMousePress, drawBlackSquare, drawBlackSquares, getColor, getDrawingX, getDrawingY, getNormalX, getNormalY, getShapeID, getStatus, getUserID, handleKeyPressed, handleMouseReleased, isCompleted, isHighlighted, repaintDrawableLabel, setDrawableLabel, setIsCompleted, setIsHighlighted, setShapeID, setStatus, setUserID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.jhu.tmaj.client.image.draw.Drawable |
---|
createFromShapeRecord, createNewShapeOnMousePress, getShapeID, getStatus, getUpdateSQL, handleKeyPressed, handleMouseDragged, handleMousePressed, handleMouseReleased, isCompleted, isHighlighted, isValid, setIsCompleted, setIsHighlighted, setShapeID, setStatus, setUserID |
Constructor Detail |
---|
public OvalDrawable(DrawableLabel d)
Method Detail |
---|
public void draw(java.awt.Graphics g)
AbstractDrawable
draw
in interface Drawable
draw
in class RectangleDrawable
public boolean shouldPointActivate(int xPos, int yPos)
Drawable
shouldPointActivate
in interface Drawable
shouldPointActivate
in class RectangleDrawable
public InsertSQL getInsertSQL(int scoredImageID)
AbstractDrawable
getInsertSQL
in interface Drawable
getInsertSQL
in class RectangleDrawable
public java.lang.String toString()
toString
in class RectangleDrawable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |