|
| | Edge (final int x1, final int x2, final int baseY, final int x1Anchor, final int x2Anchor, final int yAnchor, final int height, final String label, final boolean isVertical, final Color color, final boolean isBackwards, final boolean isLeftTerminal, final boolean isRightTerminal, final int bottom, final boolean isVisible) |
| |
| Rectangle | getRectangle () |
| |
| void | drawLabel (final Graphics g) |
| |
| void | draw (final Graphics g, final boolean asCurve) |
| |
| String | toString () |
| |
◆ Edge()
| grammarscope.browser.renderer.SemanticGraphRenderer.Edge.Edge |
( |
final int |
x1, |
|
|
final int |
x2, |
|
|
final int |
baseY, |
|
|
final int |
x1Anchor, |
|
|
final int |
x2Anchor, |
|
|
final int |
yAnchor, |
|
|
final int |
height, |
|
|
final String |
label, |
|
|
final boolean |
isVertical, |
|
|
final Color |
color, |
|
|
final boolean |
isBackwards, |
|
|
final boolean |
isLeftTerminal, |
|
|
final boolean |
isRightTerminal, |
|
|
final int |
bottom, |
|
|
final boolean |
isVisible |
|
) |
| |
Constructor
- Parameters
-
| x1 | x1 |
| x2 | x2 |
| baseY | y |
| x1Anchor | anchor x1 |
| x2Anchor | anchor x2 |
| yAnchor | anchor y |
| height | height |
| label | label |
| isVertical | label is vertical |
| color | color |
| isBackwards | direction |
| isLeftTerminal | is left terminal |
| isRightTerminal | is right terminal |
| bottom | pad bottom |
| isVisible | is visible |
◆ draw()
| void grammarscope.browser.renderer.SemanticGraphRenderer.Edge.draw |
( |
final Graphics |
g, |
|
|
final boolean |
asCurve |
|
) |
| |
Draw edge
- Parameters
-
| g | graphics context |
| asCurve | whether to draw edge as curve (or straight arrow) |
◆ drawCurvePath()
| void grammarscope.browser.renderer.SemanticGraphRenderer.Edge.drawCurvePath |
( |
final Graphics2D |
g2 | ) |
|
|
private |
Draw edge as curve
- Parameters
-
◆ drawLabel()
| void grammarscope.browser.renderer.SemanticGraphRenderer.Edge.drawLabel |
( |
final Graphics |
g | ) |
|
◆ drawStraightArrow()
| void grammarscope.browser.renderer.SemanticGraphRenderer.Edge.drawStraightArrow |
( |
final Graphics2D |
g2 | ) |
|
|
private |
Draw edge as straight arrow
- Parameters
-
◆ getRectangle()
| Rectangle grammarscope.browser.renderer.SemanticGraphRenderer.Edge.getRectangle |
( |
| ) |
|
Get rectangle for edge space including tag
- Returns
- rectangle
◆ toString()
| String grammarscope.browser.renderer.SemanticGraphRenderer.Edge.toString |
( |
| ) |
|
◆ bottom
| final int grammarscope.browser.renderer.SemanticGraphRenderer.Edge.bottom |
|
package |
Bottom past which this edge is not visible
◆ color
| final Color grammarscope.browser.renderer.SemanticGraphRenderer.Edge.color |
◆ height
| final int grammarscope.browser.renderer.SemanticGraphRenderer.Edge.height |
◆ isBackwards
| final boolean grammarscope.browser.renderer.SemanticGraphRenderer.Edge.isBackwards |
Whether this edge is continued on next line
◆ isLeftTerminal
| final boolean grammarscope.browser.renderer.SemanticGraphRenderer.Edge.isLeftTerminal |
Whether this edge is continued on previous line
◆ isRightTerminal
| final boolean grammarscope.browser.renderer.SemanticGraphRenderer.Edge.isRightTerminal |
|
package |
Whether this edge is continued on next line
◆ isVertical
| final boolean grammarscope.browser.renderer.SemanticGraphRenderer.Edge.isVertical |
|
package |
Whether this label is vertical
◆ isVisible
| final boolean grammarscope.browser.renderer.SemanticGraphRenderer.Edge.isVisible |
|
package |
Whether this edge is visible
◆ tag
| final String grammarscope.browser.renderer.SemanticGraphRenderer.Edge.tag |
◆ tagPosition
| final Point grammarscope.browser.renderer.SemanticGraphRenderer.Edge.tagPosition |
|
private |
◆ tagRectangle
| final Rectangle grammarscope.browser.renderer.SemanticGraphRenderer.Edge.tagRectangle |
|
package |
Whether this edge is visible
◆ tagWidth
| final int grammarscope.browser.renderer.SemanticGraphRenderer.Edge.tagWidth |
|
package |
◆ x1
| final int grammarscope.browser.renderer.SemanticGraphRenderer.Edge.x1 |
◆ x1Anchor
| final int grammarscope.browser.renderer.SemanticGraphRenderer.Edge.x1Anchor |
◆ x2
| final int grammarscope.browser.renderer.SemanticGraphRenderer.Edge.x2 |
◆ x2Anchor
| final int grammarscope.browser.renderer.SemanticGraphRenderer.Edge.x2Anchor |
◆ yAnchor
| final int grammarscope.browser.renderer.SemanticGraphRenderer.Edge.yAnchor |
Edge vertical base position
◆ yBase
| final int grammarscope.browser.renderer.SemanticGraphRenderer.Edge.yBase |
Edge vertical base position
The documentation for this class was generated from the following file: