public class LineElement extends Object implements IRenderingElement
Modifier and Type | Class and Description |
---|---|
static class |
LineElement.LineType
The type of the line.
|
Modifier and Type | Field and Description |
---|---|
Color |
color
The color of the line.
|
double |
firstPointX
The x-coordinate of the first point.
|
double |
firstPointY
The y-coordinate of the first point.
|
double |
secondPointX
The x-coordinate of the second point.
|
double |
secondPointY
The y-coordinate of the second point.
|
double |
width
The width of the line.
|
Constructor and Description |
---|
LineElement(double firstPointX,
double firstPointY,
double secondPointX,
double secondPointY,
double width,
Color color)
Make a line element.
|
public final double firstPointX
public final double firstPointY
public final double secondPointX
public final double secondPointY
public final double width
public final Color color
public LineElement(double firstPointX, double firstPointY, double secondPointX, double secondPointY, double width, Color color)
firstPointX
- x-coordinate of the first pointfirstPointY
- y-coordinate of the first pointsecondPointX
- x-coordinate of the second pointsecondPointY
- y-coordinate of the second pointwidth
- the width of the linecolor
- the color of the linepublic void accept(IRenderingVisitor visitor)
TextElement
into widget specific objects.accept
in interface IRenderingElement
visitor
- Toolkit specific widget factory.Copyright © 2017. All Rights Reserved.