Class WidgetFrameBorder

java.lang.Object
org.eclipse.draw2d.AbstractBorder
org.eclipse.draw2d.CompoundBorder
org.csstudio.opibuilder.visualparts.WidgetFrameBorder
All Implemented Interfaces:
org.eclipse.draw2d.Border, org.eclipse.draw2d.LabeledBorder

public class WidgetFrameBorder extends org.eclipse.draw2d.CompoundBorder implements org.eclipse.draw2d.LabeledBorder
Provides for a frame-like border which contains a title bar for holding the title of a Figure.
  • Field Summary

    Fields inherited from class org.eclipse.draw2d.CompoundBorder

    inner, outer

    Fields inherited from class org.eclipse.draw2d.AbstractBorder

    tempRect
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a FrameBorder with its label set to the name of the TitleBarBorder class.
    Constructs a FrameBorder with the title set to the passed String.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Creates the necessary borders for this FrameBorder.
     
    protected org.eclipse.draw2d.LabeledBorder
    Returns the inner border of this FrameBorder, which contains the label for the FrameBorder.
    void
    setFont(Font font)
    Sets the font for this border's label.
    void
    Sets the label for this border.

    Methods inherited from class org.eclipse.draw2d.CompoundBorder

    getInnerBorder, getInsets, getOuterBorder, getPreferredSize, isOpaque, paint

    Methods inherited from class org.eclipse.draw2d.AbstractBorder

    getPaintRectangle

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.draw2d.Border

    getInsets, getPreferredSize, isOpaque, paint
  • Constructor Details

    • WidgetFrameBorder

      public WidgetFrameBorder()
      Constructs a FrameBorder with its label set to the name of the TitleBarBorder class.
    • WidgetFrameBorder

      public WidgetFrameBorder(String label)
      Constructs a FrameBorder with the title set to the passed String.
      Parameters:
      label - label or title of the frame.
  • Method Details

    • createBorders

      protected void createBorders()
      Creates the necessary borders for this FrameBorder. The inner border is a TitleBarBorder. The outer border is a SchemeBorder.
    • getLabeledBorder

      protected org.eclipse.draw2d.LabeledBorder getLabeledBorder()
      Returns the inner border of this FrameBorder, which contains the label for the FrameBorder.
      Returns:
      the border holding the label.
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface org.eclipse.draw2d.LabeledBorder
      Returns:
      the label for this border
    • setLabel

      public void setLabel(String label)
      Sets the label for this border.
      Specified by:
      setLabel in interface org.eclipse.draw2d.LabeledBorder
    • setFont

      public void setFont(Font font)
      Sets the font for this border's label.
      Specified by:
      setFont in interface org.eclipse.draw2d.LabeledBorder