|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mit.sketch.util.AWTUtil
Implements some methods not found in jdk 1.1
| Field Summary | |
static Color[] |
colors
Array of 8 colors for in-loop alternated coloring. |
static Color[] |
colors2
Array of 2 colors. |
| Constructor Summary | |
AWTUtil()
|
|
| Method Summary | |
static Vertex[] |
flatten(Shape shape,
double flatness,
int limit)
Return an array of vertices corresponding to the flattened version of the input. |
static Component[] |
getAllComponentsRecursively(Container container)
Get all the sub componets in this container. |
static double |
getCurveLSQEror(Shape shape,
StrokeData data,
Range range)
Get the LSQE for the curve by measuring the distance to the vertices in range. |
static double |
leastSquaresForLine(Line line,
Point[] points)
calculate the lsq error. |
static double |
leastSquaresForPolygon(Vertex[] vertices,
Point[] points)
Calculate the lsq error. |
static void |
paintDot(double x,
double y,
Color color,
Component component,
AffineTransform transform)
Paint x vs y in the frame using the input color and affine transform. |
static void |
paintDot(double x,
double y,
Color color,
Image image,
AffineTransform transform)
Paint x vs y in the frame using the input color and affine transform. |
static void |
paintDot(int x,
int y,
Color color,
Component component,
AffineTransform transform)
Paint x vs y in the frame using the input color and affine transform. |
static void |
paintDot(int x,
int y,
Color color,
Image image,
AffineTransform transform)
Paint x vs y in the frame using the input color and affine transform. |
static void |
paintDots(double[] f,
double[] g,
Color color,
Component component,
AffineTransform transform,
int brush_size)
Paint f vs g in the frame using the input color and affine transform. |
static void |
paintDots(double[] f,
double[] g,
Color color,
Image image,
AffineTransform transform,
int brush_size)
Paint f vs g in the frame using the input color and affine transform. |
static void |
paintDots(double[] f,
int[] g,
Color color,
Component component,
AffineTransform transform)
Paint f vs g in the frame using the input color and affine transform. |
static void |
paintDots(double[] f,
int[] g,
Color color,
Image image,
AffineTransform transform)
Paint f vs g in the frame using the input color and affine transform. |
static void |
paintDots(int[] f,
double[] g,
Color color,
Component component,
AffineTransform transform)
Paint f vs g in the frame using the input color and affine transform. |
static void |
paintDots(int[] f,
double[] g,
Color color,
Component component,
AffineTransform transform,
int brush_size)
Paint f vs g in the frame using the input color and affine transform. |
static void |
paintDots(int[] f,
double[] g,
Color color,
Image image,
AffineTransform transform)
Paint f vs g in the frame using the input color and affine transform. |
static void |
paintDots(int[] f,
double[] g,
Color color,
Image image,
AffineTransform transform,
int brush_size)
Paint f vs g in the frame using the input color and affine transform. |
static void |
paintDots(int[] f,
int[] g,
Color color,
Component component,
AffineTransform transform)
Paint f vs g in the frame using the input color and affine transform. |
static void |
paintDots(int[] f,
int[] g,
Color color,
Image image,
AffineTransform transform)
Paint f vs g in the frame using the input color and affine transform. |
static void |
paintFvsG(double[] f,
double[] g,
Color color,
Component component,
AffineTransform transform)
Paint f vs g in the frame using the input color and affine transform. |
static void |
paintFvsG(double[] f,
double[] g,
Color color,
Image image,
AffineTransform transform)
Paint f vs g in the frame using the input color and affine transform. |
static void |
paintFvsG(long[] f,
double[] g,
Color color,
Component component,
AffineTransform transform)
Paint f vs g in the frame using the input color and affine transform. |
static void |
paintFvsG(long[] f,
double[] g,
Color color,
Image image,
AffineTransform transform)
Paint f vs g in the frame using the input color and affine transform. |
static void |
paintLine(Line line,
Color color,
Component component,
AffineTransform transform)
Paint line. |
static void |
paintLine(Line line,
Color color,
Image image,
AffineTransform transform)
Paint line. |
static Vertex[] |
simplifyPolygon(Vertex[] input_vertices,
double turn_angle_treshold)
Simplify the polygon to get rid of consecutive lines which are sufficiently parallel. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final Color[] colors
public static final Color[] colors2
| Constructor Detail |
public AWTUtil()
| Method Detail |
public static Component[] getAllComponentsRecursively(Container container)
public static Vertex[] flatten(Shape shape,
double flatness,
int limit)
public static double getCurveLSQEror(Shape shape,
StrokeData data,
Range range)
public static double leastSquaresForPolygon(Vertex[] vertices,
Point[] points)
public static double leastSquaresForLine(Line line,
Point[] points)
public static void paintFvsG(double[] f,
double[] g,
Color color,
Image image,
AffineTransform transform)
public static void paintFvsG(double[] f,
double[] g,
Color color,
Component component,
AffineTransform transform)
public static void paintLine(Line line,
Color color,
Image image,
AffineTransform transform)
public static void paintLine(Line line,
Color color,
Component component,
AffineTransform transform)
public static void paintDots(double[] f,
int[] g,
Color color,
Image image,
AffineTransform transform)
public static void paintDots(double[] f,
int[] g,
Color color,
Component component,
AffineTransform transform)
public static void paintDots(double[] f,
double[] g,
Color color,
Image image,
AffineTransform transform,
int brush_size)
public static void paintDots(double[] f,
double[] g,
Color color,
Component component,
AffineTransform transform,
int brush_size)
public static void paintDots(int[] f,
double[] g,
Color color,
Image image,
AffineTransform transform,
int brush_size)
public static void paintDots(int[] f,
double[] g,
Color color,
Component component,
AffineTransform transform,
int brush_size)
public static void paintDots(int[] f,
double[] g,
Color color,
Image image,
AffineTransform transform)
public static void paintDots(int[] f,
double[] g,
Color color,
Component component,
AffineTransform transform)
public static void paintDots(int[] f,
int[] g,
Color color,
Image image,
AffineTransform transform)
public static void paintDots(int[] f,
int[] g,
Color color,
Component component,
AffineTransform transform)
public static void paintDot(int x,
int y,
Color color,
Image image,
AffineTransform transform)
public static void paintDot(int x,
int y,
Color color,
Component component,
AffineTransform transform)
public static void paintDot(double x,
double y,
Color color,
Image image,
AffineTransform transform)
public static void paintDot(double x,
double y,
Color color,
Component component,
AffineTransform transform)
public static void paintFvsG(long[] f,
double[] g,
Color color,
Image image,
AffineTransform transform)
public static void paintFvsG(long[] f,
double[] g,
Color color,
Component component,
AffineTransform transform)
public static Vertex[] simplifyPolygon(Vertex[] input_vertices,
double turn_angle_treshold)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||