de.bsd.x2svg.draw
Class ContentModel
java.lang.Object
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
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 |
ContentModel
public ContentModel()
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 usex
- top left corner of the boxy
- 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 usetopX
- top left corner of the surrounding boxtopY
- top left corner of the surrounding box
x2svg version 1.2.1