Package eu.bandm.tools.d2d2.base
Class SyntaxGraph.Layouter
java.lang.Object
eu.bandm.tools.d2d2.model.MATCH_ONLY_00
eu.bandm.tools.d2d2.model.SinglePhase
eu.bandm.tools.d2d2.base.SyntaxGraph.Layouter
- Enclosing class:
- SyntaxGraph
Every action method returns a SizeInfo object in the register
The action method for a combinator shifts the SizeInfo areas relative to its origin (0,0), and stores the resulting co-ordinates.
Later in the drawing process. these shifts are respected by concatenating affine transformations.
The y-coordinate grows downward. The code for "opt" is commented to illustrate this strategy.
sizeInfo
.
Each graph has one y-value as its entry and exit height, and an
entry and exit x-pos. These are stored in SyntaxGraph.y
,
SyntaxGraph.inX
and SyntaxGraph.outX
and are all RELATIVE to the containing graph.
The action method for a combinator shifts the SizeInfo areas relative to its origin (0,0), and stores the resulting co-ordinates.
Later in the drawing process. these shifts are respected by concatenating affine transformations.
The y-coordinate grows downward. The code for "opt" is commented to illustrate this strategy.
-
Field Summary
Fields inherited from class eu.bandm.tools.d2d2.model.MATCH_ONLY_00
_visitor_debug_stream, partial
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
action
(CharBinary exp) void
action
(CharSetConst cs) void
action
(CharsRegExp def) void
void
insertions may have survived ONLY as flattened calls to character parsers.void
void
action
(ParseParticle pp) void
void
void
void
void
void
void
action
(StringConst sc) void
void
action
(TagsRegExp def) void
protected void
processAltOrInnerPerm
(Iterator<Expression> subs, int outerW) protected void
Methods inherited from class eu.bandm.tools.d2d2.model.SinglePhase
action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, follow_allRawModules, follow_definitions, follow_defInstances, follow_docu, follow_firsts, follow_globalSubsts, follow_imports, follow_itemDocu, follow_localdefs, follow_localSubsts, follow_modules, follow_namespaces, follow_obligates, follow_on, follow_resolved, follow_sources, follow_weakfirsts, follow_xattributes
Methods inherited from class eu.bandm.tools.d2d2.model.MATCH_ONLY_00
_visitor_trace, action, action, action, action, compile, followAll_allRawModules, followAll_definitions, followAll_defInstances, followAll_docu, followAll_firsts, followAll_globalSubsts, followAll_imports, followAll_itemDocu, followAll_localdefs, followAll_localSubsts, followAll_modules, followAll_namespaces, followAll_obligates, followAll_on, followAll_resolved, followAll_sources, followAll_weakfirsts, followAll_xattributes, foreignObject, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, nomatch
-
Field Details
-
sizeInfo
SyntaxGraph.SizeInfo sizeInfo
-
-
Constructor Details
-
Layouter
public Layouter()
-
-
Method Details
-
layout
-
action
- Overrides:
action
in classSinglePhase
-
action
- Overrides:
action
in classSinglePhase
-
action
- Overrides:
action
in classSinglePhase
-
sizeByNormalText
-
action
- Overrides:
action
in classSinglePhase
-
action
insertions may have survived ONLY as flattened calls to character parsers.- Overrides:
action
in classSinglePhase
-
action
- Overrides:
action
in classSinglePhase
-
action
- Overrides:
action
in classSinglePhase
-
action
- Overrides:
action
in classSinglePhase
-
action
- Overrides:
action
in classSinglePhase
-
action
- Overrides:
action
in classSinglePhase
-
processAltOrInnerPerm
-
action
- Overrides:
action
in classSinglePhase
-
action
- Overrides:
action
in classSinglePhase
-
action
- Overrides:
action
in classSinglePhase
-
action
- Overrides:
action
in classSinglePhase
-
action
- Overrides:
action
in classSinglePhase
-
action
- Overrides:
action
in classSinglePhase
-
action
- Overrides:
action
in classSinglePhase
-
action
- Overrides:
action
in classSinglePhase
-