|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--element.Text
Copyright (c) 1997 McGraw-Hill All Rights Reserved.
Permission to use, copy, modify, and distribute this software and its documentation for NON-COMMERCIAL purposes and without fee is hereby granted provided that this copyright notice appears in all copies. Please refer to the file "copyright.html" for further important copyright and licensing information.
MCGRAW-HILL MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. MCGRAW-HILL SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
Constructor Summary | |
Text(char c)
|
|
Text(long i)
|
|
Text(java.lang.Object s)
|
|
Text(java.lang.Object s,
int left,
int bottom)
|
|
Text(java.lang.Object s,
Pt p)
|
|
Text(java.lang.String s)
|
|
Text(java.lang.String s,
int left,
int bottom)
|
|
Text(Text that)
|
Method Summary | |
int |
bottom()
Return the bottom coordinate of the bounding box of the object |
void |
bottom(int y)
|
Pt |
center()
Return the center of the object |
void |
center(Pt p)
Reset the center of the object to be at point p. |
void |
clearOn(DrawingWindow d)
Erase a filled version of this object (in the current mode) on a drawing window |
java.lang.Object |
clone()
post: returns a distinct copy of the Object |
boolean |
contains(Pt p)
|
void |
drawOn(DrawingWindow d)
Draw this object (in the current mode) on a drawing window |
boolean |
equals(java.lang.Object other)
post: returns true if two texts are equal |
void |
fillOn(DrawingWindow d)
Draw a filled version of this object (in the current mode) on a drawing window |
java.awt.Font |
font()
|
int |
hashCode()
post: returns suitable hash code |
int |
height()
Return the height of the bounding box of the object |
int |
left()
Return the leftmost coordinate of bounding box of object |
void |
left(int x)
|
int |
right()
Return the rightmost coordinate of the bounding box of the object |
void |
right(int x)
|
java.lang.String |
string()
|
int |
top()
Return the top coordinate of the bounding box of the object |
void |
top(int y)
|
java.lang.String |
toString()
post: returns a string representation of Object |
int |
width()
Return the width of the bounding box of the object |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Text(java.lang.String s)
s
- public Text(char c)
c
- public Text(long i)
i
- public Text(java.lang.Object s)
s
- public Text(java.lang.Object s, int left, int bottom)
s
- left
- bottom
- public Text(java.lang.String s, int left, int bottom)
s
- left
- bottom
- public Text(java.lang.Object s, Pt p)
public Text(Text that)
that
- Method Detail |
public int left()
public int right()
public int top()
public int bottom()
public void left(int x)
x
- public void right(int x)
x
- public void top(int y)
y
- public void bottom(int y)
y
- public int width()
public int height()
public Pt center()
public void center(Pt p)
p
- public boolean contains(Pt p)
p
- public void fillOn(DrawingWindow d)
d
- public void clearOn(DrawingWindow d)
d
- public void drawOn(DrawingWindow d)
d
- public int hashCode()
public boolean equals(java.lang.Object other)
other
- public java.lang.Object clone()
public java.lang.String string()
public java.awt.Font font()
public java.lang.String toString()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |