Class TickedInfiniteCanvas

java.lang.Object
  |
  +--uwcse.graphics.GWindow
        |
        +--InfiniteCanvas
              |
              +--BorderedInfiniteCanvas
                    |
                    +--TickedInfiniteCanvas

public class TickedInfiniteCanvas
extends BorderedInfiniteCanvas

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 BorderedInfiniteCanvas
addToBorderedSpace, addToUnborderedSpace, cleanBorders, clearBorders, drawBottomBorder, drawLeftBorder, fillBorders, fillBorders, getBottomBorderWidth, getLeftBorderWidth, getOriginX, getUnborderedWindowHeight, getUnborderedWindowWidth, getWindowHeight, getWindowWidth, insideBottomBorder, insideLeftBorder, moveAllBy, moveBordersBy, outsideBorderedSpace, remove, removeFromUnborderedSpace
 
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

drawAxes

public void drawAxes()
Draws axes by placing a line at each border.


add

public boolean add(uwcse.graphics.Shape s)
Description copied from class: BorderedInfiniteCanvas
Adds the specified into the bordered space

Overrides:
add in class BorderedInfiniteCanvas
Parameters:
s - shape to be added (in infinite canvas coordinates)
Returns:
true if successful, falseotherwise.

drawTickX

public void drawTickX(int x)
Draws a labeled tick on the x axis

Parameters:
x - the location and label for the tick mark.

drawTickY

public void drawTickY(int y,
                      java.lang.String s)
Draws a labeled tick on the y axis

Parameters:
y - the location in bordered window coordinates.
s - the label