SimpleLayoutAlgorithm
public interface LayoutAlgorithm
Modifier and Type | Method | Description |
---|---|---|
void |
addLayoutedEdge(SpeciesReferenceGlyph srg,
ReactionGlyph rg) |
Add a layouted edge to the input of the algorithm.
|
void |
addLayoutedGlyph(GraphicalObject glyph) |
Add a fully layouted glyph (i.e. glyph with boundingbox, dimensions and
position) to the input of the algorithm.
|
void |
addUnlayoutedEdge(SpeciesReferenceGlyph srg,
ReactionGlyph rg) |
Add an unlayouted edge to the input of the algorithm.
|
void |
addUnlayoutedGlyph(GraphicalObject glyph) |
Add a glyph with missing layout information (i.e. no dimensions or no
position specified) to the input of the algorithm.
|
double |
calculateReactionGlyphRotationAngle(ReactionGlyph reactionGlyph) |
method to calculate the rotation angle of the lines from the reaction box,
in degrees
|
java.util.Set<GraphicalObject> |
completeGlyphs() |
Return the input set of unlayouted glyphs with completed layout
information.
|
Dimensions |
createCompartmentGlyphDimension(CompartmentGlyph previousCompartmentGlyph) |
method to create a
Dimensions for a CompartmentGlyph if
it was missing in the layout model |
Point |
createCompartmentGlyphPosition(CompartmentGlyph previousCompartmentGlyph) |
Deprecated.
|
Curve |
createCurve(ReactionGlyph reactionGlyph,
SpeciesReferenceGlyph speciesReferenceGlyph) |
method to create the
Curve of a SpeciesReferenceGlyph ,
starting or ending at the given ReactionGlyph |
BoundingBox |
createGlyphBoundingBox(GraphicalObject glyph,
SpeciesReferenceGlyph specRefGlyph) |
method to create a
BoundingBox for every kind of GraphicalObject . |
Dimensions |
createLayoutDimension() |
method to create a
Dimensions for the layout if it was missing in
the layout model |
Dimensions |
createReactionGlyphDimension(ReactionGlyph reactionGlyph) |
method to create a
Dimensions for a ReactionGlyph if it
was missing in the layout model |
Dimensions |
createSpeciesGlyphDimension() |
method to create a
Dimensions for a SpeciesGlyph if it
was missing in the layout model |
Dimensions |
createSpeciesReferenceGlyphDimension(ReactionGlyph reactionGlyph,
SpeciesReferenceGlyph speciesReferenceGlyph) |
method to create a
Dimensions for a SpeciesReferenceGlyph
if it was missing in the layout model |
Dimensions |
createTextGlyphDimension(TextGlyph textGlyph) |
method to create a
Dimensions for a TextGlyph if it was
missing in the layout model |
Layout |
getLayout() |
|
boolean |
isSetLayout() |
|
void |
setLayout(Layout layout) |
Dimensions createLayoutDimension()
Dimensions
for the layout if it was missing in
the layout modelDimensions
Dimensions createCompartmentGlyphDimension(CompartmentGlyph previousCompartmentGlyph)
Dimensions
for a CompartmentGlyph
if
it was missing in the layout modelpreviousCompartmentGlyph
- the last CompartmentGlyph
that had been drawn before
the CompartmentGlyph
that is missing a Dimensions
Dimensions
@Deprecated Point createCompartmentGlyphPosition(CompartmentGlyph previousCompartmentGlyph)
Position
for a CompartmentGlyph
if it
was missing in the layout modelpreviousCompartmentGlyph
- the last CompartmentGlyph
that had been drawn before
the CompartmentGlyph
that is missing a Position
Position
Dimensions createSpeciesGlyphDimension()
Dimensions
for a SpeciesGlyph
if it
was missing in the layout modelDimensions
Curve createCurve(ReactionGlyph reactionGlyph, SpeciesReferenceGlyph speciesReferenceGlyph)
Curve
of a SpeciesReferenceGlyph
,
starting or ending at the given ReactionGlyph
Dimensions createTextGlyphDimension(TextGlyph textGlyph)
Dimensions
for a TextGlyph
if it was
missing in the layout modeltextGlyph
- for which the Dimensions
is missingDimensions
Dimensions createReactionGlyphDimension(ReactionGlyph reactionGlyph)
Dimensions
for a ReactionGlyph
if it
was missing in the layout modelreactionGlyph
- for which the Dimensions
is missingDimensions
Dimensions createSpeciesReferenceGlyphDimension(ReactionGlyph reactionGlyph, SpeciesReferenceGlyph speciesReferenceGlyph)
Dimensions
for a SpeciesReferenceGlyph
if it was missing in the layout modelreactionGlyph
- from which the SpeciesReferenceGlyph
is drawnspeciesReferenceGlyph
- for which the Dimensions
is missingDimensions
BoundingBox createGlyphBoundingBox(GraphicalObject glyph, SpeciesReferenceGlyph specRefGlyph)
BoundingBox
for every kind of GraphicalObject
.glyph
- specRefGlyph
- void setLayout(Layout layout)
layout
- the Layout
to be set for this LayoutAlgorithmboolean isSetLayout()
Layout
is set for this LayoutAlgorithm, else falsedouble calculateReactionGlyphRotationAngle(ReactionGlyph reactionGlyph)
reactionGlyph
- for which the rotation angle shall be calculatedvoid addLayoutedGlyph(GraphicalObject glyph)
void addUnlayoutedGlyph(GraphicalObject glyph)
void addLayoutedEdge(SpeciesReferenceGlyph srg, ReactionGlyph rg)
srg
- species node of the edgerg
- process node of the edgevoid addUnlayoutedEdge(SpeciesReferenceGlyph srg, ReactionGlyph rg)
srg
- species node of the edgerg
- process node of the edgejava.util.Set<GraphicalObject> completeGlyphs()