turingmachine
Class CTMDataComment

java.lang.Object
  extended by turingmachine.CTMData
      extended by turingmachine.CTMDataComment
All Implemented Interfaces:
java.io.Serializable

public class CTMDataComment
extends CTMData
implements java.io.Serializable

Commment data for corresponding CRM

See Also:
Serialized Form

Field Summary
private  java.awt.Rectangle bounds
          Comment bounds.
private  java.lang.String comment
          Comment data.
(package private) static long serialVersionUID
           
 
Constructor Summary
CTMDataComment(CTMDocument document, java.lang.String comment, java.awt.Rectangle bounds)
          Constructor.
 
Method Summary
 java.awt.Rectangle getBounds()
          Get comment rectangle bounds.
 java.lang.String getComment()
          Get the comment text.
 java.awt.Point getLocation()
          Get top left hand corner of comment rectangle.
 java.awt.Dimension getSize()
          Get comment rectangle dimensions.
 void setBounds(java.awt.Rectangle bounds)
          Set comment rectangle bounds.
 void setComment(java.lang.String comment)
          Set the comment text.
 
Methods inherited from class turingmachine.CTMData
delete, getDataParent, getDocument, getModificationCount, isDeleted, touch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

comment

private java.lang.String comment
Comment data.


bounds

private java.awt.Rectangle bounds
Comment bounds.

Constructor Detail

CTMDataComment

public CTMDataComment(CTMDocument document,
                      java.lang.String comment,
                      java.awt.Rectangle bounds)
Constructor.

Parameters:
document - CTMDocument Document this data belongs to.
comment - String Comment text.
bounds - Rectangle Rectangular area comment covers.
Method Detail

getLocation

public java.awt.Point getLocation()
Get top left hand corner of comment rectangle.

Returns:
Point

getSize

public java.awt.Dimension getSize()
Get comment rectangle dimensions.

Returns:
Dimension

setBounds

public void setBounds(java.awt.Rectangle bounds)
Set comment rectangle bounds.

Parameters:
bounds - New comment bounds.

getBounds

public java.awt.Rectangle getBounds()
Get comment rectangle bounds.

Returns:
bounds Comment bounds.

setComment

public void setComment(java.lang.String comment)
Set the comment text.

Parameters:
comment - String The new comment text.

getComment

public java.lang.String getComment()
Get the comment text.

Returns:
String The comment text.