Class LayerWidget

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

public class LayerWidget extends Widget
The layer widget represents a transparent widget which functionality is similar to JGlassPane. The layer widget is used for speed optimalization too since it is not repainted when the widget is re-layout.

It can be used widgets organization. A scene usually has layer widgets directly underneath. E.g. each layer widget is used different purpose: background for widgets on background, main layer for node widgets, connection layer for edge widgets, interraction layer for temporary widgets created/used by actions.

  • Constructor Details

    • LayerWidget

      public LayerWidget(Scene scene)
      Creates a layer widget.
      Parameters:
      scene - the scene
  • Method Details

    • isHitAt

      public boolean isHitAt(Point localLocation)
      Returns whether a specified local location is part of the layer widget.
      Overrides:
      isHitAt in class Widget
      Parameters:
      localLocation - the local location
      Returns:
      always false
    • isRepaintRequiredForRevalidating

      protected boolean isRepaintRequiredForRevalidating()
      Returns whether the layer widget requires to repainted after revalidation.
      Overrides:
      isRepaintRequiredForRevalidating in class Widget
      Returns:
      always false