Class RoundRectangleBackgroundBorder

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

public class RoundRectangleBackgroundBorder extends org.eclipse.draw2d.AbstractBackground
A special border which fills the background with a round rectangle.
  • Field Summary

    Fields inherited from class org.eclipse.draw2d.AbstractBorder

    tempRect
  • Constructor Summary

    Constructors
    Constructor
    Description
    RoundRectangleBackgroundBorder(Color backgroundColor, int lineWidth)
     
  • Method Summary

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

    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

    • RoundRectangleBackgroundBorder

      public RoundRectangleBackgroundBorder(Color backgroundColor, int lineWidth)
  • Method Details

    • getInsets

      public org.eclipse.draw2d.geometry.Insets getInsets(org.eclipse.draw2d.IFigure figure)
      Specified by:
      getInsets in interface org.eclipse.draw2d.Border
      Overrides:
      getInsets in class org.eclipse.draw2d.AbstractBackground
    • isOpaque

      public boolean isOpaque()
      Specified by:
      isOpaque in interface org.eclipse.draw2d.Border
      Overrides:
      isOpaque in class org.eclipse.draw2d.AbstractBorder
    • 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.AbstractBackground
    • paintBackground

      public void paintBackground(org.eclipse.draw2d.IFigure figure, org.eclipse.draw2d.Graphics graphics, org.eclipse.draw2d.geometry.Insets insets)
      Overrides:
      paintBackground in class org.eclipse.draw2d.AbstractBackground