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

E12063-05

oracle.dss.gauge
Class CustomShapesParser

java.lang.Object
  extended by oracle.dss.gauge.CustomShapesParser
Direct Known Subclasses:
SVGParser

public abstract class CustomShapesParser
extends java.lang.Object

This class is for internal use only. It defines a CustomShapeParser object that is used to read Custom Shapes definition files for use in the gauge.

Since:
R1

Field Summary
protected  ErrorHandler m_eh
           
 
Constructor Summary
CustomShapesParser(ErrorHandler eh)
           
 
Method Summary
protected  void addShape(java.lang.String compName, CustomShape shape)
          Adds the specified CustomShape to the Map.
 boolean defines(java.lang.String compName)
          Returns true if the custom shapes Map contains an entry for the component.
 java.awt.geom.Rectangle2D getBounds(java.lang.String compName)
          Returns the bounding box that contains all CustomShapes in the Map for the specified component.
 java.awt.geom.Rectangle2D getFullBounds()
          Returns the bounding box that contains all CustomShapes in the Map.
 java.util.List<CustomShape> getShapes(java.lang.String compName)
          Returns a list of all shapes for a specified component name.
 java.util.Map<java.lang.String,java.util.List<CustomShape>> getShapesMap()
          Returns the entire Map of shapes parsed from the shapes file.
abstract  void parseFile(java.io.InputStream stream)
           
abstract  void parseFile(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_eh

protected ErrorHandler m_eh
Constructor Detail

CustomShapesParser

public CustomShapesParser(ErrorHandler eh)
Method Detail

addShape

protected void addShape(java.lang.String compName,
                        CustomShape shape)
Adds the specified CustomShape to the Map. CustomShape objects are grouped into Lists by compName.

Parameters:
compName -
shape -

defines

public boolean defines(java.lang.String compName)
Returns true if the custom shapes Map contains an entry for the component.

Parameters:
compName -
Returns:

getBounds

public java.awt.geom.Rectangle2D getBounds(java.lang.String compName)
Returns the bounding box that contains all CustomShapes in the Map for the specified component.

Parameters:
compName -
Returns:
Rectangle bounding box

getFullBounds

public java.awt.geom.Rectangle2D getFullBounds()
Returns the bounding box that contains all CustomShapes in the Map.

Returns:
Rectangle bounding box

getShapes

public java.util.List<CustomShape> getShapes(java.lang.String compName)
Returns a list of all shapes for a specified component name.

Parameters:
compName -
Returns:

getShapesMap

public java.util.Map<java.lang.String,java.util.List<CustomShape>> getShapesMap()
Returns the entire Map of shapes parsed from the shapes file.

Returns:

parseFile

public abstract void parseFile(java.lang.String path)

parseFile

public abstract void parseFile(java.io.InputStream stream)

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

E12063-05

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