站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

LayerWidget (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

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

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, getFont, getForeground, getGraphics, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getScene, getState, getToolTipText, hashCode, isCheckClipping, isEnabled, isOpaque, isPreferredBoundsSet, isValidated, isVisible, notifyAdded, notifyRemoved, notifyStateChanged, paint, paintBackground, paintBorder, paintChildren, paintWidget, removeChild, removeChildren, removeChildren, removeDependency, removeFromParent, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBorder, setBorder, setCheckClipping, setChildConstraint, setCursor, setEnabled, setFont, setForeground, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setState, setToolTipText, setVisible
 
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.2

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