|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NLPCanvasRenderer
An NLPCanvasRenderer renders a given NLPInstance to a Graphics object and returns the dimension of the created image.
Method Summary | |
---|---|
int |
getHeightFactor()
Returns an integer that reflects the height of the graph. |
int |
getMargin()
Returns the margin between tokens. |
boolean |
isAntiAliasing()
Should anti-aliasing be used when drawing the graph. |
boolean |
isCurved()
Returns whether the renderer draws a more curved graph or not. |
java.awt.Dimension |
render(NLPInstance instance,
java.awt.Graphics2D graphics2D)
Renders the given instance to the given Graphics object and returns the dimension of the rendered image |
void |
setAntiAliasing(boolean antiAliasing)
Should anti-aliasing be used when drawing the graph. |
void |
setCurved(boolean isCurved)
Controls whether the graph should be curved or rectangular. |
void |
setEdgeTypeColor(java.lang.String edgeType,
java.awt.Color color)
Set the color for edges of a certain type. |
void |
setEdgeTypeOrder(java.lang.String edgeType,
int order)
Sets the order/vertical layer in which the area of a certain type should be drawn. |
void |
setHeightFactor(int heightFactor)
Controls the height of the graph. |
void |
setMargin(int margin)
Sets the margin between tokens. |
Method Detail |
---|
java.awt.Dimension render(NLPInstance instance, java.awt.Graphics2D graphics2D)
instance
- the instance to rendergraphics2D
- the graphics object to draw upon
void setAntiAliasing(boolean antiAliasing)
antiAliasing
- rue iff anti-aliasing should be used when drawing the graph.void setMargin(int margin)
margin
- the margin between tokens.int getMargin()
void setHeightFactor(int heightFactor)
heightFactor
- an integer that indicates how high the graph should be.int getHeightFactor()
void setCurved(boolean isCurved)
isCurved
- should the graph be more curved.boolean isCurved()
void setEdgeTypeColor(java.lang.String edgeType, java.awt.Color color)
edgeType
- the type of the edges we want to change the color for.color
- the color of the edges of the given type.void setEdgeTypeOrder(java.lang.String edgeType, int order)
edgeType
- the type we want to change the order for.order
- the order/vertical layer in which the area of the given type should be drawn.boolean isAntiAliasing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |