Class SeparatorWidget

java.lang.Object
org.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.SeparatorWidget
All Implemented Interfaces:
Accessible, org.openide.util.Lookup.Provider

public class SeparatorWidget extends Widget
This is a separator widget. Renders a rectangle that is usually expand across the width or height of the parent widget based on an orientation.
  • Constructor Details

    • SeparatorWidget

      public SeparatorWidget(Scene scene, SeparatorWidget.Orientation orientation)
      Creates a separator widget.
      Parameters:
      scene - the scene
      orientation - the separator orientation
  • Method Details

    • getOrientation

      public SeparatorWidget.Orientation getOrientation()
      Returns a separator orientation
      Returns:
      the separator orientation
    • setOrientation

      public void setOrientation(SeparatorWidget.Orientation orientation)
      Sets a separator orientation
      Parameters:
      orientation - the separator orientation
    • getThickness

      public int getThickness()
      Returns a thickness of the separator.
      Returns:
      the thickness
    • setThickness

      public void setThickness(int thickness)
      Sets a thickness of the seperator.
      Parameters:
      thickness - the thickness
    • calculateClientArea

      protected Rectangle calculateClientArea()
      Calculates a client area of the separator widget.
      Overrides:
      calculateClientArea in class Widget
      Returns:
      the calculated client area
    • paintWidget

      protected void paintWidget()
      Paints the separator widget.
      Overrides:
      paintWidget in class Widget