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

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

org.netbeans.api.visual 2.2

org.netbeans.api.visual.layout
Class SceneLayout

java.lang.Object
  extended by org.netbeans.api.visual.layout.SceneLayout

public abstract class SceneLayout
extends Object

This is used for a one-time operations that had to be invoked after the scene is initialized and/or validated. This is usually used for applying graph-oriented layouts where the layout requires to calculate boundaries of widgets before the layout is invokes.

The SceneLayout can be invoked by SceneLayout.invokeLayout method. This method just schedules the scene layout to be performed after the scene validation is done.


Constructor Summary
protected SceneLayout(Scene scene)
          Creates a scene layout that is related to a specific scene.
 
Method Summary
 void invokeLayout()
          Schedules the performing of this scene layout just immediately after the scene validation.
 void invokeLayoutImmediately()
          Schedules the performing of this scene layout just immediately after the scene validation.
protected abstract  void performLayout()
          Called immediately after the scene validation and is responsible for performing the logic e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SceneLayout

protected SceneLayout(Scene scene)
Creates a scene layout that is related to a specific scene.

Parameters:
scene - the related scene
Method Detail

invokeLayout

public final void invokeLayout()
Schedules the performing of this scene layout just immediately after the scene validation. It also calls scene revalidation. The Scene.validate method has to be manually called after.


invokeLayoutImmediately

public final void invokeLayoutImmediately()
Schedules the performing of this scene layout just immediately after the scene validation. It also calls scene revalidation. The Scene.validate method is called automatically at the end.


performLayout

protected abstract void performLayout()
Called immediately after the scene validation and is responsible for performing the logic e.g. graph-oriented layout.


org.netbeans.api.visual 2.2

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