Class VersatileLineBorder

java.lang.Object
org.eclipse.draw2d.AbstractBorder
org.eclipse.draw2d.LineBorder
org.csstudio.opibuilder.visualparts.VersatileLineBorder
All Implemented Interfaces:
org.eclipse.draw2d.Border

public class VersatileLineBorder extends org.eclipse.draw2d.LineBorder
The line border which allows versatile line style: SWT.LINE_SOLID, SWT.LINE_DASH, SWT.LINE_DOT, SWT.LINE_DASHDOT or SWT.LINE_DASHDOTDOT.
  • Field Summary

    Fields inherited from class org.eclipse.draw2d.AbstractBorder

    tempRect
  • Constructor Summary

    Constructors
    Constructor
    Description
    VersatileLineBorder(Color borderColor, int lineWidth, int lineStyle)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    paint(org.eclipse.draw2d.IFigure figure, org.eclipse.draw2d.Graphics graphics, org.eclipse.draw2d.geometry.Insets insets)
     

    Methods inherited from class org.eclipse.draw2d.LineBorder

    getColor, getInsets, getStyle, getWidth, isOpaque, setColor, setStyle, setWidth

    Methods inherited from class org.eclipse.draw2d.AbstractBorder

    getPaintRectangle, getPreferredSize

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VersatileLineBorder

      public VersatileLineBorder(Color borderColor, int lineWidth, int lineStyle)
      Parameters:
      borderColor - the border color
      lineWidth - the line width in pixels
      lineStyle - the line style, which must be one of the constants SWT.LINE_SOLID, SWT.LINE_DASH, SWT.LINE_DOT, SWT.LINE_DASHDOT or SWT.LINE_DASHDOTDOT.
  • Method Details

    • paint

      public void paint(org.eclipse.draw2d.IFigure figure, org.eclipse.draw2d.Graphics graphics, org.eclipse.draw2d.geometry.Insets insets)
      Specified by:
      paint in interface org.eclipse.draw2d.Border
      Overrides:
      paint in class org.eclipse.draw2d.LineBorder