public interface GraphicsBackend<T extends GraphicsItem>
| Modifier and Type | Interface and Description |
|---|---|
static class |
GraphicsBackend.Alignment |
static interface |
GraphicsBackend.Font |
| Modifier and Type | Method and Description |
|---|---|
T |
arrow(Point2D tip,
Point2D fromDirection,
Rectangle2D dimensions,
Color fillColor)
Creates a new arrow item.
|
T |
cubicCurve(CubicCurve2D curveData,
Stroke strokeStyle,
Color color)
Creates a new item that draws a cubic curve.
|
GraphicsBackend.Font |
getFont(Font original,
int pointSize,
int style)
Returns a backend font object.
|
T |
group()
Creates a new grouping item.
|
T |
makeLabel(String label,
Point2D pos,
GraphicsBackend.Font font,
Color color,
GraphicsBackend.Alignment alignment,
Shape shape)
Creates a new label item.
|
T |
makeLines(Collection<Line2D> lines,
Color color,
Stroke strokeStyle) |
T arrow(Point2D tip, Point2D fromDirection, Rectangle2D dimensions, Color fillColor)
tip - The point of the arrow's tip.fromDirection - The point that specifies the direction from which the arrow is pointing.dimensions - The dimensions (width, height) of the arrow.fillColor - The fill color.T cubicCurve(CubicCurve2D curveData, Stroke strokeStyle, Color color)
curveData - The curve data.strokeStyle - The stroking style for the curve.color - The stroke color.GraphicsBackend.Font getFont(Font original, int pointSize, int style)
original - The original base fontpointSize - The point sizestyle - The style constant, as given by the constants in Font.T group()
T makeLabel(String label, Point2D pos, GraphicsBackend.Font font, Color color, GraphicsBackend.Alignment alignment, Shape shape)
label - The label string.pos - The label position.font - Font to be used for rendering.color - The text color.alignment - Alignment of the label string with regard to pos.shape - The shape surrounding the label string (border, background color)T makeLines(Collection<Line2D> lines, Color color, Stroke strokeStyle)
Copyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.