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 -
Method Summary
Modifier and TypeMethodDescriptionvoidpaint(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, setWidthMethods inherited from class org.eclipse.draw2d.AbstractBorder
getPaintRectangle, getPreferredSize
-
Constructor Details
-
VersatileLineBorder
- Parameters:
borderColor- the border colorlineWidth- the line width in pixelslineStyle- 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:
paintin interfaceorg.eclipse.draw2d.Border- Overrides:
paintin classorg.eclipse.draw2d.LineBorder
-