|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dss.presutil.XMLWriter
oracle.dss.dataView.ImageViewExportXMLWriter
oracle.dss.gauge.GaugeExportXMLWriter
public class GaugeExportXMLWriter
Field Summary | |
---|---|
static java.lang.String |
ATTR_CURRENT_DATA
Attribute name: metric values |
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 int |
m_row
|
protected boolean |
m_visible
|
Fields inherited from class oracle.dss.presutil.XMLWriter |
---|
LINE_SEP, m_eh, m_elems, m_writer |
Constructor Summary | |
---|---|
GaugeExportXMLWriter(CommonGauge cg,
java.io.OutputStream os,
ErrorHandler eh)
Constructor. |
|
GaugeExportXMLWriter(CommonGauge cg,
java.io.OutputStream os,
ErrorHandler eh,
java.lang.String charEnc)
Constructor. |
|
GaugeExportXMLWriter(CommonGauge cg,
java.io.Writer writer,
ErrorHandler eh)
Constructor. |
|
GaugeExportXMLWriter(CommonGauge cg,
java.io.Writer writer,
ErrorHandler eh,
java.lang.String charEnc)
Constructor. |
Method Summary | |
---|---|
void |
applyTransform(java.awt.geom.AffineTransform transform)
This method allows an application of the given AffineTransform object. |
protected static java.lang.String |
convertCompTypeToString(int compType)
Convert the objectId for the given IdentObj to a String. |
static java.lang.String |
convertGradientDirectionToXMLString(int direction)
|
void |
drawAndFillArc(java.awt.geom.Arc2D arc,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the drawing and filling of an outline represented by the given Arc2D instance, using
the given colors. |
void |
drawAndFillArea(java.awt.geom.Area area,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the drawing and filling of an outline represented by the given Area instance, using
the given colors. |
void |
drawAndFillPolygon(java.awt.Polygon polygon,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the drawing and filling of an outline represented by the given Polygon instance, using
the given colors. |
void |
drawAndFillRect(java.awt.Rectangle rect,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the drawing and filling of an outline represented by the given Rectangle instance, using
the given colors. |
void |
drawAndFillRoundedRect(java.awt.geom.RoundRectangle2D roundRect,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the drawing and filling of the given rectangle using the given instance of Color and
rounded with the given arc width and height. |
void |
drawAndFillShape(java.awt.Shape shape,
java.awt.Color borderColor,
java.awt.Color fillColor,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the drawing and filling of an outline represented by the given Shape instance, using
the given colors. |
void |
drawArc(java.awt.geom.Arc2D arc,
java.awt.Color c)
This method supports the drawing of an outline represented by the given Arc2D instance, using the given
color as its border color. |
void |
drawArea(java.awt.geom.Area area,
java.awt.Color c)
This method supports the drawing of an area outlined according to the given Area object, using the given color as its border color. |
void |
drawImage(java.lang.String imgURL,
java.awt.Image image,
int x,
int y,
int width,
int height,
java.awt.image.ImageObserver imgObs)
This method supports the drawing of an image. |
void |
drawLine(int x1,
int y1,
int x2,
int y2,
java.awt.Color c)
This method supports the drawing of a line with the given color. |
void |
drawLine(int x1,
int y1,
int x2,
int y2,
int thickness,
java.awt.Color c)
This method supports the drawing of a line with the given thickness and color. |
void |
drawPolygon(java.awt.Polygon poly,
java.awt.Color c)
This method supports the drawing of the outline of a polygon defined by the specified Polygon
object using the given instance of Color . |
void |
drawRect(java.awt.Rectangle rect,
java.awt.Color c)
This method supports the drawing of the given rectangle using the given instance of Color . |
void |
drawShape(java.awt.Shape shape,
java.awt.Color c)
This method supports the drawing of an outline represented by the given Shape instance, using the given
color as its border color. |
void |
drawString(java.lang.String label,
int x,
int y,
java.awt.Font f,
java.awt.Color c,
double angle)
This method supports the drawing of text in the given color at the location specified by the point at x1 and y1 . |
void |
fillArc(java.awt.geom.Arc2D arc,
java.awt.Color c,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the filling of the given arc with the given color. |
void |
fillArea(java.awt.geom.Area area,
java.awt.Color c,
oracle.dss.presutil.GradientObj gradient,
java.util.Map sfxMap)
This method supports the filling of an area outlined according to the given Area object, using the given color. |
void |
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,
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. |
protected void |
writeToolTipFormatting()
|
void |
writeVisualEffectsAttributes(java.util.Map map)
Writes the shadow and bevel attributes based on the input Map. |
Methods inherited from class oracle.dss.presutil.XMLWriter |
---|
_roundDouble, checkPrevStartTag, checkPrevStartTag, close, closeStartTag, colorToHex, colorToHexWithAlpha, convertShapeToPath, 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 |
---|
protected int m_compType
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
protected CommonGauge m_gauge
Constructor Detail |
---|
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 useMethod Detail |
---|
protected 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, 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 gauge
java.io.IOException
- if there was a problem writing to the stream
java.lang.Exception
- if another problem occurredpublic 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(java.lang.String label, 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 image
java.io.IOException
- if there was a problem writing to the stream
java.lang.Exception
- if another problem occurredprotected java.util.Locale getLocale()
getLocale
in class ImageViewExportXMLWriter
protected boolean startElement(java.awt.Shape shape) throws java.io.IOException, java.lang.Exception
shape
- shape to render to XML
java.io.IOException
- if there was a problem writing to the stream
java.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 component
java.io.IOException
- if there was a problem writing to the stream
java.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
shape
java.io.IOException
- if there was a problem writing to the stream
java.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 object
java.io.IOException
- if there was a problem writing to the stream
java.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 stream
java.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 constant
public 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
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |