Class WedgeLineElement

java.lang.Object
org.openscience.cdk.renderer.elements.LineElement
org.openscience.cdk.renderer.elements.WedgeLineElement
All Implemented Interfaces:
IRenderingElement

public class WedgeLineElement extends LineElement
A 'wedge' is a triangle aligned along a bond that indicates stereochemistry. It can be dashed or not to indicate up and down.
Source code:
main
Belongs to CDK module:
renderbasic
  • Field Details

  • Constructor Details

    • WedgeLineElement

      public 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.
      Parameters:
      x1 - the x-coordinate of the first point
      y1 - the y-coordinate of the first point
      x2 - the x-coordinate of the second point
      y2 - the y-coordinate of the second point
      width - the width of the wedge
      type - the bond is dashed ,wedged, or "up_or_down", i.e., not defined.
      direction - the direction of the thickness
      color - the color of the wedge
    • WedgeLineElement

      public WedgeLineElement(LineElement element, WedgeLineElement.TYPE type, WedgeLineElement.Direction direction, Color color)
      Make a wedge along the given line element.
      Parameters:
      element - the line element to use as the basic geometry
      type - if the bond is dashed ,wedged, or "up_or_down", i.e., not defined
      direction - the direction of the thickness
      color - the color of the wedge
  • Method Details