@Concealed public class Graphics2DRenderer extends java.lang.Object implements GaugeRenderer
| Constructor and Description |
|---|
Graphics2DRenderer(java.awt.Graphics2D g,
ErrorHandler eh) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyTransform(java.awt.geom.AffineTransform transform)
This method allows an application of the given
AffineTransform object. |
void |
drawAndFillArc(java.awt.geom.Arc2D arc,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the drawing and filling of an outline
represented by the given
Arc2D instance, using
the given colors. |
void |
drawAndFillArea(java.awt.geom.Area area,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the drawing and filling of an outline
represented by the given
Area instance, using
the given colors. |
void |
drawAndFillArea(java.awt.geom.Area area,
java.awt.Rectangle outer,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the drawing and filling of an outline
represented by the given
Area instance, using
the given colors. |
void |
drawAndFillPolygon(java.awt.Polygon polygon,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the drawing and filling of an outline
represented by the given
Polygon instance, using
the given colors. |
void |
drawAndFillRect(java.awt.Rectangle rect,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the drawing and filling of an outline
represented by the given
Rectangle instance, using
the given colors. |
void |
drawAndFillRoundedRect(java.awt.geom.RoundRectangle2D roundRect,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the drawing and filling of the given
rectangle using the given instance of
Color and
rounded with the given arc width and height. |
void |
drawAndFillShape(java.awt.Shape shape,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the drawing and filling of an outline
represented by the given
Shape instance, using
the given colors. |
void |
drawArc(java.awt.geom.Arc2D arc,
java.awt.Color c)
This method supports the drawing of an outline represented
by the given
Arc2D instance, using the given
color as its border color. |
void |
drawArea(java.awt.geom.Area area,
java.awt.Color c)
This method supports the drawing of an area outlined
according to the given Area object, using the given color
as its border color.
|
void |
drawImage(java.lang.String strURL,
java.awt.Image image,
int x,
int y,
int width,
int height,
java.awt.image.ImageObserver imgObs)
This method supports the drawing of an image.
|
void |
drawLine(int x1,
int y1,
int x2,
int y2,
java.awt.Color c)
This method supports the drawing of a line with the given
color.
|
void |
drawLine(int x1,
int y1,
int x2,
int y2,
int thickness,
java.awt.Color c)
This method supports the drawing of a line with the given
thickness and color.
|
void |
drawPolygon(java.awt.Polygon poly,
java.awt.Color c)
This method supports the drawing of the outline of a
polygon defined by the specified
Polygon
object using the given instance of Color. |
void |
drawRect(java.awt.Rectangle rect,
java.awt.Color c)
This method supports the drawing of the given rectangle
using the given instance of
Color. |
void |
drawShape(java.awt.Shape shape,
java.awt.Color c)
This method supports the drawing of an outline represented
by the given
Shape instance, using the given
color as its border color. |
void |
drawString(DrawableObject.Label labelObj,
int x,
int y,
java.awt.Font f,
java.awt.Color c,
double angle)
This method supports the drawing of text in the given
color at the location specified by the point at
x1 and y1. |
void |
fillArc(java.awt.geom.Arc2D arc,
java.awt.Color c,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the filling of the given arc with the
given color.
|
void |
fillArea(java.awt.geom.Area area,
java.awt.Color c,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the filling of an area outlined
according to the given Area object, using the given color.
|
void |
fillArea(java.awt.geom.Area area,
java.awt.Rectangle outer,
java.awt.Color c,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the filling of an area outlined
according to the given Area object, using the given color.
|
void |
fillPolygon(java.awt.Polygon poly,
java.awt.Color c,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the filling of the given polygon
using the provided color as its border color.
|
void |
fillRect(java.awt.Rectangle rect,
java.awt.Color c,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the filling of the given rectangle
using the given instance of
Color. |
void |
fillShape(java.awt.Shape shape,
java.awt.Color c,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the filling of an outline represented
by the given
Shape instance, using the given
color as its fill color. |
java.awt.geom.AffineTransform |
getTransform()
This method gets the current
AffineTransform
object. |
void |
setTransform(java.awt.geom.AffineTransform transform)
This method allows an reset of the current transform
to the given
AffineTransform object. |
public Graphics2DRenderer(java.awt.Graphics2D g,
ErrorHandler eh)
public void drawShape(java.awt.Shape shape,
java.awt.Color c)
Shape instance, using the given
color as its border color.drawShape in interface GaugeRenderershape - Instance of Shapec - Color instance representing the intended color of
the shapepublic void fillShape(java.awt.Shape shape,
java.awt.Color c,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
Shape instance, using the given
color as its fill color.fillShape in interface GaugeRenderershape - Instance of Shapec - Color instance representing the intended fill
color of the shapesfxMap - Instance of HashMap containing
SFX attributes for this shapepublic void drawAndFillShape(java.awt.Shape shape,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
Shape instance, using
the given colors.drawAndFillShape in interface GaugeRenderershape - Instance of ShapeborderColor - Color instance representing the intended
borderColor of the shapefillColor - Color instance representing the intended fill
color of the shapesfxMap - Instance of HashMap containing
SFX attributes for this shapepublic void drawArc(java.awt.geom.Arc2D arc,
java.awt.Color c)
Arc2D instance, using the given
color as its border color.drawArc in interface GaugeRendererarc - Instance of Arc2Dc - Color instance representing the intended color of
the arcpublic void fillArc(java.awt.geom.Arc2D arc,
java.awt.Color c,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
fillArc in interface GaugeRendererarc - Instance of Arc2Dc - Color instance indicating the fill color of the
arcsfxMap - Instance of HashMap containing
SFX attributes for this shapepublic void drawAndFillArc(java.awt.geom.Arc2D arc,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
Arc2D instance, using
the given colors.drawAndFillArc in interface GaugeRendererarc - Instance of Arc2DborderColor - Color instance representing the intended
borderColor of the arcfillColor - Color instance representing the intended fill
color of the arcsfxMap - Instance of HashMap containing
SFX attributes for this arcpublic void drawArea(java.awt.geom.Area area,
java.awt.Color c)
drawArea in interface GaugeRendererarea - Instance of Areac - Color instance indicating the fill color of the
arcpublic void fillArea(java.awt.geom.Area area,
java.awt.Color c,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
fillArea in interface GaugeRendererarea - Instance of Areac - Color instance indicating the fill color of the
areasfxMap - Instance of HashMap containing
SFX attributes for this shapepublic void fillArea(java.awt.geom.Area area,
java.awt.Rectangle outer,
java.awt.Color c,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
area - Instance of Areac - Color instance indicating the fill color of the
areasfxMap - Instance of HashMap containing
SFX attributes for this shapepublic void drawAndFillArea(java.awt.geom.Area area,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
Area instance, using
the given colors.drawAndFillArea in interface GaugeRendererarea - Instance of AreaborderColor - Color instance representing the intended
borderColor of the areafillColor - Color instance representing the intended fill
color of the areasfxMap - Instance of HashMap containing
SFX attributes for this areapublic void drawAndFillArea(java.awt.geom.Area area,
java.awt.Rectangle outer,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
Area instance, using
the given colors.area - Instance of AreaborderColor - Color instance representing the intended
borderColor of the areafillColor - Color instance representing the intended fill
color of the areasfxMap - Instance of HashMap containing
SFX attributes for this areapublic void drawPolygon(java.awt.Polygon poly,
java.awt.Color c)
Polygon
object using the given instance of Color.drawPolygon in interface GaugeRendererpoly - The polygon to draw.c - The color with which to draw the polygonpublic void fillPolygon(java.awt.Polygon poly,
java.awt.Color c,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
fillPolygon in interface GaugeRendererpoly - Instance of Polygonc - Color instance indicating the fill color of the
polygonsfxMap - Instance of HashMap containing
SFX attributes for this shapepublic void drawAndFillPolygon(java.awt.Polygon polygon,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
Polygon instance, using
the given colors.drawAndFillPolygon in interface GaugeRendererpolygon - Instance of PolygonborderColor - Color instance representing the intended
borderColor of the polygonfillColor - Color instance representing the intended fill
color of the polygonsfxMap - Instance of HashMap containing
SFX attributes for this polygonpublic void drawRect(java.awt.Rectangle rect,
java.awt.Color c)
Color.drawRect in interface GaugeRendererrect - Instance of Rectanglec - Instance of Color to use for the rectangle.public void fillRect(java.awt.Rectangle rect,
java.awt.Color c,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
Color.fillRect in interface GaugeRendererrect - Instance of Rectangle marking the fill areac - Instance of Color to use when filling.sfxMap - Instance of HashMap containing
SFX attributes for this shapepublic void drawAndFillRect(java.awt.Rectangle rect,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
Rectangle instance, using
the given colors.drawAndFillRect in interface GaugeRendererrect - Instance of RectangleborderColor - Color instance representing the intended
borderColor of the rectanglefillColor - Color instance representing the intended fill
color of the rectanglesfxMap - Instance of HashMap containing
SFX attributes for this rectanglepublic void drawAndFillRoundedRect(java.awt.geom.RoundRectangle2D roundRect,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
Color and
rounded with the given arc width and height.drawAndFillRoundedRect in interface GaugeRendererroundRect - Instance of RoundRectangle2D marking the fill areaborderColor - Instance of Color to use for the border.fillColor - Instance of Color to use when filling.sfxMap - Instance of HashMap containing
SFX attributes for this shapepublic void drawLine(int x1,
int y1,
int x2,
int y2,
int thickness,
java.awt.Color c)
drawLine in interface GaugeRendererx1 - The first point's x coordinatey1 - The first point's y coordinatex2 - The second point's x coordinatey2 - The second point's y coordinatethickness - Width of the line in pixelsc - Color instance indicating the color of the line.public void drawLine(int x1,
int y1,
int x2,
int y2,
java.awt.Color c)
drawLine in interface GaugeRendererx1 - The first point's x coordinatey1 - The first point's y coordinatex2 - The second point's x coordinatey2 - The second point's y coordinatec - Color instance indicating the color of the linepublic void drawString(DrawableObject.Label labelObj, int x, int y, java.awt.Font f, java.awt.Color c, double angle)
x1 and y1.drawString in interface GaugeRendererlabel - String instance representing the text to drawx - The first point's x coordinatey - The first point's y coordinatef - Font instance indicating the color of the linec - Color instance indicating the color of the lineangle - The text rotation angle of the labelpublic void drawImage(java.lang.String strURL,
java.awt.Image image,
int x,
int y,
int width,
int height,
java.awt.image.ImageObserver imgObs)
drawImage in interface GaugeRendererstrURL - String instance used to load imageimage - Instance of Image to draw; may be nullx - x coordinate of image's top cornery - y coordinate of image's top cornerwidth - width of imageheight - height of imageimgObs - Instance of ImageObserver; can be nullpublic void applyTransform(java.awt.geom.AffineTransform transform)
AffineTransform object.applyTransform in interface GaugeRenderertransform - AffineTransform instance to applypublic java.awt.geom.AffineTransform getTransform()
AffineTransform
object.getTransform in interface GaugeRendererAffineTransformpublic void setTransform(java.awt.geom.AffineTransform transform)
AffineTransform object.setTransform in interface GaugeRenderertransform - AffineTransform instance to set