public abstract class CustomShapesParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ErrorHandler |
m_eh |
Constructor and Description |
---|
CustomShapesParser(ErrorHandler eh) |
Modifier and Type | Method and Description |
---|---|
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) |
protected ErrorHandler m_eh
public CustomShapesParser(ErrorHandler eh)
protected void addShape(java.lang.String compName, CustomShape shape)
compName
- shape
- public boolean defines(java.lang.String compName)
compName
- public java.awt.geom.Rectangle2D getBounds(java.lang.String compName)
compName
- public java.awt.geom.Rectangle2D getFullBounds()
public java.util.List<CustomShape> getShapes(java.lang.String compName)
compName
- public java.util.Map<java.lang.String,java.util.List<CustomShape>> getShapesMap()
public abstract void parseFile(java.lang.String path)
public abstract void parseFile(java.io.InputStream stream)