P - Type of the product.AbstractLayoutBuilderpublic interface LayoutBuilder<P>
| Modifier and Type | Method | Description |
|---|---|---|
void |
buildCompartment(CompartmentGlyph compartmentGlyph) |
method for the drawing of a compartment with the size and position of the
BoundingBox of the given CompartmentGlyph |
void |
buildConnectingArc(SpeciesReferenceGlyph srg,
ReactionGlyph rg,
double curveWidth) |
method for the drawing of a connecting arc or line with the size and
position specified by the given SpeciesReferenceGlyph
|
void |
buildCubicBezier(CubicBezier cubicBezier,
double lineWidth) |
method to draw an arc between the two base points of the given
CubicBezier. |
void |
buildEntityPoolNode(SpeciesGlyph speciesGlyph,
boolean cloneMarker) |
method for the drawing of an entity pool node with the given size and
position of the
BoundingBox of the given SpeciesGlyph |
void |
builderEnd() |
method for actions that have to be done at the end of the builder e.g.
|
void |
builderStart(Layout layout) |
method for preparations that have to be done at the beginning of the
builder, e.g., the commands at the beginning of a LaTeX document
|
void |
buildProcessNode(ReactionGlyph reactionGlyph,
double rotationAngle,
double curveWidth) |
method for the drawing of a process node with the size and position of
the
BoundingBox of the given ReactionGlyph |
void |
buildTextGlyph(TextGlyph textGlyph) |
method for drawing/writing the given
TextGlyph |
P |
getProduct() |
|
boolean |
isProductReady() |
method to check if the builder has produced a complete product
|
void builderStart(Layout layout)
layout - void buildCompartment(CompartmentGlyph compartmentGlyph)
BoundingBox of the given CompartmentGlyphcompartmentGlyph - void buildConnectingArc(SpeciesReferenceGlyph srg, ReactionGlyph rg, double curveWidth)
srg - species reference glyph that defines the connecting arcrg - associated reaction glyphcurveWidth - line width of the arcvoid buildCubicBezier(CubicBezier cubicBezier, double lineWidth)
CubicBezier.cubicBezier - lineWidth - void buildEntityPoolNode(SpeciesGlyph speciesGlyph, boolean cloneMarker)
BoundingBox of the given SpeciesGlyphspeciesGlyph - of the entity pool nodecloneMarker - true if a clone marker is set for this speciesGlyphvoid buildProcessNode(ReactionGlyph reactionGlyph, double rotationAngle, double curveWidth)
BoundingBox of the given ReactionGlyphrotationAngle - by which the lines from the reaction box are rotatedreactionGlyph - the glyph for the process node to be drawncurveWidth - void buildTextGlyph(TextGlyph textGlyph)
TextGlyphtextGlyph - void builderEnd()
P getProduct()
boolean isProductReady()
true, if product is not empty, else false