de.bsd.x2svg.draw
Class SubstitutionElement

java.lang.Object
  extended by de.bsd.x2svg.draw.ElementBox
      extended by de.bsd.x2svg.draw.SubstitutionElement

public class SubstitutionElement
extends ElementBox

This class represents an XSD substitution group.

Example:

Since:
1.2
Author:
hwr@pilhuhn.de

Field Summary
private  boolean isSubstitution
           
 
Fields inherited from class de.bsd.x2svg.draw.ElementBox
name, textColor
 
Constructor Summary
SubstitutionElement(java.lang.String name, Cardinality card, boolean substitution)
          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

isSubstitution

private boolean isSubstitution
Constructor Detail

SubstitutionElement

public SubstitutionElement(java.lang.String name,
                           Cardinality card,
                           boolean substitution)
Constructor to use

Parameters:
name - The name of the element
card - The cardinality
substitution - when true it is a substitution group, else a type
Method Detail

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 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