org.rubato.rubettes.bigbang.view.subview
Class AWTPainter
java.lang.Object
org.rubato.rubettes.bigbang.view.subview.AbstractPainter
org.rubato.rubettes.bigbang.view.subview.AWTPainter
public class AWTPainter
- extends AbstractPainter
Constructor Summary |
AWTPainter(java.awt.Graphics g)
|
Method Summary |
void |
drawLine(double x1,
double y1,
double x2,
double y2)
|
void |
drawOval(double x,
double y,
double width,
double height)
|
void |
drawPolygon(java.awt.geom.Path2D.Double p)
|
void |
drawRect(double x,
double y,
double width,
double height)
|
void |
drawString(java.lang.String str,
double x,
double y)
|
void |
fillArc(double x,
double y,
double width,
double height,
double startAngle,
double arcAngle)
|
void |
fillNote(double x,
double y,
double width,
double height)
|
void |
fillOval(double x,
double y,
double width,
double height)
|
void |
fillPolygon(java.awt.geom.Path2D.Double p)
|
void |
fillRect(double x,
double y,
double width,
double height)
|
int |
getStringHeight(java.lang.String s)
|
int |
getStringWidth(java.lang.String s)
|
void |
setColor(java.awt.Color color)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AWTPainter
public AWTPainter(java.awt.Graphics g)
setColor
public void setColor(java.awt.Color color)
- Specified by:
setColor
in class AbstractPainter
drawLine
public void drawLine(double x1,
double y1,
double x2,
double y2)
- Specified by:
drawLine
in class AbstractPainter
drawRect
public void drawRect(double x,
double y,
double width,
double height)
- Specified by:
drawRect
in class AbstractPainter
fillRect
public void fillRect(double x,
double y,
double width,
double height)
- Specified by:
fillRect
in class AbstractPainter
drawPolygon
public void drawPolygon(java.awt.geom.Path2D.Double p)
- Specified by:
drawPolygon
in class AbstractPainter
fillPolygon
public void fillPolygon(java.awt.geom.Path2D.Double p)
- Specified by:
fillPolygon
in class AbstractPainter
drawOval
public void drawOval(double x,
double y,
double width,
double height)
- Specified by:
drawOval
in class AbstractPainter
fillOval
public void fillOval(double x,
double y,
double width,
double height)
- Specified by:
fillOval
in class AbstractPainter
fillArc
public void fillArc(double x,
double y,
double width,
double height,
double startAngle,
double arcAngle)
- Specified by:
fillArc
in class AbstractPainter
fillNote
public void fillNote(double x,
double y,
double width,
double height)
- Specified by:
fillNote
in class AbstractPainter
drawString
public void drawString(java.lang.String str,
double x,
double y)
- Specified by:
drawString
in class AbstractPainter
getStringWidth
public int getStringWidth(java.lang.String s)
- Specified by:
getStringWidth
in class AbstractPainter
getStringHeight
public int getStringHeight(java.lang.String s)
- Specified by:
getStringHeight
in class AbstractPainter