origin: (x, y)
=> (x+dx1, y+dy1)
=> (x+dx1+dx2, y+dy1+dy2)
=> (x+dx2, y+dy2)
=> origin
The four u[xy][12] parameters are the unsorted extreme coordinates
of the primitive in user space. They may have been generated by a
line or a rectangle so they could have u[xy]2 < u[xy]1 in some cases.
They should be sorted before calculating the bounds of the original
primitive (such as for calculating the user space bounds for the
Paint.createContext() method).
| Modifier and Type | Method and Description |
|---|---|
| public void | drawParallelogram(SunGraphics2D sg, double ux1, double uy1, double ux2, double uy2, double x, double y, double dx1, double dy1, double dx2, double dy2, double lw1, double lw2)
Draw a Parallelogram with the indicated line widths assuming a standard BasicStroke with MITER joins. |
| public void | fillParallelogram(SunGraphics2D sg, double ux1, double uy1, double ux2, double uy2, double x, double y, double dx1, double dy1, double dx2, double dy2)
|
| drawParallelogram | back to summary |
|---|---|
| public void drawParallelogram(SunGraphics2D sg, double ux1, double uy1, double ux2, double uy2, double x, double y, double dx1, double dy1, double dx2, double dy2, double lw1, double lw2) 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. | |
| fillParallelogram | back to summary |
|---|---|
| public void fillParallelogram(SunGraphics2D sg, double ux1, double uy1, double ux2, double uy2, double x, double y, double dx1, double dy1, double dx2, double dy2) | |