|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.xqhs.util.config.Config
net.xqhs.util.logging.Unit
net.xqhs.graphs.matcher.MatchingVisualizer
public class MatchingVisualizer
Visualizer for the matching process. Uses a GCanvas
that is passed to the respective graphical
representations.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.xqhs.util.config.Config |
---|
net.xqhs.util.config.Config.ConfigLockedException |
Field Summary | |
---|---|
(package private) int |
fontSize
Size of the font to use for writing. |
(package private) int |
lineHeight
The height of a line. |
(package private) float |
lineSpacing
Fraction of the line height to consider as spacing between lines. |
(package private) net.xqhs.graphical.GCanvas |
theCanvas
The canvas to use. |
(package private) java.awt.Point |
topleftLine
The current position - top left corner for the current line. |
Fields inherited from class net.xqhs.util.logging.Unit |
---|
DEFAULT_LEVEL, DEFAULT_UNIT_NAME |
Constructor Summary | |
---|---|
MatchingVisualizer()
|
Method Summary | |
---|---|
MatchingVisualizer |
feedLine(Graph graph,
VisualizableGraphComponent highlight,
java.lang.String comment)
Displays in the visualizer a line showing a graphical representation of the specified graph, with the specified component highlighted, and the specified comment next to the representation. |
MatchingVisualizer |
feedLine(java.util.List<Match> ms,
java.lang.String comment)
Outputs a line of the matching process visualization to the canvas, also adding the specified comment. |
MatchingVisualizer |
feedLine(Match m1,
Match m2,
Match m3,
java.lang.String comment)
Outputs a line of the matching process visualization to the canvas, consisting of three match, also adding the specified comment. |
MatchingVisualizer |
feedLine(Match m1,
Match m2,
java.lang.String comment)
Outputs a line of the matching process visualization to the canvas, consisting of two matches, also adding the specified comment. |
MatchingVisualizer |
feedLine(Match m1,
java.lang.String comment)
Outputs a line of the matching process visualization to the canvas, consisting of only one match, also adding the specified comment. |
MatchingVisualizer |
feedLine(java.lang.String comment)
Displays in the visualizer a line showing only one comment. |
MatchingVisualizer |
setCanvas(net.xqhs.graphical.GCanvas canvas)
|
MatchingVisualizer |
setLineHeight(int height)
|
MatchingVisualizer |
setTopLeft(java.awt.Point topleft)
|
Methods inherited from class net.xqhs.util.logging.Unit |
---|
compose, dbg, doExit, getDefaultUnitName, getUnitName, l, le, lf, li, lock, lockedR, lr, lr, lw, setLink, setLink, setLogDisplay, setLogEnsureNew, setLoggerClass, setLoggerType, setLoggerTypeClass, setLogLevel, setLogReporter, setUnitName, setUnitName |
Methods inherited from class net.xqhs.util.config.Config |
---|
build, ensureLocked, locked, lockedEx, makeDefaults |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
net.xqhs.graphical.GCanvas theCanvas
java.awt.Point topleftLine
int lineHeight
float lineSpacing
int fontSize
Constructor Detail |
---|
public MatchingVisualizer()
Method Detail |
---|
public MatchingVisualizer setCanvas(net.xqhs.graphical.GCanvas canvas)
canvas
- - the GCanvas
to use
public MatchingVisualizer setTopLeft(java.awt.Point topleft)
topleft
- - the coordinate on the canvas to use as top left corner for the visualization
public MatchingVisualizer setLineHeight(int height)
height
- - the height of a feed line
public MatchingVisualizer feedLine(Match m1, java.lang.String comment)
m1
- - the match.comment
- - the comment.
public MatchingVisualizer feedLine(Match m1, Match m2, java.lang.String comment)
m1
- - the first match.m2
- - the second match.comment
- - the comment.
public MatchingVisualizer feedLine(Match m1, Match m2, Match m3, java.lang.String comment)
m1
- - the first match.m2
- - the second match.m3
- - the third match.comment
- - the comment.
public MatchingVisualizer feedLine(java.util.List<Match> ms, java.lang.String comment)
ms
- - matches to add to the visualization.comment
- - comment to add to the visualization.
public MatchingVisualizer feedLine(Graph graph, VisualizableGraphComponent highlight, java.lang.String comment)
graph
- - the graphhighlight
- - the highlighted componentcomment
- - the comment / message to display
public MatchingVisualizer feedLine(java.lang.String comment)
comment
- - the comment
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |