@TestClass(value="org.openscience.cdk.renderer.elements.WedgeLineElementTest") public class WedgeLineElement extends LineElement
Modifier and Type | Class and Description |
---|---|
static class |
WedgeLineElement.Direction
'toFirst' means that the wedge gets thicker in the direction of the first
point in the line.
|
LineElement.LineType
Modifier and Type | Field and Description |
---|---|
WedgeLineElement.Direction |
direction
The direction indicates which way the wedge gets thicker.
|
boolean |
isDashed
If true, the wedge should be rendered as a dashed triangle.
|
color, firstPointX, firstPointY, secondPointX, secondPointY, width
Constructor and Description |
---|
WedgeLineElement(double x1,
double y1,
double x2,
double y2,
double width,
boolean dashed,
WedgeLineElement.Direction direction,
Color color)
Make a wedge between the points (x1, y1) and (x2, y2) with a certain
width, direction, dash, and color.
|
WedgeLineElement(LineElement element,
boolean dashed,
WedgeLineElement.Direction direction,
Color color)
Make a wedge along the given line element.
|
public final boolean isDashed
public final WedgeLineElement.Direction direction
@TestMethod(value="testConstructor") public WedgeLineElement(double x1, double y1, double x2, double y2, double width, boolean dashed, WedgeLineElement.Direction direction, Color color)
x1
- the x-coordinate of the first pointy1
- the y-coordinate of the first pointx2
- the x-coordinate of the second pointy2
- the y-coordinate of the second pointwidth
- the width of the wedgedashed
- if true, the wedge should be dasheddirection
- the direction of the thicknesscolor
- the color of the wedge@TestMethod(value="testConstructor_LineElement") public WedgeLineElement(LineElement element, boolean dashed, WedgeLineElement.Direction direction, Color color)
element
- the line element to use as the basic geometrydashed
- if true, the wedge should be dasheddirection
- the direction of the thicknesscolor
- the color of the wedge@TestMethod(value="testAccept") public void accept(IRenderingVisitor v)
TextElement
into widget specific objects.accept
in interface IRenderingElement
accept
in class LineElement
v
- Toolkit specific widget factory.