de.bsd.x2svg.draw
Class ElementBox

java.lang.Object
  extended by de.bsd.x2svg.draw.ElementBox
Direct Known Subclasses:
AbstractElement, AnonymousContainer, Element, Reference, SubstitutionElement

public abstract class ElementBox
extends java.lang.Object

Draw a box of an element with indicators of cardinality

Example:

Since:
1.1
Author:
hwr@pilhuhn.de

Field Summary
private  Cardinality cardinality
           
(package private)  java.lang.String name
           
(package private)  java.awt.Color textColor
           
 
Constructor Summary
ElementBox(java.lang.String name, Cardinality card)
          Constructor to use
 
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
 

Field Detail

name

java.lang.String name

cardinality

private Cardinality cardinality

textColor

java.awt.Color textColor
Constructor Detail

ElementBox

ElementBox(java.lang.String name,
           Cardinality card)
Constructor to use

Parameters:
name - The name of the element
card - The cardinality
Method Detail

draw

public void draw(org.apache.batik.svggen.SVGGraphics2D svg,
                 int topX,
                 int topY,
                 int width,
                 int height,
                 boolean isText,
                 boolean isEmpty)
Draws the element box

Parameters:
svg - the svg canvas to draw on
topX - the top left corner
topY - the top left corner
width - width of the element box
height - height of the element box
isText - should the text-marker be drawn?
isEmpty - should the empty-marker be drawn?


x2svg version 1.2.1