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.
|
static class |
WedgeLineElement.TYPE
If the bond is dashed ,wedged, or "up_or_down", i.e., not defined.
|
LineElement.LineType| Modifier and Type | Field and Description |
|---|---|
WedgeLineElement.Direction |
direction
The direction indicates which way the wedge gets thicker.
|
WedgeLineElement.TYPE |
type
The type of the bond (dashed, wedged, not defined).
|
color, firstPointX, firstPointY, secondPointX, secondPointY, width| Constructor and Description |
|---|
WedgeLineElement(double x1,
double y1,
double x2,
double y2,
double width,
WedgeLineElement.TYPE type,
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,
WedgeLineElement.TYPE type,
WedgeLineElement.Direction direction,
Color color)
Make a wedge along the given line element.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(IRenderingVisitor v)
Converts this
TextElement into widget specific objects. |
public final WedgeLineElement.TYPE type
public final WedgeLineElement.Direction direction
public WedgeLineElement(double x1,
double y1,
double x2,
double y2,
double width,
WedgeLineElement.TYPE type,
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 wedgetype - the bond is dashed ,wedged, or "up_or_down", i.e., not defined.direction - the direction of the thicknesscolor - the color of the wedgepublic WedgeLineElement(LineElement element, WedgeLineElement.TYPE type, WedgeLineElement.Direction direction, Color color)
element - the line element to use as the basic geometrytype - if the bond is dashed ,wedged, or "up_or_down", i.e., not defineddirection - the direction of the thicknesscolor - the color of the wedgepublic void accept(IRenderingVisitor v)
TextElement into widget specific objects.accept in interface IRenderingElementaccept in class LineElementv - Toolkit specific widget factory.Copyright © 2021. All rights reserved.