de.bsd.x2svg.draw
Class ContentModel

java.lang.Object
  extended by de.bsd.x2svg.draw.ContentModel
Direct Known Subclasses:
ChoiceModel, SequenceModel, SubstitutionModel

public abstract class ContentModel
extends java.lang.Object

Draw a box that represents the content model of this tree part (Choice, Sequence, ..). The contents of the box needs to be painted in a subclass.

Author:
hwr@pilhuhn.de

Constructor Summary
ContentModel()
           
 
Method Summary
abstract  void draw(org.apache.batik.svggen.SVGGraphics2D svg, int topX, int topY)
          Contents of the box
protected  void drawContentBox(org.apache.batik.svggen.SVGGraphics2D svg, int x, int y)
          Draw the box that holds the content model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentModel

public ContentModel()
Method Detail

drawContentBox

protected void drawContentBox(org.apache.batik.svggen.SVGGraphics2D svg,
                              int x,
                              int y)
Draw the box that holds the content model.

Parameters:
svg - svg canvas to use
x - top left corner of the box
y - top left corner of the box

draw

public abstract void draw(org.apache.batik.svggen.SVGGraphics2D svg,
                          int topX,
                          int topY)
Contents of the box

Parameters:
svg - svg canvas to use
topX - top left corner of the surrounding box
topY - top left corner of the surrounding box


x2svg version 1.2.1