|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graphics.device.DeviceStatistics
This class gathers statistics for devices.
| Constructor Summary | |
DeviceStatistics()
Constructs a new empty DeviceStatistics instance. |
|
| Method Summary | |
void |
clear()
Clears all counters. |
void |
clearRect(int x,
int y,
int width,
int height)
Record primitive operation: clearRect. |
void |
drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
Record primitive operation: drawArc. |
void |
drawLine(int x1,
int y1,
int x2,
int y2)
Record primitive operation: drawLine. |
void |
drawOval(int x,
int y,
int width,
int height)
Record primitive operation: drawOval. |
void |
drawPolygon(int[] ptX,
int[] ptY,
int ptCount)
Record primitive operation: drawPolygon. |
void |
drawPolyline(int[] ptX,
int[] ptY,
int ptCount)
Record primitive operation: drawPolyline. |
void |
drawRect(int x,
int y,
int width,
int height)
Record primitive operation: drawRect. |
void |
drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
Record primitive operation: drawRoundRect. |
void |
drawString(java.lang.String str,
int x,
int y)
Record primitive operation: drawString. |
void |
dump()
Dumps the statistics to stderr. |
void |
fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
Record primitive operation: fillArc. |
void |
fillOval(int x,
int y,
int width,
int height)
Record primitive operation: fillOval. |
void |
fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
Record primitive operation: fillPolygon. |
void |
fillRect(int x,
int y,
int width,
int height)
Record primitive operation: fillRect. |
void |
fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
Record primitive operation: fillRoundRect. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DeviceStatistics()
DeviceStatistics instance.
| Method Detail |
public void clear()
public void dump()
public void drawLine(int x1,
int y1,
int x2,
int y2)
x1 - starting x coordinate.y1 - starting y coordinate.x2 - ending x coordinate.y2 - ending y coordinate.
public void drawRect(int x,
int y,
int width,
int height)
x - x start coordinate.y - y start coordinate.width - width of the rectangle.height - height of the rectangle.
public void fillRect(int x,
int y,
int width,
int height)
x - x start coordinate.y - y start coordinate.width - width of the rectangle.height - height of the rectangle.
public void clearRect(int x,
int y,
int width,
int height)
x - x start coordinate.y - y start coordinate.width - width of the rectangle.height - height of the rectangle.
public void drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
x - x start coordinate.y - y start coordinate.width - width of the rectangle.height - height of the rectangle.arcWidth - width of the round arc.arcHeight - height of the round arc.
public void fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
x - x start coordinate.y - y start coordinate.width - width of the rectangle.height - height of the rectangle.arcWidth - width of the round arc.arcHeight - height of the round arc.
public void drawOval(int x,
int y,
int width,
int height)
x - x start coordinate of the enclosing rectangle.y - y start coordinate of the enclosing rectangle.width - width of the enclosing rectangle.height - height of the enclosing rectangle.
public void fillOval(int x,
int y,
int width,
int height)
x - x start coordinate of the enclosing rectangle.y - y start coordinate of the enclosing rectangle.width - width of the enclosing rectangle.height - height of the enclosing rectangle.
public void drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
x - x start coordinate of the enclosing rectangle.y - y start coordinate of the enclosing rectangle.width - width of the enclosing rectangle.height - height of the enclosing rectangle.startAngle - start angle of the arc in radians.arcAngle - end angle of the arc in radians.
public void fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
x - x start coordinate of the enclosing rectangle.y - y start coordinate of the enclosing rectangle.width - width of the enclosing rectangle.height - height of the enclosing rectangle.startAngle - start angle of the arc in radians.arcAngle - end angle of the arc in radians.
public void drawPolyline(int[] ptX,
int[] ptY,
int ptCount)
ptX - array of x coordinates of polygon's vertices.ptY - array of y coordinates of polygon's vertices.ptCount - number of vertices.
public void drawPolygon(int[] ptX,
int[] ptY,
int ptCount)
ptX - array of x coordinates of polygon's vertices.ptY - array of y coordinates of polygon's vertices.ptCount - number of vertices.
public void fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
public void drawString(java.lang.String str,
int x,
int y)
str - string to draw.x - x coordinate where to draw the string.y - y coordinate where to draw the string.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||