Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 2 (11.1.2.3.0)

E17492-04


oracle.dss.gauge
Class GaugeExportXMLWriter

java.lang.Object
  extended by oracle.dss.presutil.XMLWriter
      extended by oracle.dss.dataView.ImageViewExportXMLWriter
          extended by oracle.dss.gauge.GaugeExportXMLWriter

All Implemented Interfaces:
GaugeRenderer

public class GaugeExportXMLWriter
extends ImageViewExportXMLWriter
implements GaugeRenderer
For internal use only. Application developers should not use this
Class used to render a Gauge as XML.

Field Summary
static java.lang.String ATTR_CURRENT_DATA
          Attribute name: metric values
static java.lang.String ATTR_FLASH_BIDI_TEXT
          Attribute for using flash 10 for bidi text
static java.lang.String ATTR_GAUGE_TYPE
          Attribute name: gaugeType.
static java.lang.String ATTR_INDICATOR_USE_THRESHOLD_FILLCOLOR
          Attribute name: useThresholdFillColor for indicator
static java.lang.String ATTR_POINT_OF_ROTATION
          Attribute name: point of rotation.
static java.lang.String ATTR_THRESHOLD_COLORS
          Attribute name: threshold colors
static java.lang.String ATTR_THRESHOLD_VALUES
          Attribute name: threshold values
static java.lang.String ELEM_GAUGE_SET
          Element name: gaugeSet.
protected  int m_column
           
protected  java.lang.String m_compName
           
protected  int m_compType
           
protected  CommonGauge m_gauge
           
protected  ComponentHandle m_handle
           
protected  int m_index
           
protected  int m_row
           
protected  boolean m_visible
           

 

Fields inherited from class oracle.dss.dataView.ImageViewExportXMLWriter
ATTR_ADS, ATTR_ALT, ATTR_ANG, ATTR_ANGLE, ATTR_ANIMATION_DOWN_COLOR, ATTR_ANIMATION_DURATION, ATTR_ANIMATION_INDICATORS, ATTR_ANIMATION_ON_DATA_CHANGE, ATTR_ANIMATION_ON_DISPLAY, ATTR_ANIMATION_UP_COLOR, ATTR_ATTACHMENT_MODE, ATTR_BC, ATTR_BEVEL, ATTR_BOUNDING_BOX, ATTR_BW, ATTR_CLICK_ACTION, ATTR_CLICK_EVENT_JS, ATTR_CLICK_LISTENER, ATTR_CLICKABLE, ATTR_CLIP, ATTR_CLOSURE_TYPE, ATTR_COLOR, ATTR_CUSTOM_PROPERTY, ATTR_CX, ATTR_CY, ATTR_D, ATTR_DIR, ATTR_DRAG, ATTR_DRILL_JS, ATTR_FC, ATTR_FONT, ATTR_FP, ATTR_FT, ATTR_FULL_TEXT, ATTR_G_ID, ATTR_G_ID_LIST, ATTR_GLOW, ATTR_GRADIENT_DIR_POINTS, ATTR_H, ATTR_HIDE_SHOW_SERIES_USE_NEW_BEHAVIOR, ATTR_HREF, ATTR_ID, ATTR_JUSTIFICATION, ATTR_LINK, ATTR_LINK_TEXT_COLOR, ATTR_LS, ATTR_LW, ATTR_M_ID, ATTR_METADATA_FONT, ATTR_MOUSE_TRANSPARENT, ATTR_NAME, ATTR_NOHREF, ATTR_OBJECT_ID, ATTR_ON_BLUR, ATTR_ON_CLICK, ATTR_ON_DBL_CLICK, ATTR_ON_FOCUS, ATTR_ON_KEY_DOWN, ATTR_ON_KEY_PRESS, ATTR_ON_KEY_UP, ATTR_ON_MOUSE_DOWN, ATTR_ON_MOUSE_MOVE, ATTR_ON_MOUSE_OUT, ATTR_ON_MOUSE_OVER, ATTR_ON_MOUSE_UP, ATTR_ON_SELECT, ATTR_P, ATTR_POINTS, ATTR_POSITION, ATTR_R, ATTR_RX, ATTR_RY, ATTR_S_ID, ATTR_S_ID_LIST, ATTR_SHADOW, ATTR_ST_ID, ATTR_TABINDEX, ATTR_TARGET, ATTR_TEXTURE_DISPLAY_MODE, ATTR_TEXTURE_URL, ATTR_TITLE, ATTR_TOOLTIP, ATTR_URL, ATTR_USE_TOOLTIP_TEMPLATE, ATTR_VERSION, ATTR_VISIBILITY, ATTR_W, ATTR_X, ATTR_X1, ATTR_X2, ATTR_Y, ATTR_Y1, ATTR_Y2, DEFAULT_BEVEL_ANGLE, DEFAULT_BEVEL_BLURX, DEFAULT_BEVEL_BLURY, DEFAULT_BEVEL_DISTANCE, DEFAULT_BEVEL_HIGHLIGHT_COLOR, DEFAULT_BEVEL_QUALITY, DEFAULT_BEVEL_SHADOW_COLOR, DEFAULT_BEVEL_STRENGTH, DEFAULT_BEVEL_TYPE, DEFAULT_GLOW_BLURX, DEFAULT_GLOW_BLURY, DEFAULT_GLOW_HIGHLIGHT_COLOR, DEFAULT_GLOW_INNER, DEFAULT_GLOW_KNOCKOUT, DEFAULT_GLOW_QUALITY, DEFAULT_GLOW_STRENGTH, DEFAULT_SHADOW_ANGLE, DEFAULT_SHADOW_BLURX, DEFAULT_SHADOW_BLURY, DEFAULT_SHADOW_COLOR, DEFAULT_SHADOW_DISTANCE, DEFAULT_SHADOW_HIDE, DEFAULT_SHADOW_INNER, DEFAULT_SHADOW_KNOCKOUT, DEFAULT_SHADOW_QUALITY, DEFAULT_SHADOW_STRENGTH, ELEM_CIRCLE, ELEM_CLIP_PATH, ELEM_DATA_BLOCK, ELEM_DATATIP_FORMAT, ELEM_FONT, ELEM_GRAD, ELEM_HANDLE, ELEM_IMAGE, ELEM_LINE, ELEM_LINE_MARKER, ELEM_LINEGRAD, ELEM_MENU, ELEM_MENU_ITEM, ELEM_METADATA, ELEM_OVAL, ELEM_PATH, ELEM_PIE_SLICE, ELEM_PIE_SLICE_LABEL, ELEM_POLYGON, ELEM_POLYLINE, ELEM_RECT, ELEM_ROOT, ELEM_SHAPE_ATTRIBUTES, ELEM_STOP, ELEM_TEXT, ELEM_TOOLTIP_FORMAT, m_fontIndex, VAL_ADS_ON, VAL_ANIMATION_ON_DISPLAY_AUTO, VAL_DRAG_BOUNDED, VAL_FALSE, VAL_FT_COLOR, VAL_FT_GRADIENT, VAL_FT_PATTERN, VAL_FT_TEXTURE, VAL_GD_CUSTOM, VAL_GD_DIAGONAL_135, VAL_GD_DIAGONAL_45, VAL_GD_DOWN, VAL_GD_RADIAL, VAL_GD_RIGHT, VAL_HIDDEN, VAL_JUSTIFICATION_CENTER, VAL_JUSTIFICATION_LEFT, VAL_JUSTIFICATION_RIGHT, VAL_NONE, VAL_TRUE

 

Fields inherited from class oracle.dss.presutil.XMLWriter
LINE_SEP, m_eh, m_elems, m_writer

 

Constructor Summary
GaugeExportXMLWriter(CommonGauge cg, java.io.OutputStream os, ErrorHandler eh)
          Constructor.
GaugeExportXMLWriter(CommonGauge cg, java.io.OutputStream os, ErrorHandler eh, java.lang.String charEnc)
          Constructor.
GaugeExportXMLWriter(CommonGauge cg, java.io.Writer writer, ErrorHandler eh)
          Constructor.
GaugeExportXMLWriter(CommonGauge cg, java.io.Writer writer, ErrorHandler eh, java.lang.String charEnc)
          Constructor.

 

Method Summary
 void applyTransform(java.awt.geom.AffineTransform transform)
          This method allows an application of the given AffineTransform object.
protected static java.lang.String convertCompTypeToString(int compType)
          Convert the objectId for the given IdentObj to a String.
static java.lang.String convertGradientDirectionToXMLString(int direction)
           
 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 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 imgURL, 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.
protected  void endGaugeSetElement()
          Ends the gaugeSet element.
 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 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.
protected  java.util.Locale getLocale()
          Returns the locale of the ImageView being rendered.
 java.awt.geom.AffineTransform getTransform()
          This method gets the current AffineTransform object.
protected  void init(GaugeEngine engine)
          Initialize the writer for each GaugeEngine.
protected  void init(int compType, int index, java.util.Map map, boolean visible)
          Initialize the writer for each component.
 void setTransform(java.awt.geom.AffineTransform transform)
          This method allows an reset of the current transform to the given AffineTransform object.
protected  boolean startElement(java.awt.Shape shape)
          Start an element for the given shape.
 boolean startGaugeSetElement(java.awt.Dimension size, int gaugeType)
          Start the gaugeSet element.
protected  boolean startImageElement(int x, int y, int width, int height, java.lang.String url)
          Start an image element.
 void writeAnimationAttributes()
          Writes all animation related attributes into the xml.
protected  void writeCompTypeAttributes()
          Write the attributes related to the component type.
protected  void writeFillAttributes(java.util.Map sfxMap, java.awt.Shape shape, java.awt.Color fillColor, oracle.dss.presutil.GradientObj gradient)
          Calculate the value for the fill attribute for the given component.
protected  void writeFillChildren(java.awt.Shape shape, oracle.dss.presutil.GradientObj gradient)
          Write the fill-related children for the given component.
protected  void writeGradientElement(oracle.dss.presutil.GradientObj gradient, java.awt.Shape shape)
          Write a gradient element to XML.
protected  void writeMetadataElement()
          Write a metadata tag with the min, max, metric value, and metric label.
 void writeTooltipAttribute(java.lang.String[] tooltipsArray)
          Write a tooltip for the current element using the tooltip attribute.
protected  void writeToolTipFormatting()
           
 void writeVisualEffectsAttributes(java.util.Map map)
          Writes the shadow and bevel attributes based on the input Map.

 

Methods inherited from class oracle.dss.dataView.ImageViewExportXMLWriter
_buildTooltipString, _buildTooltipString, convertArcTypeToString, convertColorToAttributeValue, convertShapeToPath, endElement, endRootElement, generateEvent, getFontAttributes, getFontFamily, getFontID, getFontMap, getFontMetrics, hasAlt, hasShapeAttributes, initXMLWriterCallback, isActiveDataService, isAnimationOnDisplay, isBIDILocale, isPPRAnimation, isUseDataIds, setUseDataIds, startCircleElement, startCircleOrOvalElement, startCircleOrOvalElement, startHandleElement, startLineElement, startLineElement, startOvalElement, startOvalElement, startPathElement, startPolygonElement, startPolygonElement, startPolylineElement, startRectElement, startRectElement, startRectElement, startRootElement, startTextElement, startTextElement, writeAttribute, writeBevelAttribute, writeCachedAttribute, writeCachedAttribute, writeCachedAttribute, writeCachedAttribute, writeCachedAttribute, writeCustomPropertyAttribute, writeFontIndexAttribute, writeGlowAttribute, writeGradientStopAttributes, writeMetadataElement, writeShadowAttribute, writeShapeAttributesElement

 

Methods inherited from class oracle.dss.presutil.XMLWriter
_roundDouble, checkPrevStartTag, checkPrevStartTag, close, closeStartTag, colorToHex, colorToHexWithAlpha, endCData, endElement, escape, flush, getBrighter, getCharacterEncoding, isAutomaticNewlines, isEncodingScriptTag, print, print, println, println, println, setAutomaticNewlines, setEncodingScriptTag, startCData, startElement, write, writeAttribute, writeAttribute, writeAttribute, writeAttribute, writeAttribute, writeText, writeXMLHeader

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

m_compType

protected int m_compType

m_index

protected int m_index

m_compName

protected java.lang.String m_compName

m_visible

protected boolean m_visible

m_column

protected int m_column

m_row

protected int m_row

ELEM_GAUGE_SET

public static final java.lang.String ELEM_GAUGE_SET
Element name: gaugeSet.
See Also:
Constant Field Values

ATTR_GAUGE_TYPE

public static final java.lang.String ATTR_GAUGE_TYPE
Attribute name: gaugeType.
See Also:
Constant Field Values

ATTR_POINT_OF_ROTATION

public static final java.lang.String ATTR_POINT_OF_ROTATION
Attribute name: point of rotation. Specifies the point that the indicator rotates around.
See Also:
Constant Field Values

ATTR_THRESHOLD_VALUES

public static final java.lang.String ATTR_THRESHOLD_VALUES
Attribute name: threshold values
See Also:
Constant Field Values

ATTR_THRESHOLD_COLORS

public static final java.lang.String ATTR_THRESHOLD_COLORS
Attribute name: threshold colors
See Also:
Constant Field Values

ATTR_INDICATOR_USE_THRESHOLD_FILLCOLOR

public static final java.lang.String ATTR_INDICATOR_USE_THRESHOLD_FILLCOLOR
Attribute name: useThresholdFillColor for indicator
See Also:
Constant Field Values

ATTR_CURRENT_DATA

public static final java.lang.String ATTR_CURRENT_DATA
Attribute name: metric values
See Also:
Constant Field Values

ATTR_FLASH_BIDI_TEXT

public static final java.lang.String ATTR_FLASH_BIDI_TEXT
Attribute for using flash 10 for bidi text
See Also:
Constant Field Values

m_gauge

protected CommonGauge m_gauge

m_handle

protected ComponentHandle m_handle

Constructor Detail

GaugeExportXMLWriter

public GaugeExportXMLWriter(CommonGauge cg,
                            java.io.OutputStream os,
                            ErrorHandler eh,
                            java.lang.String charEnc)
Constructor.
Parameters:
os - OutputStream to write to
eh - ErrorHandler to use
charEnc - character encoding to use; if null, UTF-8 will be used

GaugeExportXMLWriter

public GaugeExportXMLWriter(CommonGauge cg,
                            java.io.OutputStream os,
                            ErrorHandler eh)
Constructor. UTF-8 will be used as the character encoding.
Parameters:
os - OutputStream to write to
eh - ErrorHandler to use

GaugeExportXMLWriter

public GaugeExportXMLWriter(CommonGauge cg,
                            java.io.Writer writer,
                            ErrorHandler eh,
                            java.lang.String charEnc)
Constructor.
Parameters:
writer - Writer to write to
eh - ErrorHandler to use
charEnc - character encoding to use; if null, UTF-8 will be used

GaugeExportXMLWriter

public GaugeExportXMLWriter(CommonGauge cg,
                            java.io.Writer writer,
                            ErrorHandler eh)
Constructor. UTF-8 will be used as the character encoding.
Parameters:
writer - Writer to write to
eh - ErrorHandler to use

Method Detail

init

protected void init(GaugeEngine engine)
Initialize the writer for each GaugeEngine. This also involves writing a metadata tag with the min, max, metric value, and metric label.
Parameters:
engine - GaugeEngine currently being rendered

writeToolTipFormatting

protected void writeToolTipFormatting()
                               throws java.io.IOException,
                                      java.lang.Exception
Throws:
java.io.IOException
java.lang.Exception

writeMetadataElement

protected void writeMetadataElement()
Write a metadata tag with the min, max, metric value, and metric label.

init

protected void init(int compType,
                    int index,
                    java.util.Map map,
                    boolean visible)
Initialize the writer for each component.
Parameters:
compType - component type
map - property map
visible -

startGaugeSetElement

public boolean startGaugeSetElement(java.awt.Dimension size,
                                    int gaugeType)
                             throws java.io.IOException,
                                    java.lang.Exception
Start the gaugeSet element.
Parameters:
size - size of the gauge set
gaugeType - type of gauge
Returns:
true if the element was successfully started, false if not
Throws:
java.io.IOException - if there was a problem writing to the stream
java.lang.Exception - if another problem occurred

endGaugeSetElement

protected void endGaugeSetElement()
                           throws java.io.IOException,
                                  java.lang.Exception
Ends the gaugeSet element.
Throws:
java.io.IOException
java.lang.Exception

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

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

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(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.
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 imgURL,
                      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:
imgURL - 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:
Current 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

startImageElement

protected boolean startImageElement(int x,
                                    int y,
                                    int width,
                                    int height,
                                    java.lang.String url)
                             throws java.io.IOException,
                                    java.lang.Exception
Start an image element.
Parameters:
x - x coordinate of the top left corner of the image
y - y coordinate of the top left corner of the image
width - width of the image
height - height of the image
url - URL to the image
Returns:
true if the element was successfully started, false if not
Throws:
java.io.IOException - if there was a problem writing to the stream
java.lang.Exception - if another problem occurred

getLocale

protected java.util.Locale getLocale()
Returns the locale of the ImageView being rendered.
Overrides:
getLocale in class ImageViewExportXMLWriter
Returns:

writeTooltipAttribute

public void writeTooltipAttribute(java.lang.String[] tooltipsArray)
                           throws java.io.IOException,
                                  java.lang.Exception
Description copied from class: ImageViewExportXMLWriter
Write a tooltip for the current element using the tooltip attribute.
Overrides:
writeTooltipAttribute in class ImageViewExportXMLWriter
Throws:
java.io.IOException - if there was a problem writing to the stream
java.lang.Exception - if another problem occurred

startElement

protected boolean startElement(java.awt.Shape shape)
                        throws java.io.IOException,
                               java.lang.Exception
Start an element for the given shape.
Parameters:
shape - shape to render to XML
Throws:
java.io.IOException - if there was a problem writing to the stream
java.lang.Exception - if another problem occurred

writeFillAttributes

protected void writeFillAttributes(java.util.Map sfxMap,
                                   java.awt.Shape shape,
                                   java.awt.Color fillColor,
                                   oracle.dss.presutil.GradientObj gradient)
                            throws java.io.IOException,
                                   java.lang.Exception
Calculate the value for the fill attribute for the given component.
Parameters:
sfxMap - Instance of SFX for this component
shape - Component shape
fillColor - Standard color for this component
Throws:
java.io.IOException - if there was a problem writing to the stream
java.lang.Exception - if another problem occurred

writeFillChildren

protected void writeFillChildren(java.awt.Shape shape,
                                 oracle.dss.presutil.GradientObj gradient)
                          throws java.io.IOException,
                                 java.lang.Exception
Write the fill-related children for the given component.
Parameters:
shape -
gradient - the object containing the gradient information for this shape
Throws:
java.io.IOException - if there was a problem writing to the stream
java.lang.Exception - if another problem occurred

writeGradientElement

protected void writeGradientElement(oracle.dss.presutil.GradientObj gradient,
                                    java.awt.Shape shape)
                             throws java.io.IOException,
                                    java.lang.Exception
Write a gradient element to XML.
Parameters:
gradient - the object containing the gradient information for this shape
shape - Instance of Shape for this object
Throws:
java.io.IOException - if there was a problem writing to the stream
java.lang.Exception - if another problem occurred

writeCompTypeAttributes

protected void writeCompTypeAttributes()
                                throws java.io.IOException,
                                       java.lang.Exception
Write the attributes related to the component type.
Throws:
java.io.IOException - if there was a problem writing to the stream
java.lang.Exception - if another problem occurred

writeVisualEffectsAttributes

public void writeVisualEffectsAttributes(java.util.Map map)
                                  throws java.io.IOException,
                                         java.lang.Exception
Writes the shadow and bevel attributes based on the input Map.
Parameters:
map -
Throws:
java.io.IOException
java.lang.Exception

convertCompTypeToString

protected static java.lang.String convertCompTypeToString(int compType)
Convert the objectId for the given IdentObj to a String.
Parameters:
compType - int representing the component id constant
Returns:
id to use for the XML element corresponding to the IdentObj

convertGradientDirectionToXMLString

public static java.lang.String convertGradientDirectionToXMLString(int direction)
Parameters:
direction -
Returns:
string representation of the XML id for the gradient direction
For internal use only. Application developers should not use this
Convert a gradient direction to its string representation.

writeAnimationAttributes

public void writeAnimationAttributes()
                              throws java.io.IOException,
                                     java.lang.Exception
Writes all animation related attributes into the xml.
Overrides:
writeAnimationAttributes in class ImageViewExportXMLWriter
Throws:
java.io.IOException
java.lang.Exception

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 2 (11.1.2.3.0)

E17492-04


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