org.netbeans.api.visual 2.21.1

org.netbeans.api.visual.widget
Class LayerWidget

java.lang.Object
  extended by org.netbeans.api.visual.widget.Widget
      extended by org.netbeans.api.visual.widget.LayerWidget
All Implemented Interfaces:
Accessible

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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
Widget.Dependency
 
Constructor Summary
LayerWidget(Scene scene)
          Creates a layer widget.
 
Method Summary
 boolean isHitAt(Point localLocation)
          Returns whether a specified local location is part of the layer widget.
protected  boolean isRepaintRequiredForRevalidating()
          Returns whether the layer widget requires to repainted after revalidation.
 
Methods inherited from class org.netbeans.api.visual.widget.Widget
addChild, addChild, addChild, addChild, addChildren, addDependency, bringToBack, bringToFront, calculateClientArea, convertLocalToScene, convertLocalToScene, convertSceneToLocal, convertSceneToLocal, createActions, equals, getAccessibleContext, getActions, getActions, getBackground, getBorder, getBounds, getChildConstraint, getChildren, getClientArea, getCursor, getCursorAt, getDependencies, getFont, getForeground, getGraphics, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getResourceTable, getScene, getState, getToolTipText, hashCode, isCheckClipping, isEnabled, isOpaque, isPreferredBoundsSet, isValidated, isVisible, notifyAdded, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, notifyRemoved, notifyStateChanged, paint, paintBackground, paintBorder, paintChildren, paintWidget, removeChild, removeChildren, removeChildren, removeDependency, removeFromParent, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBackgroundFromResource, setBorder, setBorder, setCheckClipping, setChildConstraint, setCursor, setEnabled, setFont, setFontFromResource, setForeground, setForegroundFromResource, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setResourceTable, setState, setToolTipText, setVisible, updateResources
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayerWidget

public LayerWidget(Scene scene)
Creates a layer widget.

Parameters:
scene - the scene
Method Detail

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

org.netbeans.api.visual 2.21.1

Built on December 28 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.