de.bsd.x2svg.draw
Class AbstractElement
java.lang.Object
de.bsd.x2svg.draw.ElementBox
de.bsd.x2svg.draw.AbstractElement
public class AbstractElement
- extends ElementBox
This class represents an abstract XSD Element, that can not exist
on its own, but serves as parent for inherited elements.
Example:
- Since:
- 1.2
- Author:
- hwr@pilhuhn.de
Method Summary |
void |
draw(org.apache.batik.svggen.SVGGraphics2D svg,
int topX,
int topY,
int width,
int height,
boolean isText,
boolean isEmpty)
Draws the element box |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractElement
public AbstractElement(java.lang.String name,
Cardinality card)
- Constructor to use
- Parameters:
name
- The name of the elementcard
- The cardinality
draw
public void draw(org.apache.batik.svggen.SVGGraphics2D svg,
int topX,
int topY,
int width,
int height,
boolean isText,
boolean isEmpty)
- Description copied from class:
ElementBox
- Draws the element box
- Overrides:
draw
in class ElementBox
- Parameters:
svg
- the svg canvas to draw ontopX
- the top left cornertopY
- the top left cornerwidth
- width of the element boxheight
- height of the element boxisText
- should the text-marker be drawn?isEmpty
- should the empty-marker be drawn?
x2svg version 1.2.1