public class TigerTreeVisualizer.DefaultStyler extends Object implements TreeElementStyler
| Modifier and Type | Field and Description |
|---|---|
static int |
HEIGHT_STEP |
static int |
LABEL_PADDING |
static int |
TOKEN_SPACING |
static int |
VEDGE_OVERLAP_THRESHOLD |
| Constructor and Description |
|---|
DefaultStyler(Java2dBackend backend) |
| Modifier and Type | Method and Description |
|---|---|
Color |
getEdgeColor(org.corpus_tools.salt.core.SRelation e,
VisualizerInput input) |
GraphicsBackend.Font |
getFont(org.corpus_tools.salt.core.SNode n,
VisualizerInput input) |
GraphicsBackend.Font |
getFont(org.corpus_tools.salt.core.SRelation e) |
int |
getHeightStep() |
int |
getLabelPadding() |
Shape |
getShape(org.corpus_tools.salt.core.SNode n,
VisualizerInput input) |
Shape |
getShape(org.corpus_tools.salt.core.SRelation e,
VisualizerInput input) |
Stroke |
getStroke(org.corpus_tools.salt.core.SRelation e,
VisualizerInput input) |
Color |
getTextBrush(org.corpus_tools.salt.core.SNode n,
VisualizerInput input) |
Color |
getTextBrush(org.corpus_tools.salt.core.SRelation n) |
int |
getTokenSpacing() |
int |
getVEdgeOverlapThreshold() |
public static final int LABEL_PADDING
public static final int HEIGHT_STEP
public static final int TOKEN_SPACING
public static final int VEDGE_OVERLAP_THRESHOLD
public DefaultStyler(Java2dBackend backend) throws FontFormatException, IOException
FontFormatExceptionIOExceptionpublic Color getEdgeColor(org.corpus_tools.salt.core.SRelation e, VisualizerInput input)
getEdgeColor in interface TreeElementStylerpublic GraphicsBackend.Font getFont(org.corpus_tools.salt.core.SNode n, VisualizerInput input)
getFont in interface TreeElementStylerpublic GraphicsBackend.Font getFont(org.corpus_tools.salt.core.SRelation e)
getFont in interface TreeElementStylerpublic int getHeightStep()
getHeightStep in interface TreeElementStylerpublic int getLabelPadding()
getLabelPadding in interface TreeElementStylerpublic Shape getShape(org.corpus_tools.salt.core.SNode n, VisualizerInput input)
getShape in interface TreeElementStylerpublic Shape getShape(org.corpus_tools.salt.core.SRelation e, VisualizerInput input)
getShape in interface TreeElementStylerpublic Stroke getStroke(org.corpus_tools.salt.core.SRelation e, VisualizerInput input)
getStroke in interface TreeElementStylerpublic Color getTextBrush(org.corpus_tools.salt.core.SNode n, VisualizerInput input)
getTextBrush in interface TreeElementStylerpublic Color getTextBrush(org.corpus_tools.salt.core.SRelation n)
getTextBrush in interface TreeElementStylerpublic int getTokenSpacing()
getTokenSpacing in interface TreeElementStylerpublic int getVEdgeOverlapThreshold()
getVEdgeOverlapThreshold in interface TreeElementStylerCopyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.