Class ccj.Message
All Packages Class Hierarchy This Package Previous Next Index
Class ccj.Message
java.lang.Object
|
+----ccj.Shape
|
+----ccj.Message
- public class Message
- extends Shape
-
Message(Point, String)
- Creates a new message object
-
clone()
- Creates a copy of this object
-
equals(Object)
- Tests if this object equals another
-
getStart()
- Gets the top left corner of the message
-
getText()
- Gets the text of the message
-
hashCode()
- Computes a hash code for this object
-
move(double, double)
- Moves this graphical shape
-
toString()
- Creates a string representation of this object
Message
public Message(Point p,
String s)
- Creates a new message object
- Parameters:
- p - the top left corner of the message
- s - the text of the message
move
public void move(double x,
double y)
- Moves this graphical shape
- Parameters:
- dx - the amount to move by in x direction
- dy - the amount to move by in y direction
clone
public Object clone()
- Creates a copy of this object
- Returns:
- a copy of this object
- Overrides:
- clone in class Shape
toString
public String toString()
- Creates a string representation of this object
- Returns:
- a string representation of this object
- Overrides:
- toString in class Object
equals
public boolean equals(Object b)
- Tests if this object equals another
- Parameters:
- b - the object to compare with
- Returns:
- true if the two objects are equal
- Overrides:
- equals in class Object
hashCode
public int hashCode()
- Computes a hash code for this object
- Returns:
- a hash code for this object
- Overrides:
- hashCode in class Object
getStart
public Point getStart()
- Gets the top left corner of the message
- Returns:
- the top left corner of the message
getText
public String getText()
- Gets the text of the message
- Returns:
- the text of the message
All Packages Class Hierarchy This Package Previous Next Index