Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-04

oracle.dss.gauge
Class Graphics2DRenderer

java.lang.Object
  extended by oracle.dss.gauge.Graphics2DRenderer
All Implemented Interfaces:
GaugeRenderer

public class Graphics2DRenderer
extends java.lang.Object
implements GaugeRenderer

For internal use only. Application developers should not use this
This implementation of GaugeRenderer for Graphics2D destinations renders to a provided instance of Graphics2D.

Constructor Summary
Graphics2DRenderer(java.awt.Graphics2D g, ErrorHandler eh)
           
 
Method Summary
 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(java.lang.String label, 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graphics2DRenderer

public Graphics2DRenderer(java.awt.Graphics2D g,
                          ErrorHandler eh)
Method Detail

drawShape

public 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.

Specified by:
drawShape in interface GaugeRenderer
Parameters:
shape - Instance of Shape
c - Color instance representing the intended color of the shape

fillShape

public 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.

Specified by:
fillShape in interface GaugeRenderer
Parameters:
shape - Instance of Shape
c - Color instance representing the intended fill color of the shape
sfxMap - Instance of HashMap containing SFX attributes for this shape

drawAndFillShape

public 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.

Specified by:
drawAndFillShape in interface GaugeRenderer
Parameters:
shape - Instance of Shape
borderColor - Color instance representing the intended borderColor of the shape
fillColor - Color instance representing the intended fill color of the shape
sfxMap - Instance of HashMap containing SFX attributes for this shape

drawArc

public 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.

Specified by:
drawArc in interface GaugeRenderer
Parameters:
arc - Instance of Arc2D
c - Color instance representing the intended color of the arc

fillArc

public 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.

Specified by:
fillArc in interface GaugeRenderer
Parameters:
arc - Instance of Arc2D
c - Color instance indicating the fill color of the arc
sfxMap - Instance of HashMap containing SFX attributes for this shape

drawAndFillArc

public 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.

Specified by:
drawAndFillArc in interface GaugeRenderer
Parameters:
arc - Instance of Arc2D
borderColor - Color instance representing the intended borderColor of the arc
fillColor - Color instance representing the intended fill color of the arc
sfxMap - Instance of HashMap containing SFX attributes for this arc

drawArea

public 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.

Specified by:
drawArea in interface GaugeRenderer
Parameters:
area - Instance of Area
c - Color instance indicating the fill color of the arc

fillArea

public 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.

Specified by:
fillArea in interface GaugeRenderer
Parameters:
area - Instance of Area
c - Color instance indicating the fill color of the area
sfxMap - Instance of HashMap containing SFX attributes for this shape

fillArea

public 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.

Parameters:
area - Instance of Area
c - Color instance indicating the fill color of the area
sfxMap - Instance of HashMap containing SFX attributes for this shape

drawAndFillArea

public 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.

Specified by:
drawAndFillArea in interface GaugeRenderer
Parameters:
area - Instance of Area
borderColor - Color instance representing the intended borderColor of the area
fillColor - Color instance representing the intended fill color of the area
sfxMap - Instance of HashMap containing SFX attributes for this area

drawAndFillArea

public 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.

Parameters:
area - Instance of Area
borderColor - Color instance representing the intended borderColor of the area
fillColor - Color instance representing the intended fill color of the area
sfxMap - Instance of HashMap containing SFX attributes for this area

drawPolygon

public 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.

Specified by:
drawPolygon in interface GaugeRenderer
Parameters:
poly - The polygon to draw.
c - The color with which to draw the polygon

fillPolygon

public 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.

Specified by:
fillPolygon in interface GaugeRenderer
Parameters:
poly - Instance of Polygon
c - Color instance indicating the fill color of the polygon
sfxMap - Instance of HashMap containing SFX attributes for this shape

drawAndFillPolygon

public 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.

Specified by:
drawAndFillPolygon in interface GaugeRenderer
Parameters:
polygon - Instance of Polygon
borderColor - Color instance representing the intended borderColor of the polygon
fillColor - Color instance representing the intended fill color of the polygon
sfxMap - Instance of HashMap containing SFX attributes for this polygon

drawRect

public 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.

Specified by:
drawRect in interface GaugeRenderer
Parameters:
rect - Instance of Rectangle
c - Instance of Color to use for the rectangle.

fillRect

public 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.

Specified by:
fillRect in interface GaugeRenderer
Parameters:
rect - Instance of Rectangle marking the fill area
c - Instance of Color to use when filling.
sfxMap - Instance of HashMap containing SFX attributes for this shape

drawAndFillRect

public 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.

Specified by:
drawAndFillRect in interface GaugeRenderer
Parameters:
rect - Instance of Rectangle
borderColor - Color instance representing the intended borderColor of the rectangle
fillColor - Color instance representing the intended fill color of the rectangle
sfxMap - Instance of HashMap containing SFX attributes for this rectangle

drawAndFillRoundedRect

public 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.

Specified by:
drawAndFillRoundedRect in interface GaugeRenderer
Parameters:
roundRect - Instance of RoundRectangle2D marking the fill area
borderColor - 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 shape

drawLine

public 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.

Specified by:
drawLine in interface GaugeRenderer
Parameters:
x1 - The first point's x coordinate
y1 - The first point's y coordinate
x2 - The second point's x coordinate
y2 - The second point's y coordinate
thickness - Width of the line in pixels
c - Color instance indicating the color of the line.

drawLine

public 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. The line drawn will have a default thickness of 1 pixel.

Specified by:
drawLine in interface GaugeRenderer
Parameters:
x1 - The first point's x coordinate
y1 - The first point's y coordinate
x2 - The second point's x coordinate
y2 - The second point's y coordinate
c - Color instance indicating the color of the line

drawString

public void drawString(java.lang.String label,
                       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.

Specified by:
drawString in interface GaugeRenderer
Parameters:
label - String instance representing the text to draw
x - The first point's x coordinate
y - The first point's y coordinate
f - Font instance indicating the color of the line
c - Color instance indicating the color of the line
angle - The text rotation angle of the label

drawImage

public 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.

Specified by:
drawImage in interface GaugeRenderer
Parameters:
strURL - String instance used to load image
image - Instance of Image to draw; may be null
x - x coordinate of image's top corner
y - y coordinate of image's top corner
width - width of image
height - height of image
imgObs - Instance of ImageObserver; can be null

applyTransform

public void applyTransform(java.awt.geom.AffineTransform transform)
This method allows an application of the given AffineTransform object.

Specified by:
applyTransform in interface GaugeRenderer
Parameters:
transform - AffineTransform instance to apply

getTransform

public java.awt.geom.AffineTransform getTransform()
This method gets the current AffineTransform object.

Specified by:
getTransform in interface GaugeRenderer
Returns:
Instance of AffineTransform

setTransform

public void setTransform(java.awt.geom.AffineTransform transform)
This method allows an reset of the current transform to the given AffineTransform object.

Specified by:
setTransform in interface GaugeRenderer
Parameters:
transform - AffineTransform instance to set

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-04

Copyright © 1997, 2010, Oracle. All rights reserved.