public class GaugeExportXMLWriter extends ImageViewExportXMLWriter implements GaugeRenderer
Modifier and Type | Field and Description |
---|---|
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 |
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
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
_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
_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
protected int m_compType
protected int m_index
protected java.lang.String m_compName
protected boolean m_visible
protected int m_column
protected int m_row
public static final java.lang.String ELEM_GAUGE_SET
public static final java.lang.String ATTR_GAUGE_TYPE
public static final java.lang.String ATTR_POINT_OF_ROTATION
public static final java.lang.String ATTR_THRESHOLD_VALUES
public static final java.lang.String ATTR_THRESHOLD_COLORS
public static final java.lang.String ATTR_INDICATOR_USE_THRESHOLD_FILLCOLOR
public static final java.lang.String ATTR_CURRENT_DATA
public static final java.lang.String ATTR_FLASH_BIDI_TEXT
protected CommonGauge m_gauge
protected ComponentHandle m_handle
public GaugeExportXMLWriter(CommonGauge cg, java.io.OutputStream os, ErrorHandler eh, java.lang.String charEnc)
os
- OutputStream to write toeh
- ErrorHandler to usecharEnc
- character encoding to use; if null, UTF-8 will be usedpublic GaugeExportXMLWriter(CommonGauge cg, java.io.OutputStream os, ErrorHandler eh)
os
- OutputStream to write toeh
- ErrorHandler to usepublic GaugeExportXMLWriter(CommonGauge cg, java.io.Writer writer, ErrorHandler eh, java.lang.String charEnc)
writer
- Writer to write toeh
- ErrorHandler to usecharEnc
- character encoding to use; if null, UTF-8 will be usedpublic GaugeExportXMLWriter(CommonGauge cg, java.io.Writer writer, ErrorHandler eh)
writer
- Writer to write toeh
- ErrorHandler to useprotected void init(GaugeEngine engine)
engine
- GaugeEngine currently being renderedprotected void writeToolTipFormatting() throws java.io.IOException, java.lang.Exception
java.io.IOException
java.lang.Exception
protected void writeMetadataElement()
protected void init(int compType, int index, java.util.Map map, boolean visible)
compType
- component typemap
- property mapvisible
- public boolean startGaugeSetElement(java.awt.Dimension size, int gaugeType) throws java.io.IOException, java.lang.Exception
size
- size of the gauge setgaugeType
- type of gaugejava.io.IOException
- if there was a problem writing to the streamjava.lang.Exception
- if another problem occurredprotected void endGaugeSetElement() throws java.io.IOException, java.lang.Exception
java.io.IOException
java.lang.Exception
public void drawShape(java.awt.Shape shape, java.awt.Color c)
Shape
instance, using the given
color as its border color.drawShape
in interface GaugeRenderer
shape
- Instance of Shape
c
- Color instance representing the intended color of
the shapepublic void fillShape(java.awt.Shape shape, java.awt.Color c, oracle.dss.presutil.GradientObj gradient, java.util.Map sfxMap)
Shape
instance, using the given
color as its fill color.fillShape
in interface GaugeRenderer
shape
- Instance of Shape
c
- Color instance representing the intended fill
color of the shapesfxMap
- Instance of HashMap
containing
SFX attributes for this shapepublic void drawAndFillShape(java.awt.Shape shape, java.awt.Color borderColor, java.awt.Color fillColor, oracle.dss.presutil.GradientObj gradient, java.util.Map sfxMap)
Shape
instance, using
the given colors.drawAndFillShape
in interface GaugeRenderer
shape
- Instance of Shape
borderColor
- Color instance representing the intended
borderColor of the shapefillColor
- Color instance representing the intended fill
color of the shapesfxMap
- Instance of HashMap
containing
SFX attributes for this shapepublic void drawArc(java.awt.geom.Arc2D arc, java.awt.Color c)
Arc2D
instance, using the given
color as its border color.drawArc
in interface GaugeRenderer
arc
- Instance of Arc2Dc
- Color instance representing the intended color of
the arcpublic void fillArc(java.awt.geom.Arc2D arc, java.awt.Color c, oracle.dss.presutil.GradientObj gradient, java.util.Map sfxMap)
fillArc
in interface GaugeRenderer
arc
- Instance of Arc2Dc
- Color instance indicating the fill color of the
arcsfxMap
- Instance of HashMap
containing
SFX attributes for this shapepublic void drawAndFillArc(java.awt.geom.Arc2D arc, java.awt.Color borderColor, java.awt.Color fillColor, oracle.dss.presutil.GradientObj gradient, java.util.Map sfxMap)
Arc2D
instance, using
the given colors.drawAndFillArc
in interface GaugeRenderer
arc
- Instance of Arc2D
borderColor
- Color instance representing the intended
borderColor of the arcfillColor
- Color instance representing the intended fill
color of the arcsfxMap
- Instance of HashMap
containing
SFX attributes for this arcpublic void drawArea(java.awt.geom.Area area, java.awt.Color c)
drawArea
in interface GaugeRenderer
area
- Instance of Areac
- Color instance indicating the fill color of the
arcpublic void fillArea(java.awt.geom.Area area, java.awt.Color c, oracle.dss.presutil.GradientObj gradient, java.util.Map sfxMap)
fillArea
in interface GaugeRenderer
area
- Instance of Areac
- Color instance indicating the fill color of the
areasfxMap
- Instance of HashMap
containing
SFX attributes for this shapepublic void drawAndFillArea(java.awt.geom.Area area, java.awt.Color borderColor, java.awt.Color fillColor, oracle.dss.presutil.GradientObj gradient, java.util.Map sfxMap)
Area
instance, using
the given colors.drawAndFillArea
in interface GaugeRenderer
area
- Instance of Area
borderColor
- Color instance representing the intended
borderColor of the areafillColor
- Color instance representing the intended fill
color of the areasfxMap
- Instance of HashMap
containing
SFX attributes for this areapublic void drawPolygon(java.awt.Polygon poly, java.awt.Color c)
Polygon
object using the given instance of Color
.drawPolygon
in interface GaugeRenderer
poly
- The polygon to draw.c
- The color with which to draw the polygonpublic void fillPolygon(java.awt.Polygon poly, java.awt.Color c, oracle.dss.presutil.GradientObj gradient, java.util.Map sfxMap)
fillPolygon
in interface GaugeRenderer
poly
- Instance of Polygon
c
- Color instance indicating the fill color of the
polygonsfxMap
- Instance of HashMap
containing
SFX attributes for this shapepublic void drawAndFillPolygon(java.awt.Polygon polygon, java.awt.Color borderColor, java.awt.Color fillColor, oracle.dss.presutil.GradientObj gradient, java.util.Map sfxMap)
Polygon
instance, using
the given colors.drawAndFillPolygon
in interface GaugeRenderer
polygon
- Instance of Polygon
borderColor
- Color instance representing the intended
borderColor of the polygonfillColor
- Color instance representing the intended fill
color of the polygonsfxMap
- Instance of HashMap
containing
SFX attributes for this polygonpublic void drawRect(java.awt.Rectangle rect, java.awt.Color c)
Color
.drawRect
in interface GaugeRenderer
rect
- Instance of Rectanglec
- Instance of Color to use for the rectangle.public void fillRect(java.awt.Rectangle rect, java.awt.Color c, oracle.dss.presutil.GradientObj gradient, java.util.Map sfxMap)
Color
.fillRect
in interface GaugeRenderer
rect
- Instance of Rectangle marking the fill areac
- Instance of Color to use when filling.sfxMap
- Instance of HashMap
containing
SFX attributes for this shapepublic void drawAndFillRect(java.awt.Rectangle rect, java.awt.Color borderColor, java.awt.Color fillColor, oracle.dss.presutil.GradientObj gradient, java.util.Map sfxMap)
Rectangle
instance, using
the given colors.drawAndFillRect
in interface GaugeRenderer
rect
- Instance of Rectangle
borderColor
- Color instance representing the intended
borderColor of the rectanglefillColor
- Color instance representing the intended fill
color of the rectanglesfxMap
- Instance of HashMap
containing
SFX attributes for this rectanglepublic void drawAndFillRoundedRect(java.awt.geom.RoundRectangle2D roundRect, java.awt.Color borderColor, java.awt.Color fillColor, oracle.dss.presutil.GradientObj gradient, java.util.Map sfxMap)
Color
and
rounded with the given arc width and height.drawAndFillRoundedRect
in interface GaugeRenderer
roundRect
- Instance of RoundRectangle2D marking the fill areaborderColor
- Instance of Color to use for the border.fillColor
- Instance of Color to use when filling.sfxMap
- Instance of HashMap
containing
SFX attributes for this shapepublic void drawLine(int x1, int y1, int x2, int y2, int thickness, java.awt.Color c)
drawLine
in interface GaugeRenderer
x1
- The first point's x coordinatey1
- The first point's y coordinatex2
- The second point's x coordinatey2
- The second point's y coordinatethickness
- Width of the line in pixelsc
- Color instance indicating the color of the line.public void drawLine(int x1, int y1, int x2, int y2, java.awt.Color c)
drawLine
in interface GaugeRenderer
x1
- The first point's x coordinatey1
- The first point's y coordinatex2
- The second point's x coordinatey2
- The second point's y coordinatec
- Color instance indicating the color of the linepublic void drawString(DrawableObject.Label labelObj, int x, int y, java.awt.Font f, java.awt.Color c, double angle)
x1
and y1
.drawString
in interface GaugeRenderer
label
- String
instance representing the text to drawx
- The first point's x coordinatey
- The first point's y coordinatef
- Font
instance indicating the color of the linec
- Color
instance indicating the color of the lineangle
- The text rotation angle of the labelpublic void drawImage(java.lang.String imgURL, java.awt.Image image, int x, int y, int width, int height, java.awt.image.ImageObserver imgObs)
drawImage
in interface GaugeRenderer
imgURL
- String
instance used to load imageimage
- Instance of Image
to draw; may be nullx
- x coordinate of image's top cornery
- y coordinate of image's top cornerwidth
- width of imageheight
- height of imageimgObs
- Instance of ImageObserver
; can be nullpublic void applyTransform(java.awt.geom.AffineTransform transform)
AffineTransform
object.applyTransform
in interface GaugeRenderer
transform
- AffineTransform
instance to applypublic java.awt.geom.AffineTransform getTransform()
AffineTransform
object.getTransform
in interface GaugeRenderer
AffineTransform
public void setTransform(java.awt.geom.AffineTransform transform)
AffineTransform
object.setTransform
in interface GaugeRenderer
transform
- AffineTransform
instance to setprotected boolean startImageElement(int x, int y, int width, int height, java.lang.String url) throws java.io.IOException, java.lang.Exception
x
- x coordinate of the top left corner of the imagey
- y coordinate of the top left corner of the imagewidth
- width of the imageheight
- height of the imageurl
- URL to the imagejava.io.IOException
- if there was a problem writing to the streamjava.lang.Exception
- if another problem occurredprotected java.util.Locale getLocale()
getLocale
in class ImageViewExportXMLWriter
public void writeTooltipAttribute(java.lang.String[] tooltipsArray) throws java.io.IOException, java.lang.Exception
ImageViewExportXMLWriter
writeTooltipAttribute
in class ImageViewExportXMLWriter
java.io.IOException
- if there was a problem writing to the streamjava.lang.Exception
- if another problem occurredprotected boolean startElement(java.awt.Shape shape) throws java.io.IOException, java.lang.Exception
shape
- shape to render to XMLjava.io.IOException
- if there was a problem writing to the streamjava.lang.Exception
- if another problem occurredprotected 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
sfxMap
- Instance of SFX
for this componentshape
- Component shapefillColor
- Standard color for this componentjava.io.IOException
- if there was a problem writing to the streamjava.lang.Exception
- if another problem occurredprotected void writeFillChildren(java.awt.Shape shape, oracle.dss.presutil.GradientObj gradient) throws java.io.IOException, java.lang.Exception
shape
- gradient
- the object containing the gradient information for this
shapejava.io.IOException
- if there was a problem writing to the streamjava.lang.Exception
- if another problem occurredprotected void writeGradientElement(oracle.dss.presutil.GradientObj gradient, java.awt.Shape shape) throws java.io.IOException, java.lang.Exception
gradient
- the object containing the gradient information for this
shapeshape
- Instance of Shape
for this objectjava.io.IOException
- if there was a problem writing to the streamjava.lang.Exception
- if another problem occurredprotected void writeCompTypeAttributes() throws java.io.IOException, java.lang.Exception
java.io.IOException
- if there was a problem writing to the streamjava.lang.Exception
- if another problem occurredpublic void writeVisualEffectsAttributes(java.util.Map map) throws java.io.IOException, java.lang.Exception
map
- java.io.IOException
java.lang.Exception
protected static java.lang.String convertCompTypeToString(int compType)
compType
- int representing the component id constantpublic static java.lang.String convertGradientDirectionToXMLString(int direction)
direction
- public void writeAnimationAttributes() throws java.io.IOException, java.lang.Exception
writeAnimationAttributes
in class ImageViewExportXMLWriter
java.io.IOException
java.lang.Exception