Package pal.gui
Class CircularGraphics
- java.lang.Object
-
- pal.gui.CircularGraphics
-
public class CircularGraphics extends java.lang.Object
- Author:
- Matthew Goode
-
-
Field Summary
Fields Modifier and Type Field Description int
screenCentreX
int
screenCentreY
int
screenRadius
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
circleString(java.lang.String s, double angle, double radius, int outdent)
void
drawArc(double angleStart, double angleEnd, double radius)
For drawing arbitary linesvoid
drawLine(double angle, double radiusStart, double radiusEnd)
For drawing arbitary linesvoid
drawLine(double angle1, double radius1, double angle2, double radius2)
For drawing arbitary linesvoid
drawLineDegreeAlign(double angle, double radiusStart, double radiusEnd)
For drawing arbitary linesvoid
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)
-
-
-
Constructor Detail
-
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)
-
-
Method Detail
-
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)
-
-