| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final RenderingEngine |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | drawArc(SunGraphics2D sg2d, int x, int y, int width, int height, int startAngle, int arcAngle)
Implements sun.
|
| public void | drawLine(SunGraphics2D sg2d, int x1, int y1, int x2, int y2)
Implements sun.
|
| public void | drawOval(SunGraphics2D sg2d, int x, int y, int width, int height)
Implements sun.
|
| public void | drawParallelogram(SunGraphics2D sg2d, double ux1, double uy1, double ux2, double uy2, double x, double y, double dx1, double dy1, double dx2, double dy2, double lw1, double lw2)
Implements sun. Draw a Parallelogram with the indicated line widths assuming a standard BasicStroke with MITER joins. |
| public void | drawPolygon(SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints)
Implements sun.
|
| public void | drawPolyline(SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints)
Implements sun.
|
| public void | drawRect(SunGraphics2D sg2d, int x, int y, int width, int height)
Implements sun.
|
| public void | drawRoundRect(SunGraphics2D sg2d, int x, int y, int width, int height, int arcWidth, int arcHeight)
Implements sun.
|
| public void | |
| public void | fillArc(SunGraphics2D sg2d, int x, int y, int width, int height, int startAngle, int arcAngle)
Implements sun.
|
| public void | fillOval(SunGraphics2D sg2d, int x, int y, int width, int height)
Implements sun.
|
| public void | fillParallelogram(SunGraphics2D sg2d, double ux1, double uy1, double ux2, double uy2, double x, double y, double dx1, double dy1, double dx2, double dy2)
Implements sun.
|
| public void | fillPolygon(SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints)
Implements sun.
|
| public void | fillRect(SunGraphics2D sg2d, int x, int y, int width, int height)
Implements sun.
|
| public void | fillRoundRect(SunGraphics2D sg2d, int x, int y, int width, int height, int arcWidth, int arcHeight)
Implements sun.
|
| private static void | |
| public static ShapeSpanIterator | getFillSSI(SunGraphics2D sg2d)
Return a ShapeSpanIterator instance that normalizes as appropriate for a fill operation as per the settings in the specified SunGraphics2D object. |
| public static ShapeSpanIterator |
| RenderEngine | back to summary |
|---|---|
| pack-priv static final RenderingEngine RenderEngine | |
| LoopPipe | back to summary |
|---|---|
| public LoopPipe() | |
| draw | back to summary |
|---|---|
| public void draw(SunGraphics2D sg2d, Shape s) Implements sun. | |
| drawArc | back to summary |
|---|---|
| public void drawArc(SunGraphics2D sg2d, int x, int y, int width, int height, int startAngle, int arcAngle) Implements sun. | |
| drawLine | back to summary |
|---|---|
| public void drawLine(SunGraphics2D sg2d, int x1, int y1, int x2, int y2) Implements sun. | |
| drawOval | back to summary |
|---|---|
| public void drawOval(SunGraphics2D sg2d, int x, int y, int width, int height) Implements sun. | |
| drawParallelogram | back to summary |
|---|---|
| public void drawParallelogram(SunGraphics2D sg2d, double ux1, double uy1, double ux2, double uy2, double x, double y, double dx1, double dy1, double dx2, double dy2, double lw1, double lw2) Implements sun. Doc from sun. Draw a Parallelogram with the indicated line widths assuming a standard BasicStroke with MITER joins. lw1 specifies the width of the stroke along the dx1,dy1 vector and lw2 specifies the width of the stroke along the dx2,dy2 vector. This is equivalent to outsetting the indicated parallelogram by lw/2 pixels, then insetting the same parallelogram by lw/2 pixels and filling the difference between the outer and inner parallelograms. | |
| drawPolygon | back to summary |
|---|---|
| public void drawPolygon(SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints) Implements sun. | |
| drawPolyline | back to summary |
|---|---|
| public void drawPolyline(SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints) Implements sun. | |
| drawRect | back to summary |
|---|---|
| public void drawRect(SunGraphics2D sg2d, int x, int y, int width, int height) Implements sun. | |
| drawRoundRect | back to summary |
|---|---|
| public void drawRoundRect(SunGraphics2D sg2d, int x, int y, int width, int height, int arcWidth, int arcHeight) Implements sun. | |
| fill | back to summary |
|---|---|
| public void fill(SunGraphics2D sg2d, Shape s) Implements sun. | |
| fillArc | back to summary |
|---|---|
| public void fillArc(SunGraphics2D sg2d, int x, int y, int width, int height, int startAngle, int arcAngle) Implements sun. | |
| fillOval | back to summary |
|---|---|
| public void fillOval(SunGraphics2D sg2d, int x, int y, int width, int height) Implements sun. | |
| fillParallelogram | back to summary |
|---|---|
| public void fillParallelogram(SunGraphics2D sg2d, double ux1, double uy1, double ux2, double uy2, double x, double y, double dx1, double dy1, double dx2, double dy2) Implements sun. | |
| fillPolygon | back to summary |
|---|---|
| public void fillPolygon(SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints) Implements sun. | |
| fillRect | back to summary |
|---|---|
| public void fillRect(SunGraphics2D sg2d, int x, int y, int width, int height) Implements sun. | |
| fillRoundRect | back to summary |
|---|---|
| public void fillRoundRect(SunGraphics2D sg2d, int x, int y, int width, int height, int arcWidth, int arcHeight) Implements sun. | |
| fillSpans | back to summary |
|---|---|
| private static void fillSpans(SunGraphics2D sg2d, SpanIterator si) | |
| getFillSSI | back to summary |
|---|---|
| public static ShapeSpanIterator getFillSSI(SunGraphics2D sg2d) Return a ShapeSpanIterator instance that normalizes as appropriate for a fill operation as per the settings in the specified SunGraphics2D object. The ShapeSpanIterator will be newly constructed and ready to start taking in geometry. Note that the caller is responsible for calling dispose() on the returned ShapeSpanIterator inside a try/finally block:
ShapeSpanIterator ssi = LoopPipe.getFillSSI(sg2d);
try {
ssi.setOutputArea(clip);
ssi.appendPath(...); // or appendPoly
// iterate the spans from ssi and operate on them
} finally {
ssi.dispose();
}
| |
| getStrokeSpans | back to summary |
|---|---|
| public static ShapeSpanIterator getStrokeSpans(SunGraphics2D sg2d, Shape s) | |