pal.gui
Class CircularGraphics
java.lang.Object
pal.gui.CircularGraphics
public class CircularGraphics
- extends java.lang.Object
- Author:
- Matthew Goode
Constructor Summary |
CircularGraphics(java.awt.Graphics g,
double worldAngle,
double worldRadius,
int screenX,
int screenY,
int screenWidth,
int screenHeight)
|
CircularGraphics(java.awt.Graphics g,
double worldAngle,
double worldRadius,
int screenX,
int screenY,
int screenWidth,
int screenHeight,
boolean invertY)
|
Method Summary |
void |
circleString(java.lang.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(java.lang.String s,
double angle,
double radius)
|
void |
drawString(java.lang.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 |
setColor(java.awt.Color c)
|
void |
setFont(java.awt.Font newFont)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
screenCentreX
public int screenCentreX
screenCentreY
public int screenCentreY
screenRadius
public int screenRadius
CircularGraphics
public CircularGraphics(java.awt.Graphics g,
double worldAngle,
double worldRadius,
int screenX,
int screenY,
int screenWidth,
int screenHeight)
CircularGraphics
public CircularGraphics(java.awt.Graphics g,
double worldAngle,
double worldRadius,
int screenX,
int screenY,
int screenWidth,
int screenHeight,
boolean invertY)
setFont
public void setFont(java.awt.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(java.awt.Color c)
drawString
public void drawString(java.lang.String s,
double angle,
double radius)
drawString
public void drawString(java.lang.String s,
double angle,
double radius,
int outdent)
circleString
public void circleString(java.lang.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)