|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uwcse.graphics.GWindow | +--InfiniteCanvas | +--BorderedInfiniteCanvas | +--TickedInfiniteCanvas
Ticks and Axes on an Infinite Canvas with Borders Shapes should be drawn in infinite x space.
Method Summary | |
boolean |
add(uwcse.graphics.Shape s)
Adds the specified into the bordered space |
void |
drawAxes()
Draws axes by placing a line at each border. |
void |
drawTickX(int x)
Draws a labeled tick on the x axis |
void |
drawTickY(int y,
java.lang.String s)
Draws a labeled tick on the y axis |
Methods inherited from class InfiniteCanvas |
addToWindow, fixLabel, getLeftHandX, setLeftHandX, useColumnarLayout |
Methods inherited from class uwcse.graphics.GWindow |
addEventHandler, display, dispose, doRepaint, erase, getEventHandler, getImage, getImage, getImageFromFilename, getImageFromURL, intersects, main, print, resumeRepaints, setExitOnClose, showColorTable, startTimerEvents, stopTimerEvents, suspendRepaints, toString, version |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public void drawAxes()
public boolean add(uwcse.graphics.Shape s)
BorderedInfiniteCanvas
add
in class BorderedInfiniteCanvas
s
- shape to be added (in infinite canvas coordinates)
true
if successful, false
otherwise.public void drawTickX(int x)
x
- the location and label for the tick mark.public void drawTickY(int y, java.lang.String s)
y
- the location in bordered window coordinates.s
- the label
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |