public class PanelPainter extends Object implements GraphPainter
| Constructor and Description |
|---|
PanelPainter(Graphics2D g,
Color background) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawLine(double x0,
double y0,
double x1,
double y1) |
void |
drawPath(Shape s) |
void |
drawString(String s,
double x,
double y) |
void |
drawVerticalString(String s,
double x,
double y) |
void |
endGroup() |
void |
fill(Shape s) |
Color |
getColor() |
int |
getStringWidth(String label) |
void |
restoreLineWidth() |
void |
setClip(int x,
int y,
int w,
int h) |
void |
setColor(Color c) |
void |
setDashes(float[] dashes)
Not implemented yet
|
void |
setFill(boolean fill)
For filling shapes with background color.
|
void |
setFont(LGFont font) |
void |
setLineWidth(double width) |
void |
startGroup()
No groups in java2D
|
public PanelPainter(Graphics2D g, Color background)
public void drawPath(Shape s)
drawPath in interface GraphPainterpublic void setColor(Color c)
setColor in interface GraphPainterpublic Color getColor()
getColor in interface GraphPainterpublic void drawLine(double x0,
double y0,
double x1,
double y1)
drawLine in interface GraphPainterpublic void fill(Shape s)
fill in interface GraphPainterpublic void setClip(int x,
int y,
int w,
int h)
setClip in interface GraphPainterpublic void drawString(String s, double x, double y)
drawString in interface GraphPainterpublic void setLineWidth(double width)
setLineWidth in interface GraphPainterpublic void setDashes(float[] dashes)
setDashes in interface GraphPainterdashes - public void restoreLineWidth()
restoreLineWidth in interface GraphPainterpublic void setFill(boolean fill)
setFill in interface GraphPainterpublic void startGroup()
startGroup in interface GraphPainterpublic void endGroup()
endGroup in interface GraphPainterpublic void setFont(LGFont font)
setFont in interface GraphPainterpublic int getStringWidth(String label)
getStringWidth in interface GraphPainterpublic void drawVerticalString(String s, double x, double y)
drawVerticalString in interface GraphPainterCopyright © 2017. All rights reserved.