Class TuringGraphics

java.lang.Object
  extended by TuringGraphics
All Implemented Interfaces:
KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, EventListener

public class TuringGraphics
extends Object
implements KeyListener, MouseListener, MouseMotionListener, MouseWheelListener


Constructor Summary
TuringGraphics(int x, int y, String Loc, boolean m)
           
 
Method Summary
 void clear()
           
 void delay(int timemilli)
           
 void drawArc(int x, int y, int xRadius, int yRadius, int initialAngle, int finalAngle, Color Clr)
           
 void drawBox(int x1, int y1, int x2, int y2, Color Clr)
           
 void drawDot(int x, int y, Color Clr)
           
 void drawLine(int x1, int y1, int x2, int y2, Color Clr)
           
 void drawOval(int x1, int y1, int x2, int y2, Color Clr)
           
 void drawPolygon(int[] xPoints, int[] yPoints, int nPoints, Color Clr)
           
 void fillArc(int x, int y, int xRadius, int yRadius, int initialAngle, int finalAngle, Color Clr)
           
 void fillBox(int x1, int y1, int x2, int y2, Color Clr)
           
 void fillOval(int x1, int y1, int x2, int y2, Color Clr)
           
 void fillPolygon(int[] xPoints, int[] yPoints, int nPoints, Color Clr)
           
 char getChar()
           
 Color getColour(String Clr)
           
 JFrame getFrame()
           
 JPanel getPanel()
           
 char keyPressed()
           
 void keyPressed(KeyEvent e)
           
 char keyReleased()
           
 void keyReleased(KeyEvent e)
           
 char keyTyped()
           
 void keyTyped(KeyEvent e)
           
 int mouseClicked()
           
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 boolean mouseOnScreen()
           
 int mousePressed()
           
 void mousePressed(MouseEvent e)
           
 int mouseReleased()
           
 void mouseReleased(MouseEvent e)
           
 int mouseWheel()
           
 void mouseWheelMoved(MouseWheelEvent e)
           
 int mouseX()
           
 int mouseY()
           
 void setBackground(Color Clr)
           
 void setLatency(int l)
           
 void text(String toDisp, int x, int y, int fontSize, Color Clr)
           
 void update()
           
 
Methods inherited from class
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TuringGraphics

public TuringGraphics(int x,
                      int y,
                      String Loc,
                      boolean m)
Method Detail

clear

public void clear()

delay

public void delay(int timemilli)

drawArc

public void drawArc(int x,
                    int y,
                    int xRadius,
                    int yRadius,
                    int initialAngle,
                    int finalAngle,
                    Color Clr)

drawBox

public void drawBox(int x1,
                    int y1,
                    int x2,
                    int y2,
                    Color Clr)

drawDot

public void drawDot(int x,
                    int y,
                    Color Clr)

drawLine

public void drawLine(int x1,
                     int y1,
                     int x2,
                     int y2,
                     Color Clr)

drawOval

public void drawOval(int x1,
                     int y1,
                     int x2,
                     int y2,
                     Color Clr)

drawPolygon

public void drawPolygon(int[] xPoints,
                        int[] yPoints,
                        int nPoints,
                        Color Clr)

fillArc

public void fillArc(int x,
                    int y,
                    int xRadius,
                    int yRadius,
                    int initialAngle,
                    int finalAngle,
                    Color Clr)

fillBox

public void fillBox(int x1,
                    int y1,
                    int x2,
                    int y2,
                    Color Clr)

fillOval

public void fillOval(int x1,
                     int y1,
                     int x2,
                     int y2,
                     Color Clr)

fillPolygon

public void fillPolygon(int[] xPoints,
                        int[] yPoints,
                        int nPoints,
                        Color Clr)

getChar

public char getChar()

getColour

public Color getColour(String Clr)

getFrame

public JFrame getFrame()

getPanel

public JPanel getPanel()

keyPressed

public char keyPressed()

keyPressed

public void keyPressed(KeyEvent e)
Specified by:
keyPressed in interface KeyListener

keyReleased

public char keyReleased()

keyReleased

public void keyReleased(KeyEvent e)
Specified by:
keyReleased in interface KeyListener

keyTyped

public char keyTyped()

keyTyped

public void keyTyped(KeyEvent e)
Specified by:
keyTyped in interface KeyListener

mouseClicked

public int mouseClicked()

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener

mouseOnScreen

public boolean mouseOnScreen()

mousePressed

public int mousePressed()

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public int mouseReleased()

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener

mouseWheel

public int mouseWheel()

mouseWheelMoved

public void mouseWheelMoved(MouseWheelEvent e)
Specified by:
mouseWheelMoved in interface MouseWheelListener

mouseX

public int mouseX()

mouseY

public int mouseY()

setBackground

public void setBackground(Color Clr)

setLatency

public void setLatency(int l)

text

public void text(String toDisp,
                 int x,
                 int y,
                 int fontSize,
                 Color Clr)

update

public void update()