Class PathBorder

  • All Implemented Interfaces:
    org.eclipse.draw2d.Border

    public class PathBorder
    extends org.eclipse.draw2d.LineBorder
    • Field Summary

      • Fields inherited from class org.eclipse.draw2d.AbstractBorder

        tempRect
    • Constructor Summary

      Constructors 
      Constructor Description
      PathBorder​(IPathProvider path)
      Constructs a default black PathBorder with a width of one pixel.
      PathBorder​(IPathProvider path, org.eclipse.swt.graphics.Color color, int width, int style)
      Constructs a PathBorder with the specified color and of the specified width and style.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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
    • Constructor Detail

      • PathBorder

        public PathBorder​(IPathProvider path)
        Constructs a default black PathBorder with a width of one pixel.
        See Also:
        IPathProvider
      • PathBorder

        public PathBorder​(IPathProvider path,
                          org.eclipse.swt.graphics.Color color,
                          int width,
                          int style)
        Constructs a PathBorder with the specified color and of the specified width and style.
        Parameters:
        color - The color of the border.
        width - The width of the border in pixels.
        style - The style of the border. For the list of valid values, see Graphics
        See Also:
        IPathProvider, Path
    • Method Detail

      • 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
        See Also:
        Border.paint(IFigure, Graphics, Insets)