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

E17492-02

oracle.dss.dataView
Class ImageViewExportXMLWriter

java.lang.Object
  extended by oracle.dss.presutil.XMLWriter
      extended by oracle.dss.dataView.ImageViewExportXMLWriter
Direct Known Subclasses:
GaugeExportXMLWriter

public class ImageViewExportXMLWriter
extends oracle.dss.presutil.XMLWriter

For internal use only. Application developers should not use this
For internal use only. Application developers should not use this
Class used to render an ImageView as XML.

Field Summary
static java.lang.String ATTR_ADS
          Attribute name: ads.
static java.lang.String ATTR_ALT
          Attribute name: alt.
static java.lang.String ATTR_ANG
          Attribute name: angle.
static java.lang.String ATTR_ANGLE
          Attribute name: angle.
static java.lang.String ATTR_ANIMATION_DOWN_COLOR
          Attribute name: animationDownColor.
static java.lang.String ATTR_ANIMATION_DURATION
          Attribute name: animationDuration.
static java.lang.String ATTR_ANIMATION_INDICATORS
          Attribute name: animationIndicators.
static java.lang.String ATTR_ANIMATION_ON_DATA_CHANGE
          Attribute name: animationOnDataChange.
static java.lang.String ATTR_ANIMATION_ON_DISPLAY
          Attribute name: animationOnDisplay.
static java.lang.String ATTR_ANIMATION_UP_COLOR
          Attribute name: animationUpColor.
static java.lang.String ATTR_BC
          Attribute name: bc.
static java.lang.String ATTR_BEVEL
          Attribute name: bevel.
static java.lang.String ATTR_BOUNDING_BOX
          Attribute name: bb.
static java.lang.String ATTR_BW
          Attribute name: bw.
static java.lang.String ATTR_CLICK_ACTION
          Attribute name: clickAction.
static java.lang.String ATTR_CLICK_EVENT_JS
          Attribute name: clickEventJs.
static java.lang.String ATTR_CLICK_LISTENER
          Attribute name: clickListener.
static java.lang.String ATTR_CLICKABLE
          Attribute name: clickable.
static java.lang.String ATTR_CLIP
          Attribute name: clip.
static java.lang.String ATTR_CLOSURE_TYPE
          Attribute name: closureType.
static java.lang.String ATTR_COLOR
          Attribute name: color.
static java.lang.String ATTR_CUSTOM_PROPERTY
           
static java.lang.String ATTR_CX
          Attribute name: cx.
static java.lang.String ATTR_CY
          Attribute name: cy.
static java.lang.String ATTR_D
          Attribute name: d.
static java.lang.String ATTR_DIR
          Attribute name: dir.
static java.lang.String ATTR_DRAG
           
static java.lang.String ATTR_DRILL_JS
          Attribute name: drillJs.
static java.lang.String ATTR_FC
          Attribute name: fc.
static java.lang.String ATTR_FONT
          Attribute name: font.
static java.lang.String ATTR_FP
          Attribute name: fp.
static java.lang.String ATTR_FT
          Attribute name: fillType.
static java.lang.String ATTR_FULL_TEXT
          Attribute name: full text.
static java.lang.String ATTR_G_ID
          Attribute name: gId.
static java.lang.String ATTR_G_ID_LIST
          Attribute name: gIdList.
static java.lang.String ATTR_GLOW
          Attribute name: glow.
static java.lang.String ATTR_GRADIENT_DIR_POINTS
          Attribute name: gradientDirPoints.
static java.lang.String ATTR_H
          Attribute name: h.
static java.lang.String ATTR_HREF
          Attribute name: href.
static java.lang.String ATTR_ID
          Attribute name: id.
static java.lang.String ATTR_JUSTIFICATION
          Attribute name: justification.
static java.lang.String ATTR_LINK
          Attribute name: link.
protected static java.lang.String ATTR_LINK_TEXT_COLOR
           
static java.lang.String ATTR_LS
          Attribute name: ls.
static java.lang.String ATTR_LW
          Attribute name: lw.
static java.lang.String ATTR_M_ID
          Attribute name: mId.
static java.lang.String ATTR_METADATA_FONT
           
static java.lang.String ATTR_MOUSE_TRANSPARENT
          Attribute name: mouseTransparent.
static java.lang.String ATTR_NAME
          Attribute name: name.
static java.lang.String ATTR_NOHREF
          Attribute name: nohref.
static java.lang.String ATTR_OBJECT_ID
          Attribute name: ObjectID.
static java.lang.String ATTR_ON_BLUR
          Attribute name: onBlur.
static java.lang.String ATTR_ON_CLICK
          Attribute name: onClick.
static java.lang.String ATTR_ON_DBL_CLICK
          Attribute name: onDblClick.
static java.lang.String ATTR_ON_FOCUS
          Attribute name: onFocus.
static java.lang.String ATTR_ON_KEY_DOWN
          Attribute name: onKeyDown.
static java.lang.String ATTR_ON_KEY_PRESS
          Attribute name: onKeyPress.
static java.lang.String ATTR_ON_KEY_UP
          Attribute name: onKeyUp.
static java.lang.String ATTR_ON_MOUSE_DOWN
          Attribute name: onMouseDown.
static java.lang.String ATTR_ON_MOUSE_MOVE
          Attribute name: onMouseMove.
static java.lang.String ATTR_ON_MOUSE_OUT
          Attribute name: onMouseOut.
static java.lang.String ATTR_ON_MOUSE_OVER
          Attribute name: onMouseOver.
static java.lang.String ATTR_ON_MOUSE_UP
          Attribute name: onMouseUp.
static java.lang.String ATTR_ON_SELECT
          Attribute name: onSelect.
static java.lang.String ATTR_P
          Attribute name: p.
static java.lang.String ATTR_POINTS
          Attribute name: points.
static java.lang.String ATTR_POSITION
          Attribute name: position.
static java.lang.String ATTR_R
          Attribute name: r.
static java.lang.String ATTR_RX
          Attribute name: rx.
static java.lang.String ATTR_RY
          Attribute name: ry.
static java.lang.String ATTR_S_ID
          Attribute name: sId.
static java.lang.String ATTR_S_ID_LIST
          Attribute name: series.
static java.lang.String ATTR_SHADOW
          Attribute name: shadow.
static java.lang.String ATTR_ST_ID
          Attribute name: stId.
static java.lang.String ATTR_TABINDEX
          Attribute name: tabindex.
static java.lang.String ATTR_TARGET
          Attribute name: target.
static java.lang.String ATTR_TEXTURE_DISPLAY_MODE
          Attribute name: textureDisplayMode.
static java.lang.String ATTR_TEXTURE_URL
          Attribute name: textureUrl.
static java.lang.String ATTR_TITLE
          Attribute name: title.
static java.lang.String ATTR_TOOLTIP
          Attribute name: tooltip.
static java.lang.String ATTR_URL
          Attribute name: url.
static java.lang.String ATTR_USE_TOOLTIP_TEMPLATE
          Attribute name: useTooltipTemplate.
static java.lang.String ATTR_VERSION
          Attribute name: version.
static java.lang.String ATTR_VISIBILITY
          Attribute name: visibility.
static java.lang.String ATTR_W
          Attribute name: w.
static java.lang.String ATTR_X
          Attribute name: x.
static java.lang.String ATTR_X1
          Attribute name: x1.
static java.lang.String ATTR_X2
          Attribute name: x2.
static java.lang.String ATTR_Y
          Attribute name: y.
static java.lang.String ATTR_Y1
          Attribute name: y1.
static java.lang.String ATTR_Y2
          Attribute name: y2.
static double DEFAULT_BEVEL_ANGLE
           
static double DEFAULT_BEVEL_BLURX
           
static double DEFAULT_BEVEL_BLURY
           
static double DEFAULT_BEVEL_DISTANCE
           
static java.awt.Color DEFAULT_BEVEL_HIGHLIGHT_COLOR
           
static int DEFAULT_BEVEL_QUALITY
           
static java.awt.Color DEFAULT_BEVEL_SHADOW_COLOR
           
static double DEFAULT_BEVEL_STRENGTH
           
static java.lang.String DEFAULT_BEVEL_TYPE
           
static double DEFAULT_GLOW_BLURX
           
static double DEFAULT_GLOW_BLURY
           
static java.awt.Color DEFAULT_GLOW_HIGHLIGHT_COLOR
           
static int DEFAULT_GLOW_INNER
           
static int DEFAULT_GLOW_KNOCKOUT
           
static int DEFAULT_GLOW_QUALITY
           
static double DEFAULT_GLOW_STRENGTH
           
static double DEFAULT_SHADOW_ANGLE
           
static double DEFAULT_SHADOW_BLURX
           
static double DEFAULT_SHADOW_BLURY
           
static java.awt.Color DEFAULT_SHADOW_COLOR
           
static double DEFAULT_SHADOW_DISTANCE
           
static int DEFAULT_SHADOW_HIDE
           
static int DEFAULT_SHADOW_INNER
           
static int DEFAULT_SHADOW_KNOCKOUT
           
static int DEFAULT_SHADOW_QUALITY
           
static double DEFAULT_SHADOW_STRENGTH
           
static java.lang.String ELEM_CIRCLE
          Element name: circle.
static java.lang.String ELEM_CLIP_PATH
          Element name: clipPath.
static java.lang.String ELEM_DATA_BLOCK
           
static java.lang.String ELEM_FONT
          Element name: font.
static java.lang.String ELEM_GRAD
          Element name: grad.
static java.lang.String ELEM_HANDLE
           
static java.lang.String ELEM_IMAGE
          Element name: image.
static java.lang.String ELEM_LINE
          Element name: line.
static java.lang.String ELEM_LINE_MARKER
          Element name: lineMarker.
static java.lang.String ELEM_LINEGRAD
          Element name: lineGradient.
static java.lang.String ELEM_MENU
           
static java.lang.String ELEM_MENU_ITEM
           
static java.lang.String ELEM_METADATA
          Element name: metadata.
static java.lang.String ELEM_OVAL
          Element name: oval.
static java.lang.String ELEM_PATH
          Element name: path.
static java.lang.String ELEM_PIE_SLICE
           
static java.lang.String ELEM_PIE_SLICE_LABEL
          Label subelement for enclosing the shapeAttributes for the label of a pie slice element.
static java.lang.String ELEM_POLYGON
          Element name: polygon.
static java.lang.String ELEM_POLYLINE
          Element name: polyline.
static java.lang.String ELEM_RECT
          Element name: rect.
static java.lang.String ELEM_ROOT
          Element name: root.
static java.lang.String ELEM_SHAPE_ATTRIBUTES
          Element name: shapeAttributes.
static java.lang.String ELEM_STOP
          Element name: stop.
static java.lang.String ELEM_TEXT
          Element name: text.
static java.lang.String ELEM_TOOLTIP_FORMAT
          Element name: tooltip formatting.
protected  java.util.List<java.lang.String> m_fontIndex
          ArrayList containing all the font strings encountered so far.
static java.lang.String VAL_ADS_ON
          Value name: on
static java.lang.String VAL_ANIMATION_ON_DISPLAY_AUTO
           
static java.lang.String VAL_DRAG_BOUNDED
          Value name: bounded.
static java.lang.String VAL_FALSE
          Value name: false
static java.lang.String VAL_FT_COLOR
          Value name: FT_COLOR.
static java.lang.String VAL_FT_GRADIENT
          Value name: FT_GRADIENT.
static java.lang.String VAL_FT_PATTERN
          Value name: FT_PATTERN.
static java.lang.String VAL_FT_TEXTURE
          Value name: FT_TEXTURE.
static java.lang.String VAL_GD_CUSTOM
          Value name: GD_CUSTOM_LINEAR.
static java.lang.String VAL_GD_DIAGONAL_135
          Value name: GD_DIAGONAL_135.
static java.lang.String VAL_GD_DIAGONAL_45
          Value name: GD_DIAGONAL_45.
static java.lang.String VAL_GD_DOWN
          Value name: GD_DOWN.
static java.lang.String VAL_GD_RADIAL
          Value name: GD_RADIAL.
static java.lang.String VAL_GD_RIGHT
          Value name: GD_RIGHT.
static java.lang.String VAL_HIDDEN
          Value name: hidden.
static java.lang.String VAL_JUSTIFICATION_CENTER
          Value name: justification center.
static java.lang.String VAL_JUSTIFICATION_LEFT
          Value name: justification left.
static java.lang.String VAL_JUSTIFICATION_RIGHT
          Value name: justification right.
static java.lang.String VAL_NONE
          Value name: none.
static java.lang.String VAL_TRUE
          Value name: true
 
Fields inherited from class oracle.dss.presutil.XMLWriter
LINE_SEP, m_eh, m_elems, m_writer
 
Constructor Summary
ImageViewExportXMLWriter(java.io.OutputStream os, ErrorHandler eh)
          Constructor.
ImageViewExportXMLWriter(java.io.OutputStream os, ErrorHandler eh, java.lang.String charEnc)
          Constructor.
ImageViewExportXMLWriter(java.io.Writer writer, ErrorHandler eh)
          Constructor.
ImageViewExportXMLWriter(java.io.Writer writer, ErrorHandler eh, java.lang.String charEnc)
          Constructor.
 
Method Summary
protected static java.lang.String _buildTooltipString(java.util.ArrayList<java.lang.String> tooltipsArray)
           
protected static java.lang.String _buildTooltipString(java.lang.String[] tooltipsArray)
           
protected static java.lang.String convertArcTypeToString(int arcType)
          Convert an Arc2D arcType to a String.
protected static java.lang.String convertColorToAttributeValue(java.awt.Color color, ErrorHandler eh)
          Get a color in a form appropriate for an attribute value.
protected  java.lang.String convertShapeToPath(java.awt.Shape shape)
          Convert a Shape object to a path element for use in XML.
protected  void endElement(java.lang.String name)
          End the given element.
 void endRootElement()
          Ends the root element.
protected  java.lang.String generateEvent(java.lang.String[][] eventParams)
          Helper method for generating the javascript String used to support the XMLWriterCallback.
static java.lang.String getFontAttributes(java.awt.Font font, java.awt.Color c, boolean bUnderline, ErrorHandler eh)
          Gets attributes for the given font.
protected static java.lang.String getFontFamily(java.lang.String name, boolean bQuotes)
          Get the HTML font family for the given Java font family.
 int getFontID(java.lang.String fontString)
          Returns the index of the font represented by fontString.
protected  java.lang.String getFontMap()
          Returns a String with fontName,fontURL mappings.
static java.awt.FontMetrics getFontMetrics(java.awt.Graphics g, java.awt.Font f)
          Calculates the FontMetrics for the font using the Graphics object.
protected  java.util.Locale getLocale()
          Returns the locale of the ImageView being rendered.
 boolean hasAlt()
          Returns true if ShapeAttributes element has alt text
 boolean hasShapeAttributes()
          Returns true if the current element may have shapeAttributes.
protected  void initXMLWriterCallback(XMLWriterCallback callback)
          Specifies an XMLWriterCallback to use when rendering the xml.
 boolean isActiveDataService()
          Returns true if the imageView is using the active data service.
 boolean isAnimationOnDisplay()
          Returns true if the imageView is using ppr animations.
protected  boolean isBIDILocale()
          Returns true if the current locale is one of the BIDI locales.
 boolean isPPRAnimation()
          Returns true if the imageView is using ppr animations.
 boolean isUseDataIds()
           
 void setUseDataIds(boolean b)
           
 boolean startCircleElement(double cx, double cy, double r)
          Start a circle element.
 boolean startCircleOrOvalElement(java.awt.geom.Arc2D arc)
          Start a Circle or Ellipse element, depending on the shape of the given arc.
 boolean startCircleOrOvalElement(java.awt.Rectangle rect)
          Start a Circle or Ellipse element, depending on the shape of the given rectangle.
 void startHandleElement(java.util.Map<java.lang.String,java.lang.String> metadata)
          Starts a handle element for using in grouping objects.
 boolean startLineElement(double x1, double y1, double x2, double y2)
          Starts a line element using coordinates in double precision.
 boolean startLineElement(int x1, int y1, int x2, int y2)
          Start a line element.
 boolean startOvalElement(double cx, double cy, double rx, double ry)
          Start an oval element.
 boolean startOvalElement(java.awt.Rectangle rect)
          Start an oval element.
 boolean startPathElement(java.awt.Shape shape)
          Start a path element.
 boolean startPolygonElement(int[] xCoords, int[] yCoords, int count)
          Start a polygon element.
 boolean startPolygonElement(java.awt.Polygon p)
          Start a polygon element.
 boolean startPolylineElement(java.awt.Point[] points)
          Start a polyline element.
 boolean startRectElement(int x, int y, int width, int height)
          Start a rect element.
 boolean startRectElement(java.awt.Rectangle rect)
          Start a rect element.
 boolean startRectElement(java.awt.Rectangle rect, int rx, int ry)
          Start a rounded rect element.
 boolean startRootElement()
          Start the root element.
 boolean startTextElement(int x, int y)
          Start a text element.
 boolean startTextElement(int x, int y, int len)
          Start a text element.
 void writeAnimationAttributes()
          Writes all animation related attributes into the xml.
 void writeAttribute(java.lang.String name, java.awt.Color color)
          Write a color as an attribute on the current element.
 void writeBevelAttribute(java.awt.Color highlightColor, java.awt.Color shadowColor, java.lang.Double distance, java.lang.Double strength, java.lang.Double angle, java.lang.Double blurX, java.lang.Double blurY, java.lang.Integer quality, java.lang.String type)
          Writes the bevel attribute.
 void writeCachedAttribute(java.lang.String attr, boolean value, java.lang.String elemType)
          Writes a cached attribute.
 void writeCachedAttribute(java.lang.String attr, java.awt.Color value, java.lang.String elemType)
          Writes a cached attribute.
 void writeCachedAttribute(java.lang.String attr, double value, java.lang.String elemType)
          Writes a cached attribute.
 void writeCachedAttribute(java.lang.String attr, int value, java.lang.String elemType)
          Writes a cached attribute.
 void writeCachedAttribute(java.lang.String attr, java.lang.String value, java.lang.String elemType)
          Writes a cached attribute.
 void writeCustomPropertyAttribute()
           
 void writeFontIndexAttribute(int fid)
          Writes the fontIndex attribute.
 void writeGlowAttribute(java.awt.Color highlightColor, java.lang.Double blurX, java.lang.Double blurY, java.lang.Double strength, java.lang.Integer quality, java.lang.Integer inner, java.lang.Integer knockout)
          Writes the glow attribute.
protected  void writeGradientStopAttributes(oracle.dss.presutil.GradientObj gradient)
          Write gradient stop attributes to XML.
 boolean writeMetadataElement(java.lang.String elem, java.util.Map<java.lang.String,java.lang.String> metadata)
           
 void writeShadowAttribute(java.awt.Color shadowColor, java.lang.Double distance, java.lang.Double strength, java.lang.Double angle, java.lang.Double blurX, java.lang.Double blurY, java.lang.Integer quality, java.lang.Integer inner, java.lang.Integer knockout, java.lang.Integer hide)
          Writes the shadow attribute.
 void writeShapeAttributesElement()
          Write optional ShapeAttributes for the current element.
 void writeTooltipAttribute(java.lang.String[] tooltipsArray)
          Write a tooltip for the current element using the tooltip attribute.
 
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

ELEM_CIRCLE

public static final java.lang.String ELEM_CIRCLE
Element name: circle.

See Also:
Constant Field Values

ELEM_CLIP_PATH

public static final java.lang.String ELEM_CLIP_PATH
Element name: clipPath.

See Also:
Constant Field Values

ELEM_DATA_BLOCK

public static final java.lang.String ELEM_DATA_BLOCK
See Also:
Constant Field Values

ELEM_FONT

public static final java.lang.String ELEM_FONT
Element name: font.

See Also:
Constant Field Values

ELEM_GRAD

public static final java.lang.String ELEM_GRAD
Element name: grad.

See Also:
Constant Field Values

ELEM_HANDLE

public static final java.lang.String ELEM_HANDLE
See Also:
Constant Field Values

ELEM_IMAGE

public static final java.lang.String ELEM_IMAGE
Element name: image.

See Also:
Constant Field Values

ELEM_LINE

public static final java.lang.String ELEM_LINE
Element name: line.

See Also:
Constant Field Values

ELEM_LINEGRAD

public static final java.lang.String ELEM_LINEGRAD
Element name: lineGradient.

See Also:
Constant Field Values

ELEM_LINE_MARKER

public static final java.lang.String ELEM_LINE_MARKER
Element name: lineMarker.

See Also:
Constant Field Values

ELEM_METADATA

public static final java.lang.String ELEM_METADATA
Element name: metadata.

See Also:
Constant Field Values

ELEM_MENU

public static final java.lang.String ELEM_MENU
See Also:
Constant Field Values

ELEM_MENU_ITEM

public static final java.lang.String ELEM_MENU_ITEM
See Also:
Constant Field Values

ELEM_OVAL

public static final java.lang.String ELEM_OVAL
Element name: oval.

See Also:
Constant Field Values

ELEM_PATH

public static final java.lang.String ELEM_PATH
Element name: path.

See Also:
Constant Field Values

ELEM_POLYGON

public static final java.lang.String ELEM_POLYGON
Element name: polygon.

See Also:
Constant Field Values

ELEM_POLYLINE

public static final java.lang.String ELEM_POLYLINE
Element name: polyline.

See Also:
Constant Field Values

ELEM_RECT

public static final java.lang.String ELEM_RECT
Element name: rect.

See Also:
Constant Field Values

ELEM_ROOT

public static final java.lang.String ELEM_ROOT
Element name: root.

See Also:
Constant Field Values

ELEM_SHAPE_ATTRIBUTES

public static final java.lang.String ELEM_SHAPE_ATTRIBUTES
Element name: shapeAttributes.

See Also:
Constant Field Values

ELEM_STOP

public static final java.lang.String ELEM_STOP
Element name: stop.

See Also:
Constant Field Values

ELEM_PIE_SLICE

public static final java.lang.String ELEM_PIE_SLICE
See Also:
Constant Field Values

ELEM_PIE_SLICE_LABEL

public static final java.lang.String ELEM_PIE_SLICE_LABEL
Label subelement for enclosing the shapeAttributes for the label of a pie slice element.

See Also:
Constant Field Values

ELEM_TEXT

public static final java.lang.String ELEM_TEXT
Element name: text.

See Also:
Constant Field Values

ELEM_TOOLTIP_FORMAT

public static final java.lang.String ELEM_TOOLTIP_FORMAT
Element name: tooltip formatting.

See Also:
Constant Field Values

ATTR_ADS

public static final java.lang.String ATTR_ADS
Attribute name: ads.

See Also:
Constant Field Values

ATTR_ALT

public static final java.lang.String ATTR_ALT
Attribute name: alt.

See Also:
Constant Field Values

ATTR_ANGLE

public static final java.lang.String ATTR_ANGLE
Attribute name: angle. Note that the writeCachedAttribute API should be used, since that only writes the attribute when the angle has changed. Also, the flash engine keeps track of the current angle, so we must maintain that information as well.

See Also:
Constant Field Values

ATTR_ANG

public static final java.lang.String ATTR_ANG
Attribute name: angle.

See Also:
Constant Field Values

ATTR_ANIMATION_DOWN_COLOR

public static final java.lang.String ATTR_ANIMATION_DOWN_COLOR
Attribute name: animationDownColor.

See Also:
Constant Field Values

ATTR_ANIMATION_DURATION

public static final java.lang.String ATTR_ANIMATION_DURATION
Attribute name: animationDuration.

See Also:
Constant Field Values

ATTR_ANIMATION_INDICATORS

public static final java.lang.String ATTR_ANIMATION_INDICATORS
Attribute name: animationIndicators.

See Also:
Constant Field Values

ATTR_ANIMATION_UP_COLOR

public static final java.lang.String ATTR_ANIMATION_UP_COLOR
Attribute name: animationUpColor.

See Also:
Constant Field Values

ATTR_ANIMATION_ON_DATA_CHANGE

public static final java.lang.String ATTR_ANIMATION_ON_DATA_CHANGE
Attribute name: animationOnDataChange.

See Also:
Constant Field Values

ATTR_ANIMATION_ON_DISPLAY

public static final java.lang.String ATTR_ANIMATION_ON_DISPLAY
Attribute name: animationOnDisplay.

See Also:
Constant Field Values

ATTR_BC

public static final java.lang.String ATTR_BC
Attribute name: bc.

See Also:
Constant Field Values

ATTR_BEVEL

public static final java.lang.String ATTR_BEVEL
Attribute name: bevel.

See Also:
Constant Field Values

ATTR_BOUNDING_BOX

public static final java.lang.String ATTR_BOUNDING_BOX
Attribute name: bb.

See Also:
Constant Field Values

ATTR_BW

public static final java.lang.String ATTR_BW
Attribute name: bw.

See Also:
Constant Field Values

ATTR_CLICK_ACTION

public static final java.lang.String ATTR_CLICK_ACTION
Attribute name: clickAction.

See Also:
Constant Field Values

ATTR_CLICK_EVENT_JS

public static final java.lang.String ATTR_CLICK_EVENT_JS
Attribute name: clickEventJs.

See Also:
Constant Field Values

ATTR_CLICK_LISTENER

public static final java.lang.String ATTR_CLICK_LISTENER
Attribute name: clickListener.

See Also:
Constant Field Values

ATTR_CLICKABLE

public static final java.lang.String ATTR_CLICKABLE
Attribute name: clickable.

See Also:
Constant Field Values

ATTR_CLIP

public static final java.lang.String ATTR_CLIP
Attribute name: clip.

See Also:
Constant Field Values

ATTR_CLOSURE_TYPE

public static final java.lang.String ATTR_CLOSURE_TYPE
Attribute name: closureType.

See Also:
Constant Field Values

ATTR_COLOR

public static final java.lang.String ATTR_COLOR
Attribute name: color.

See Also:
Constant Field Values

ATTR_CX

public static final java.lang.String ATTR_CX
Attribute name: cx.

See Also:
Constant Field Values

ATTR_CY

public static final java.lang.String ATTR_CY
Attribute name: cy.

See Also:
Constant Field Values

ATTR_D

public static final java.lang.String ATTR_D
Attribute name: d.

See Also:
Constant Field Values

ATTR_DRAG

public static final java.lang.String ATTR_DRAG
See Also:
Constant Field Values

ATTR_DIR

public static final java.lang.String ATTR_DIR
Attribute name: dir.

See Also:
Constant Field Values

ATTR_DRILL_JS

public static final java.lang.String ATTR_DRILL_JS
Attribute name: drillJs.

See Also:
Constant Field Values

ATTR_FULL_TEXT

public static final java.lang.String ATTR_FULL_TEXT
Attribute name: full text.

See Also:
Constant Field Values

ATTR_FC

public static final java.lang.String ATTR_FC
Attribute name: fc.

See Also:
Constant Field Values

ATTR_FP

public static final java.lang.String ATTR_FP
Attribute name: fp.

See Also:
Constant Field Values

ATTR_FT

public static final java.lang.String ATTR_FT
Attribute name: fillType. Note that the writeCachedAttribute API should be used, since that only writes the attribute when the fillType has changed. Also, the flash engine keeps track of the current fillType, so we must maintain that information as well.

See Also:
Constant Field Values

ATTR_METADATA_FONT

public static final java.lang.String ATTR_METADATA_FONT
See Also:
Constant Field Values

ATTR_FONT

public static final java.lang.String ATTR_FONT
Attribute name: font.

See Also:
Constant Field Values

ATTR_G_ID

public static final java.lang.String ATTR_G_ID
Attribute name: gId.

See Also:
Constant Field Values

ATTR_GLOW

public static final java.lang.String ATTR_GLOW
Attribute name: glow.

See Also:
Constant Field Values

ATTR_G_ID_LIST

public static final java.lang.String ATTR_G_ID_LIST
Attribute name: gIdList.

See Also:
Constant Field Values

ATTR_H

public static final java.lang.String ATTR_H
Attribute name: h.

See Also:
Constant Field Values

ATTR_HREF

public static final java.lang.String ATTR_HREF
Attribute name: href.

See Also:
Constant Field Values

ATTR_ID

public static final java.lang.String ATTR_ID
Attribute name: id.

See Also:
Constant Field Values

ATTR_JUSTIFICATION

public static final java.lang.String ATTR_JUSTIFICATION
Attribute name: justification. Note that writeCachedAttribute should be used, since this attribute's value is cached by the middle tier and flash engine.

See Also:
Constant Field Values

ATTR_LS

public static final java.lang.String ATTR_LS
Attribute name: ls.

See Also:
Constant Field Values

ATTR_LW

public static final java.lang.String ATTR_LW
Attribute name: lw.

See Also:
Constant Field Values

ATTR_LINK

public static final java.lang.String ATTR_LINK
Attribute name: link.

See Also:
Constant Field Values

ATTR_LINK_TEXT_COLOR

protected static final java.lang.String ATTR_LINK_TEXT_COLOR
See Also:
Constant Field Values

ATTR_M_ID

public static final java.lang.String ATTR_M_ID
Attribute name: mId.

See Also:
Constant Field Values

ATTR_MOUSE_TRANSPARENT

public static final java.lang.String ATTR_MOUSE_TRANSPARENT
Attribute name: mouseTransparent. Note that writeCachedAttribute should be used, since this attribute's value is cached by the middle tier and flash engine.

See Also:
Constant Field Values

ATTR_NAME

public static final java.lang.String ATTR_NAME
Attribute name: name.

See Also:
Constant Field Values

ATTR_NOHREF

public static final java.lang.String ATTR_NOHREF
Attribute name: nohref.

See Also:
Constant Field Values

ATTR_OBJECT_ID

public static final java.lang.String ATTR_OBJECT_ID
Attribute name: ObjectID. Note that the writeCachedAttribute API should be used, since that only writes the attribute when the objectID has changed. Also, the flash engine keeps track of the current objectID, so we must maintain that information as well.

See Also:
Constant Field Values

ATTR_ON_BLUR

public static final java.lang.String ATTR_ON_BLUR
Attribute name: onBlur.

See Also:
Constant Field Values

ATTR_ON_CLICK

public static final java.lang.String ATTR_ON_CLICK
Attribute name: onClick.

See Also:
Constant Field Values

ATTR_ON_DBL_CLICK

public static final java.lang.String ATTR_ON_DBL_CLICK
Attribute name: onDblClick.

See Also:
Constant Field Values

ATTR_ON_FOCUS

public static final java.lang.String ATTR_ON_FOCUS
Attribute name: onFocus.

See Also:
Constant Field Values

ATTR_ON_KEY_DOWN

public static final java.lang.String ATTR_ON_KEY_DOWN
Attribute name: onKeyDown.

See Also:
Constant Field Values

ATTR_ON_KEY_PRESS

public static final java.lang.String ATTR_ON_KEY_PRESS
Attribute name: onKeyPress.

See Also:
Constant Field Values

ATTR_ON_KEY_UP

public static final java.lang.String ATTR_ON_KEY_UP
Attribute name: onKeyUp.

See Also:
Constant Field Values

ATTR_ON_MOUSE_DOWN

public static final java.lang.String ATTR_ON_MOUSE_DOWN
Attribute name: onMouseDown.

See Also:
Constant Field Values

ATTR_ON_MOUSE_MOVE

public static final java.lang.String ATTR_ON_MOUSE_MOVE
Attribute name: onMouseMove.

See Also:
Constant Field Values

ATTR_ON_MOUSE_OUT

public static final java.lang.String ATTR_ON_MOUSE_OUT
Attribute name: onMouseOut.

See Also:
Constant Field Values

ATTR_ON_MOUSE_OVER

public static final java.lang.String ATTR_ON_MOUSE_OVER
Attribute name: onMouseOver.

See Also:
Constant Field Values

ATTR_ON_MOUSE_UP

public static final java.lang.String ATTR_ON_MOUSE_UP
Attribute name: onMouseUp.

See Also:
Constant Field Values

ATTR_ON_SELECT

public static final java.lang.String ATTR_ON_SELECT
Attribute name: onSelect.

See Also:
Constant Field Values

ATTR_P

public static final java.lang.String ATTR_P
Attribute name: p.

See Also:
Constant Field Values

ATTR_GRADIENT_DIR_POINTS

public static final java.lang.String ATTR_GRADIENT_DIR_POINTS
Attribute name: gradientDirPoints.

See Also:
Constant Field Values

ATTR_POINTS

public static final java.lang.String ATTR_POINTS
Attribute name: points.

See Also:
Constant Field Values

ATTR_POSITION

public static final java.lang.String ATTR_POSITION
Attribute name: position.

See Also:
Constant Field Values

ATTR_R

public static final java.lang.String ATTR_R
Attribute name: r.

See Also:
Constant Field Values

ATTR_RX

public static final java.lang.String ATTR_RX
Attribute name: rx.

See Also:
Constant Field Values

ATTR_RY

public static final java.lang.String ATTR_RY
Attribute name: ry.

See Also:
Constant Field Values

ATTR_S_ID

public static final java.lang.String ATTR_S_ID
Attribute name: sId.

See Also:
Constant Field Values

ATTR_S_ID_LIST

public static final java.lang.String ATTR_S_ID_LIST
Attribute name: series.

See Also:
Constant Field Values

ATTR_SHADOW

public static final java.lang.String ATTR_SHADOW
Attribute name: shadow.

See Also:
Constant Field Values

ATTR_ST_ID

public static final java.lang.String ATTR_ST_ID
Attribute name: stId.

See Also:
Constant Field Values

ATTR_TABINDEX

public static final java.lang.String ATTR_TABINDEX
Attribute name: tabindex.

See Also:
Constant Field Values

ATTR_TARGET

public static final java.lang.String ATTR_TARGET
Attribute name: target.

See Also:
Constant Field Values

ATTR_TEXTURE_DISPLAY_MODE

public static final java.lang.String ATTR_TEXTURE_DISPLAY_MODE
Attribute name: textureDisplayMode.

See Also:
Constant Field Values

ATTR_TEXTURE_URL

public static final java.lang.String ATTR_TEXTURE_URL
Attribute name: textureUrl.

See Also:
Constant Field Values

ATTR_TITLE

public static final java.lang.String ATTR_TITLE
Attribute name: title.

See Also:
Constant Field Values

ATTR_TOOLTIP

public static final java.lang.String ATTR_TOOLTIP
Attribute name: tooltip.

See Also:
Constant Field Values

ATTR_USE_TOOLTIP_TEMPLATE

public static final java.lang.String ATTR_USE_TOOLTIP_TEMPLATE
Attribute name: useTooltipTemplate.

See Also:
Constant Field Values

ATTR_URL

public static final java.lang.String ATTR_URL
Attribute name: url.

See Also:
Constant Field Values

ATTR_VERSION

public static final java.lang.String ATTR_VERSION
Attribute name: version.

See Also:
Constant Field Values

ATTR_VISIBILITY

public static final java.lang.String ATTR_VISIBILITY
Attribute name: visibility.

See Also:
Constant Field Values

ATTR_W

public static final java.lang.String ATTR_W
Attribute name: w.

See Also:
Constant Field Values

ATTR_X

public static final java.lang.String ATTR_X
Attribute name: x.

See Also:
Constant Field Values

ATTR_X1

public static final java.lang.String ATTR_X1
Attribute name: x1.

See Also:
Constant Field Values

ATTR_X2

public static final java.lang.String ATTR_X2
Attribute name: x2.

See Also:
Constant Field Values

ATTR_Y

public static final java.lang.String ATTR_Y
Attribute name: y.

See Also:
Constant Field Values

ATTR_Y1

public static final java.lang.String ATTR_Y1
Attribute name: y1.

See Also:
Constant Field Values

ATTR_Y2

public static final java.lang.String ATTR_Y2
Attribute name: y2.

See Also:
Constant Field Values

ATTR_CUSTOM_PROPERTY

public static final java.lang.String ATTR_CUSTOM_PROPERTY
See Also:
Constant Field Values
For internal use only. Application developers should not use this

VAL_TRUE

public static final java.lang.String VAL_TRUE
Value name: true

See Also:
Constant Field Values

VAL_FALSE

public static final java.lang.String VAL_FALSE
Value name: false

See Also:
Constant Field Values

VAL_ANIMATION_ON_DISPLAY_AUTO

public static final java.lang.String VAL_ANIMATION_ON_DISPLAY_AUTO
See Also:
Constant Field Values

VAL_ADS_ON

public static final java.lang.String VAL_ADS_ON
Value name: on

See Also:
Constant Field Values

VAL_FT_COLOR

public static final java.lang.String VAL_FT_COLOR
Value name: FT_COLOR.

See Also:
Constant Field Values

VAL_FT_GRADIENT

public static final java.lang.String VAL_FT_GRADIENT
Value name: FT_GRADIENT.

See Also:
Constant Field Values

VAL_FT_TEXTURE

public static final java.lang.String VAL_FT_TEXTURE
Value name: FT_TEXTURE.

See Also:
Constant Field Values

VAL_FT_PATTERN

public static final java.lang.String VAL_FT_PATTERN
Value name: FT_PATTERN.

See Also:
Constant Field Values

VAL_GD_RADIAL

public static final java.lang.String VAL_GD_RADIAL
Value name: GD_RADIAL.

See Also:
Constant Field Values

VAL_GD_RIGHT

public static final java.lang.String VAL_GD_RIGHT
Value name: GD_RIGHT.

See Also:
Constant Field Values

VAL_GD_DOWN

public static final java.lang.String VAL_GD_DOWN
Value name: GD_DOWN.

See Also:
Constant Field Values

VAL_GD_DIAGONAL_45

public static final java.lang.String VAL_GD_DIAGONAL_45
Value name: GD_DIAGONAL_45.

See Also:
Constant Field Values

VAL_GD_DIAGONAL_135

public static final java.lang.String VAL_GD_DIAGONAL_135
Value name: GD_DIAGONAL_135.

See Also:
Constant Field Values

VAL_GD_CUSTOM

public static final java.lang.String VAL_GD_CUSTOM
Value name: GD_CUSTOM_LINEAR.

See Also:
Constant Field Values

VAL_HIDDEN

public static final java.lang.String VAL_HIDDEN
Value name: hidden.

See Also:
Constant Field Values

VAL_NONE

public static final java.lang.String VAL_NONE
Value name: none. Used to indicate a color is none.

See Also:
Constant Field Values

VAL_DRAG_BOUNDED

public static final java.lang.String VAL_DRAG_BOUNDED
Value name: bounded. Used to indicate that drag and drop should be bounded

See Also:
Constant Field Values

VAL_JUSTIFICATION_LEFT

public static final java.lang.String VAL_JUSTIFICATION_LEFT
Value name: justification left. Used to indicate justification is left.

See Also:
Constant Field Values

VAL_JUSTIFICATION_RIGHT

public static final java.lang.String VAL_JUSTIFICATION_RIGHT
Value name: justification right. Used to indicate justification is right.

See Also:
Constant Field Values

VAL_JUSTIFICATION_CENTER

public static final java.lang.String VAL_JUSTIFICATION_CENTER
Value name: justification center. Used to indicate justification is center.

See Also:
Constant Field Values

DEFAULT_SHADOW_COLOR

public static final java.awt.Color DEFAULT_SHADOW_COLOR

DEFAULT_SHADOW_DISTANCE

public static final double DEFAULT_SHADOW_DISTANCE
See Also:
Constant Field Values

DEFAULT_SHADOW_STRENGTH

public static final double DEFAULT_SHADOW_STRENGTH
See Also:
Constant Field Values

DEFAULT_SHADOW_ANGLE

public static final double DEFAULT_SHADOW_ANGLE
See Also:
Constant Field Values

DEFAULT_SHADOW_BLURX

public static final double DEFAULT_SHADOW_BLURX
See Also:
Constant Field Values

DEFAULT_SHADOW_BLURY

public static final double DEFAULT_SHADOW_BLURY
See Also:
Constant Field Values

DEFAULT_SHADOW_QUALITY

public static final int DEFAULT_SHADOW_QUALITY
See Also:
Constant Field Values

DEFAULT_SHADOW_INNER

public static final int DEFAULT_SHADOW_INNER
See Also:
Constant Field Values

DEFAULT_SHADOW_KNOCKOUT

public static final int DEFAULT_SHADOW_KNOCKOUT
See Also:
Constant Field Values

DEFAULT_SHADOW_HIDE

public static final int DEFAULT_SHADOW_HIDE
See Also:
Constant Field Values

DEFAULT_BEVEL_HIGHLIGHT_COLOR

public static final java.awt.Color DEFAULT_BEVEL_HIGHLIGHT_COLOR

DEFAULT_BEVEL_SHADOW_COLOR

public static final java.awt.Color DEFAULT_BEVEL_SHADOW_COLOR

DEFAULT_BEVEL_DISTANCE

public static final double DEFAULT_BEVEL_DISTANCE
See Also:
Constant Field Values

DEFAULT_BEVEL_STRENGTH

public static final double DEFAULT_BEVEL_STRENGTH
See Also:
Constant Field Values

DEFAULT_BEVEL_ANGLE

public static final double DEFAULT_BEVEL_ANGLE
See Also:
Constant Field Values

DEFAULT_BEVEL_BLURX

public static final double DEFAULT_BEVEL_BLURX
See Also:
Constant Field Values

DEFAULT_BEVEL_BLURY

public static final double DEFAULT_BEVEL_BLURY
See Also:
Constant Field Values

DEFAULT_BEVEL_QUALITY

public static final int DEFAULT_BEVEL_QUALITY
See Also:
Constant Field Values

DEFAULT_BEVEL_TYPE

public static final java.lang.String DEFAULT_BEVEL_TYPE
See Also:
Constant Field Values

DEFAULT_GLOW_HIGHLIGHT_COLOR

public static final java.awt.Color DEFAULT_GLOW_HIGHLIGHT_COLOR

DEFAULT_GLOW_STRENGTH

public static final double DEFAULT_GLOW_STRENGTH
See Also:
Constant Field Values

DEFAULT_GLOW_BLURX

public static final double DEFAULT_GLOW_BLURX
See Also:
Constant Field Values

DEFAULT_GLOW_BLURY

public static final double DEFAULT_GLOW_BLURY
See Also:
Constant Field Values

DEFAULT_GLOW_QUALITY

public static final int DEFAULT_GLOW_QUALITY
See Also:
Constant Field Values

DEFAULT_GLOW_INNER

public static final int DEFAULT_GLOW_INNER
See Also:
Constant Field Values

DEFAULT_GLOW_KNOCKOUT

public static final int DEFAULT_GLOW_KNOCKOUT
See Also:
Constant Field Values

m_fontIndex

protected java.util.List<java.lang.String> m_fontIndex
ArrayList containing all the font strings encountered so far. Used for indexing fonts to reduce duplication of font attributes.

Constructor Detail

ImageViewExportXMLWriter

public ImageViewExportXMLWriter(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

ImageViewExportXMLWriter

public ImageViewExportXMLWriter(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

ImageViewExportXMLWriter

public ImageViewExportXMLWriter(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

ImageViewExportXMLWriter

public ImageViewExportXMLWriter(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

initXMLWriterCallback

protected void initXMLWriterCallback(XMLWriterCallback callback)
Specifies an XMLWriterCallback to use when rendering the xml.

Parameters:
callback -

startRootElement

public boolean startRootElement()
                         throws java.io.IOException,
                                java.lang.Exception
Start the root element.

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

endRootElement

public void endRootElement()
                    throws java.io.IOException,
                           java.lang.Exception
Ends the root element.

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.

Returns:

startCircleElement

public boolean startCircleElement(double cx,
                                  double cy,
                                  double r)
                           throws java.io.IOException,
                                  java.lang.Exception
Start a circle element.

Parameters:
cx - x coordinate of the center of the circle
cy - y coordinate of the center of the circle
r - radius of the circle
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

startCircleOrOvalElement

public boolean startCircleOrOvalElement(java.awt.Rectangle rect)
                                 throws java.io.IOException,
                                        java.lang.Exception
Start a Circle or Ellipse element, depending on the shape of the given rectangle.

Parameters:
rect - Rectangle bounding the desired circle or oval
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

startCircleOrOvalElement

public boolean startCircleOrOvalElement(java.awt.geom.Arc2D arc)
                                 throws java.io.IOException,
                                        java.lang.Exception
Start a Circle or Ellipse element, depending on the shape of the given arc.

Parameters:
arc - arc defining this circle or oval
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

startLineElement

public boolean startLineElement(int x1,
                                int y1,
                                int x2,
                                int y2)
                         throws java.io.IOException,
                                java.lang.Exception
Start a line element.

Parameters:
x1 - x coordinate of start point
y1 - y coordinate of start point
x2 - x coordinate of end point
y2 - y coordinate of end point
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

startLineElement

public boolean startLineElement(double x1,
                                double y1,
                                double x2,
                                double y2)
                         throws java.io.IOException,
                                java.lang.Exception
Starts a line element using coordinates in double precision.

Parameters:
x1 - x coordinate of start point
y1 - y coordinate of start point
x2 - x coordinate of end point
y2 - y coordinate of end point
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

startOvalElement

public boolean startOvalElement(double cx,
                                double cy,
                                double rx,
                                double ry)
                         throws java.io.IOException,
                                java.lang.Exception
Start an oval element.

Parameters:
cx - x coordinate of the center of the oval
cy - y coordinate of the center of the oval
rx - horizontal radius of the oval
ry - vertical radius of the oval
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

startOvalElement

public boolean startOvalElement(java.awt.Rectangle rect)
                         throws java.io.IOException,
                                java.lang.Exception
Start an oval element.

Parameters:
rect - Rectangle bounding the oval to render
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

startPathElement

public boolean startPathElement(java.awt.Shape shape)
                         throws java.io.IOException,
                                java.lang.Exception
Start a path element.

Parameters:
shape - Shape defining the path
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

convertShapeToPath

protected java.lang.String convertShapeToPath(java.awt.Shape shape)
Convert a Shape object to a path element for use in XML. This override differs from SVG in several key ways.

Overrides:
convertShapeToPath in class oracle.dss.presutil.XMLWriter
Parameters:
shape - Shape object to convert to a path element for use in XML
Returns:
a path string, which can be used as the value of a "d" attribute in a path element, for instance. Currently we guarentee that the only path commands used are M, L, Q, C, and Z.

startPolygonElement

public boolean startPolygonElement(int[] xCoords,
                                   int[] yCoords,
                                   int count)
                            throws java.io.IOException,
                                   java.lang.Exception
Start a polygon element.

Parameters:
xCoords - x coordinates of the points in the polygon
yCoords - y coordinates of the points in the polygon
count - number of points in the polygon
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

startPolygonElement

public boolean startPolygonElement(java.awt.Polygon p)
                            throws java.io.IOException,
                                   java.lang.Exception
Start a polygon element.

Parameters:
p - polygon to render
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

startPolylineElement

public boolean startPolylineElement(java.awt.Point[] points)
                             throws java.io.IOException,
                                    java.lang.Exception
Start a polyline element.

Parameters:
points - coordinates of the points in the polyline
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

startRectElement

public boolean startRectElement(int x,
                                int y,
                                int width,
                                int height)
                         throws java.io.IOException,
                                java.lang.Exception
Start a rect element.

Parameters:
x - x coordinate of the top left corner of the rectangle
y - y coordinate of the top left corner of the rectangle
width - width of the rectangle
height - height of the rectangle
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

startRectElement

public boolean startRectElement(java.awt.Rectangle rect)
                         throws java.io.IOException,
                                java.lang.Exception
Start a rect element.

Parameters:
rect - Rectangle to render
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

startRectElement

public boolean startRectElement(java.awt.Rectangle rect,
                                int rx,
                                int ry)
                         throws java.io.IOException,
                                java.lang.Exception
Start a rounded rect element.

Parameters:
rect - rectangle to render
rx - width of ellipse used to round corners
ry - height of ellipse used to round corners
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

startTextElement

public boolean startTextElement(int x,
                                int y,
                                int len)
                         throws java.io.IOException,
                                java.lang.Exception
Start a text element.

Parameters:
x - x coordinate of the starting point for the text, on the baseline
y - y coordinate of the starting point for the text, on the baseline
len - length of the text in pixels
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

startTextElement

public boolean startTextElement(int x,
                                int y)
                         throws java.io.IOException,
                                java.lang.Exception
Start a text element.

Parameters:
x - x coordinate of the starting point for the text, on the baseline
y - y coordinate of the starting point for the text, on the baseline
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

endElement

protected void endElement(java.lang.String name)
                   throws java.io.IOException,
                          java.lang.Exception
End the given element. Override to toggle automatic newlines when ending a text element.

Overrides:
endElement in class oracle.dss.presutil.XMLWriter
Parameters:
name - element name to end
Throws:
java.io.IOException - if there was a problem writing to the stream
java.lang.Exception - if another problem occurred

getFontID

public int getFontID(java.lang.String fontString)
              throws java.io.IOException,
                     java.lang.Exception
Returns the index of the font represented by fontString. Adds the font to the index and writes the font element if it isn't there already.

Parameters:
fontString - String representing the font being indexed
Returns:
fid of the font in index
Throws:
java.io.IOException
java.lang.Exception

writeFontIndexAttribute

public void writeFontIndexAttribute(int fid)
                             throws java.io.IOException,
                                    java.lang.Exception
Writes the fontIndex attribute. If the font id is the same as previous, it is not written, since the current font is maintained by the flash engine.

Parameters:
fid - int representing the font id
Throws:
java.io.IOException
java.lang.Exception

writeShadowAttribute

public void writeShadowAttribute(java.awt.Color shadowColor,
                                 java.lang.Double distance,
                                 java.lang.Double strength,
                                 java.lang.Double angle,
                                 java.lang.Double blurX,
                                 java.lang.Double blurY,
                                 java.lang.Integer quality,
                                 java.lang.Integer inner,
                                 java.lang.Integer knockout,
                                 java.lang.Integer hide)
                          throws java.io.IOException,
                                 java.lang.Exception
Writes the shadow attribute.

Parameters:
shadowColor -
distance -
strength -
angle -
blurX -
blurY -
quality -
inner -
knockout -
hide -
Throws:
java.io.IOException
java.lang.Exception

writeBevelAttribute

public void writeBevelAttribute(java.awt.Color highlightColor,
                                java.awt.Color shadowColor,
                                java.lang.Double distance,
                                java.lang.Double strength,
                                java.lang.Double angle,
                                java.lang.Double blurX,
                                java.lang.Double blurY,
                                java.lang.Integer quality,
                                java.lang.String type)
                         throws java.io.IOException,
                                java.lang.Exception
Writes the bevel attribute.

Parameters:
highlightColor -
shadowColor -
distance -
strength -
angle -
blurX -
blurY -
quality -
type -
Throws:
java.io.IOException
java.lang.Exception

writeGlowAttribute

public void writeGlowAttribute(java.awt.Color highlightColor,
                               java.lang.Double blurX,
                               java.lang.Double blurY,
                               java.lang.Double strength,
                               java.lang.Integer quality,
                               java.lang.Integer inner,
                               java.lang.Integer knockout)
                        throws java.io.IOException,
                               java.lang.Exception
Writes the glow attribute.

Parameters:
highlightColor -
blurX -
blurY -
strength -
quality -
inner -
knockout -
Throws:
java.io.IOException
java.lang.Exception

writeCachedAttribute

public void writeCachedAttribute(java.lang.String attr,
                                 java.lang.String value,
                                 java.lang.String elemType)
                          throws java.io.IOException,
                                 java.lang.Exception
Writes a cached attribute. If the attribute is to be cached, it needs to be a private attribute, so that values can only be written through this method. This ensures that the middle tier and flash engine are consistent. Currently indexed attributes: fillType polygonFillColor lineColor polylineColor objectID textAngle textJustification gradientDirection gradientPositions

Parameters:
attr -
value -
elemType -
Throws:
java.io.IOException
java.lang.Exception

writeCachedAttribute

public void writeCachedAttribute(java.lang.String attr,
                                 int value,
                                 java.lang.String elemType)
                          throws java.io.IOException,
                                 java.lang.Exception
Writes a cached attribute. If the attribute is to be cached, it needs to be a private attribute, so that values can only be written through this method. This ensures that the middle tier and flash engine are consistent.

Parameters:
attr -
value -
elemType -
Throws:
java.io.IOException
java.lang.Exception

writeCachedAttribute

public void writeCachedAttribute(java.lang.String attr,
                                 double value,
                                 java.lang.String elemType)
                          throws java.io.IOException,
                                 java.lang.Exception
Writes a cached attribute. If the attribute is to be cached, it needs to be a private attribute, so that values can only be written through this method. This ensures that the middle tier and flash engine are consistent.

Parameters:
attr -
value -
elemType -
Throws:
java.io.IOException
java.lang.Exception

writeCachedAttribute

public void writeCachedAttribute(java.lang.String attr,
                                 boolean value,
                                 java.lang.String elemType)
                          throws java.io.IOException,
                                 java.lang.Exception
Writes a cached attribute. If the attribute is to be cached, it needs to be a private attribute, so that values can only be written through this method. This ensures that the middle tier and flash engine are consistent.

Parameters:
attr -
value -
elemType -
Throws:
java.io.IOException
java.lang.Exception

writeCachedAttribute

public void writeCachedAttribute(java.lang.String attr,
                                 java.awt.Color value,
                                 java.lang.String elemType)
                          throws java.io.IOException,
                                 java.lang.Exception
Writes a cached attribute. If the attribute is to be cached, it needs to be a private attribute, so that values can only be written through this method. This ensures that the middle tier and flash engine are consistent.

Parameters:
attr -
value -
elemType -
Throws:
java.io.IOException
java.lang.Exception

getFontAttributes

public static java.lang.String getFontAttributes(java.awt.Font font,
                                                 java.awt.Color c,
                                                 boolean bUnderline,
                                                 ErrorHandler eh)
Gets attributes for the given font. This method will map Java font families to HTML font families.

Parameters:
font - the Font whose attributes will be written
c - font color
bUnderline - true if text is underlined, false if not
Returns:
String representing the value of the font attribute
Throws:
java.io.IOException - if there was a problem writing to the stream
java.lang.Exception - if another problem occurred

getFontFamily

protected static java.lang.String getFontFamily(java.lang.String name,
                                                boolean bQuotes)
Get the HTML font family for the given Java font family.

Parameters:
name - Java font family name
bQuotes - true to put single quotes around the font family if it contains spaces, false to not add quotes
Returns:
HTML font family

writeAttribute

public void writeAttribute(java.lang.String name,
                           java.awt.Color color)
                    throws java.io.IOException,
                           java.lang.Exception
Write a color as an attribute on the current element. This overrides the superclass method to write "none" if the color is null.

Overrides:
writeAttribute in class oracle.dss.presutil.XMLWriter
Parameters:
name - name of the attribute
color - value of the attribute
Throws:
java.io.IOException - if there was a problem writing to the stream
java.lang.Exception - if another problem occurred

hasShapeAttributes

public boolean hasShapeAttributes()
Returns true if the current element may have shapeAttributes. This is not called for all elements and simply suggests whether this element may have shapeAttributes. A value of false means that the element does not have shapeAttributes. This function is provided for efficiency reasons, and defaults to true so that it need not be implemented by all subclasses.
Currently this is used for pie slice labels.

Returns:
true if the current element may have shapeAttributes.

writeShapeAttributesElement

public void writeShapeAttributesElement()
                                 throws java.io.IOException,
                                        java.lang.Exception
Write optional ShapeAttributes for the current element.

Throws:
java.io.IOException - if there was a problem writing to the stream
java.lang.Exception - if another problem occurred

hasAlt

public boolean hasAlt()
               throws java.io.IOException,
                      java.lang.Exception
Returns true if ShapeAttributes element has alt text

Returns:
boolean
Throws:
java.io.IOException
java.lang.Exception

writeCustomPropertyAttribute

public void writeCustomPropertyAttribute()
                                  throws java.io.IOException,
                                         java.lang.Exception
Throws:
java.io.IOException
java.lang.Exception
For internal use only. Application developers should not use this
For internal use only. Application developers should not use this

writeTooltipAttribute

public void writeTooltipAttribute(java.lang.String[] tooltipsArray)
                           throws java.io.IOException,
                                  java.lang.Exception
Write a tooltip for the current element using the tooltip attribute.

Throws:
java.io.IOException - if there was a problem writing to the stream
java.lang.Exception - if another problem occurred

setUseDataIds

public void setUseDataIds(boolean b)
Parameters:
b - true to include data point ids in exported XML, false otherwise
For internal use only. Application developers should not use this
Set whether data point ids will be included in exported XML. The default is false.

isUseDataIds

public boolean isUseDataIds()
Returns:
true if data point ids will be included in exported XML, false otherwise
For internal use only. Application developers should not use this
Determine whether data point ids will be included in exported XML.

getFontMap

protected java.lang.String getFontMap()
Returns a String with fontName,fontURL mappings. This is overridden in the subclasses.

Returns:

isActiveDataService

public boolean isActiveDataService()
Returns true if the imageView is using the active data service. This is overridden in the subclasses.

Returns:

isPPRAnimation

public boolean isPPRAnimation()
Returns true if the imageView is using ppr animations. This is overridden in the subclasses.

Returns:

isAnimationOnDisplay

public boolean isAnimationOnDisplay()
Returns true if the imageView is using ppr animations. This is overridden in the subclasses.

Returns:

convertColorToAttributeValue

protected static java.lang.String convertColorToAttributeValue(java.awt.Color color,
                                                               ErrorHandler eh)
Get a color in a form appropriate for an attribute value.

Parameters:
color - value of the attribute

convertArcTypeToString

protected static java.lang.String convertArcTypeToString(int arcType)
Convert an Arc2D arcType to a String.

Parameters:
arcType - int value of arcType
Returns:
String representation of arc type

_buildTooltipString

protected static java.lang.String _buildTooltipString(java.lang.String[] tooltipsArray)
                                               throws java.io.IOException,
                                                      java.lang.Exception
Parameters:
tooltipsArray -
Returns:
Throws:
java.io.IOException
java.lang.Exception
For internal use only. Application developers should not use this
Helper method to build a tooltip from a String[]. This is used by the writeTooltipElement and writeTooltipAttribute methods.

_buildTooltipString

protected static java.lang.String _buildTooltipString(java.util.ArrayList<java.lang.String> tooltipsArray)
                                               throws java.io.IOException,
                                                      java.lang.Exception
Parameters:
tooltipsArray -
Returns:
Throws:
java.io.IOException
java.lang.Exception
For internal use only. Application developers should not use this
Helper method to build a tooltip from a ArrayList. This is used by the writeTooltipElement and writeTooltipAttribute methods.

writeAnimationAttributes

public void writeAnimationAttributes()
                              throws java.io.IOException,
                                     java.lang.Exception
Writes all animation related attributes into the xml. This is overridden in the subclasses.

Throws:
java.io.IOException
java.lang.Exception

getFontMetrics

public static java.awt.FontMetrics getFontMetrics(java.awt.Graphics g,
                                                  java.awt.Font f)
Calculates the FontMetrics for the font using the Graphics object. Also performs caching of the FontMetrics object for subsequent calls using the same Font object.

Parameters:
g -
f -
Returns:

writeMetadataElement

public boolean writeMetadataElement(java.lang.String elem,
                                    java.util.Map<java.lang.String,java.lang.String> metadata)
                             throws java.io.IOException,
                                    java.lang.Exception
Throws:
java.io.IOException
java.lang.Exception

startHandleElement

public void startHandleElement(java.util.Map<java.lang.String,java.lang.String> metadata)
                        throws java.io.IOException,
                               java.lang.Exception
Starts a handle element for using in grouping objects. Note: We need to be very careful that all handles are properly closed or incorrectly formed xml can result.

Parameters:
metadata - the Map of metadata attributes and values
Throws:
java.io.IOException
java.lang.Exception

writeGradientStopAttributes

protected void writeGradientStopAttributes(oracle.dss.presutil.GradientObj gradient)
                                    throws java.io.IOException,
                                           java.lang.Exception
Write gradient stop attributes to XML.

Parameters:
gradient - GradientObj instance
Throws:
java.io.IOException - if there was a problem writing to the stream
java.lang.Exception - if another problem occurred

isBIDILocale

protected boolean isBIDILocale()
Returns true if the current locale is one of the BIDI locales.

Returns:
true if in BIDI locale

generateEvent

protected java.lang.String generateEvent(java.lang.String[][] eventParams)
Helper method for generating the javascript String used to support the XMLWriterCallback.

Parameters:
eventParams - the event parameters which will be sent to the server
Returns:
the JavaScript String that calls the marshaller function to deliver the event parameters
See Also:
XMLWriterCallback.getMarshallerFunctionName()

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

E17492-02

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