|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--element.Pt
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 | |
Pt()
|
|
Pt(int x,
int y)
|
|
Pt(Pt p)
|
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()
|
boolean |
contains(Pt that)
|
void |
drawOn(DrawingWindow d)
Draw this object (in the current mode) on a drawing window |
boolean |
equals(java.lang.Object p)
|
void |
fillOn(DrawingWindow d)
Draw a filled version of this object (in the current mode) on a drawing window |
int |
hashCode()
|
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)
|
void |
move(int dx,
int dy)
|
void |
moveTo(int x,
int y)
|
void |
moveTo(Pt p)
|
int |
right()
Return the rightmost coordinate of the bounding box of the object |
void |
right(int x)
|
int |
top()
Return the top coordinate of the bounding box of the object |
void |
top(int y)
|
java.lang.String |
toString()
|
int |
width()
Return the width of the bounding box of the object |
int |
x()
|
void |
x(int x)
|
int |
y()
|
void |
y(int newy)
|
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Pt()
public Pt(Pt p)
p
- public Pt(int x, int y)
x
- y
- Method Detail |
public int x()
public int y()
public void x(int x)
x
- the new horizontal coordinatepublic void y(int newy)
newy
- 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 boolean contains(Pt that)
that
- public Pt center()
public void center(Pt p)
p
- public void move(int dx, int dy)
dx
- dy
- public void moveTo(int x, int y)
x
- y
- public void moveTo(Pt p)
p
- public void fillOn(DrawingWindow d)
d
- public void clearOn(DrawingWindow d)
d
- public void drawOn(DrawingWindow d)
d
- public boolean equals(java.lang.Object p)
p
- public java.lang.Object clone()
public int hashCode()
public java.lang.String toString()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |