|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.util.ShapePainter
public abstract class ShapePainter extends java.lang.Object
Class used to paint the shape toFill and outline. It gets the required colors and other entityStyle from the style sheet and paints the shape accordingly.
| Constructor and Description |
|---|
ShapePainter()
|
| Modifier and Type | Method and Description |
|---|---|
static Polygon2D |
calculateSelection(Line2D contour)
Calculate 2 pixels thick outline around chart line |
static Polygon2D |
calculateSelection(Polygon2D contour)
Calculate 4 pixels thick outline around chart line |
static java.awt.Image |
loadImage(java.lang.String imagePath)
Loads image from specified path |
static java.awt.Image |
loadImage(java.net.URL imageURL)
Loads image from specified URL |
static void |
paint(AbstractGraphics g,
AbstractPaintTags tag,
PaintMode paintMode,
Primitive shape,
Style style)
Paints shape with fill and outline. |
static void |
paint(AbstractGraphics g,
AbstractPaintTags tag,
PaintMode paintMode,
Primitive shape,
Style style,
int index)
Paints shape toFill and outline |
static void |
paintFill(AbstractGraphics g,
AbstractPaintTags tag,
PaintMode paintMode,
Primitive shape,
Style style)
Paint the polygon with fill. |
static boolean |
paintFill(AbstractGraphics g,
AbstractPaintTags tag,
PaintMode paintMode,
Primitive shape,
Style style,
int index)
Paint the polygon toFill |
static void |
paintOutline(AbstractGraphics g,
AbstractPaintTags tag,
Primitive shape,
Style style)
Paints the polygon outline. |
static void |
paintOutline(AbstractGraphics g,
AbstractPaintTags tag,
Primitive shape,
Style style,
int index)
Paints the polygon outline |
static void |
paintOutlines(AbstractGraphics g,
AbstractPaintTags tag,
java.util.List<? extends Primitive> shapes,
int shapeCount,
Style style)
Render outlines of many primitives with the same tag and style. |
static void |
paintSurface(AbstractGraphics g,
AbstractPaintTags tag,
java.util.ArrayList<Polygon3D> shapes,
java.util.ArrayList<java.awt.Color> colors,
PaintMode paintMode,
Style style)
Paints the surface, specialized method for surfaces, which have lots of shapes and not that many states |
static void |
paintSurfaceFrame(AbstractGraphics g,
AbstractPaintTags tag,
java.util.ArrayList<Polygon3D> shapes,
Style style)
Paints surface outline, specialized method for surfaces, which have lots of shapes and not that many states |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShapePainter()
| Method Detail |
|---|
public static boolean paintFill(AbstractGraphics g,
AbstractPaintTags tag,
PaintMode paintMode,
Primitive shape,
Style style,
int index)
g - graphics contexttag - color tag, which specifies what colors to usepaintMode - painting modeshape - shape to paintstyle - style of the seriesindex - data point index
public static void paintFill(AbstractGraphics g,
AbstractPaintTags tag,
PaintMode paintMode,
Primitive shape,
Style style)
g - graphics contexttag - color tag, which specifies what colors to usepaintMode - painting modeshape - shape to paintstyle - style of the series
public static void paintOutline(AbstractGraphics g,
AbstractPaintTags tag,
Primitive shape,
Style style,
int index)
g - graphics contexttag - color tag, which specifies what colors to useshape - shape to paintstyle - style of the seriesindex - data point index
public static void paintOutline(AbstractGraphics g,
AbstractPaintTags tag,
Primitive shape,
Style style)
g - graphics contexttag - color tag, which specifies what colors to useshape - shape to paintstyle - style of the series
public static void paintOutlines(AbstractGraphics g,
AbstractPaintTags tag,
java.util.List<? extends Primitive> shapes,
int shapeCount,
Style style)
g - graphics contexttag - style tagshapes - shapes to paintshapeCount - number of shapes to usestyle - style to use
public static void paint(AbstractGraphics g,
AbstractPaintTags tag,
PaintMode paintMode,
Primitive shape,
Style style,
int index)
g - graphics contexttag - color tag, which specifies what colors to usepaintMode - painting modeshape - shape to paintstyle - style of the seriesindex - data point index
public static void paint(AbstractGraphics g,
AbstractPaintTags tag,
PaintMode paintMode,
Primitive shape,
Style style)
g - graphics contexttag - color tag, which specifies what colors to usepaintMode - painting modeshape - shape to paintstyle - style of the series
public static java.awt.Image loadImage(java.lang.String imagePath)
throws java.io.IOException
imagePath - image path stringjava.io.IOException - if any error occurs while loading
public static java.awt.Image loadImage(java.net.URL imageURL)
throws java.io.IOException
imageURL - image URLjava.io.IOException - if any error occurs while loadingpublic static Polygon2D calculateSelection(Polygon2D contour)
public static Polygon2D calculateSelection(Line2D contour)
public static void paintSurface(AbstractGraphics g,
AbstractPaintTags tag,
java.util.ArrayList<Polygon3D> shapes,
java.util.ArrayList<java.awt.Color> colors,
PaintMode paintMode,
Style style)
g - graphics contexttag - color tag, which specifies what colors to useshapes - polygons to paintcolors - polygon colorspaintMode - painting modestyle - style of the series
public static void paintSurfaceFrame(AbstractGraphics g,
AbstractPaintTags tag,
java.util.ArrayList<Polygon3D> shapes,
Style style)
g - graphics contexttag - color tag, which specifies what colors to useshapes - polygons to paintstyle - style of the series
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||