Package pal.gui

Class CircularGraphics

java.lang.Object
pal.gui.CircularGraphics

public class CircularGraphics extends Object
Author:
Matthew Goode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
     
    int
     
    int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CircularGraphics(Graphics g, double worldAngle, double worldRadius, int screenX, int screenY, int screenWidth, int screenHeight)
     
    CircularGraphics(Graphics g, double worldAngle, double worldRadius, int screenX, int screenY, int screenWidth, int screenHeight, boolean invertY)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    circleString(String s, double angle, double radius, int outdent)
     
    void
    drawArc(double angleStart, double angleEnd, double radius)
    For drawing arbitary lines
    void
    drawLine(double angle, double radiusStart, double radiusEnd)
    For drawing arbitary lines
    void
    drawLine(double angle1, double radius1, double angle2, double radius2)
    For drawing arbitary lines
    void
    drawLineDegreeAlign(double angle, double radiusStart, double radiusEnd)
    For drawing arbitary lines
    void
    drawPoint(double angle, double radius, int size)
     
    void
    drawString(String s, double angle, double radius)
     
    void
    drawString(String s, double angle, double radius, int outdent)
     
    void
    drawSymbol(double angle, double radius, int outdent, int width, int symbol)
     
    void
    fillPoint(double angle, double radius, int size)
     
    int
    getScreenDeltaX(double angle, double radius)
     
    int
    getScreenDeltaY(double angle, double radius)
     
    int
    getScreenX(double angle, double radius)
     
    int
    getScreenX(double angle, double radius, int outdent)
     
    int
    getScreenY(double angle, double radius)
     
    int
    getScreenY(double angle, double radius, int outdent)
     
    void
     
    void
    setFont(Font newFont)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • screenCentreX

      public int screenCentreX
    • screenCentreY

      public int screenCentreY
    • screenRadius

      public int screenRadius
  • Constructor Details

    • CircularGraphics

      public CircularGraphics(Graphics g, double worldAngle, double worldRadius, int screenX, int screenY, int screenWidth, int screenHeight)
    • CircularGraphics

      public CircularGraphics(Graphics g, double worldAngle, double worldRadius, int screenX, int screenY, int screenWidth, int screenHeight, boolean invertY)
  • Method Details

    • setFont

      public void setFont(Font newFont)
    • drawLine

      public void drawLine(double angle1, double radius1, double angle2, double radius2)
      For drawing arbitary lines
    • drawLine

      public void drawLine(double angle, double radiusStart, double radiusEnd)
      For drawing arbitary lines
    • drawLineDegreeAlign

      public void drawLineDegreeAlign(double angle, double radiusStart, double radiusEnd)
      For drawing arbitary lines
    • drawArc

      public void drawArc(double angleStart, double angleEnd, double radius)
      For drawing arbitary lines
    • setColor

      public void setColor(Color c)
    • drawString

      public void drawString(String s, double angle, double radius)
    • drawString

      public void drawString(String s, double angle, double radius, int outdent)
    • circleString

      public void circleString(String s, double angle, double radius, int outdent)
    • getScreenX

      public int getScreenX(double angle, double radius)
    • getScreenX

      public int getScreenX(double angle, double radius, int outdent)
    • getScreenDeltaX

      public int getScreenDeltaX(double angle, double radius)
    • getScreenY

      public int getScreenY(double angle, double radius)
    • getScreenY

      public int getScreenY(double angle, double radius, int outdent)
    • getScreenDeltaY

      public int getScreenDeltaY(double angle, double radius)
    • fillPoint

      public void fillPoint(double angle, double radius, int size)
    • drawPoint

      public void drawPoint(double angle, double radius, int size)
    • drawSymbol

      public void drawSymbol(double angle, double radius, int outdent, int width, int symbol)