Class SceneLayout
java.lang.Object
org.netbeans.api.visual.layout.SceneLayout
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
ConstructorsModifierConstructorDescriptionprotected
SceneLayout
(Scene scene) Creates a scene layout that is related to a specific scene. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Schedules the performing of this scene layout just immediately after the scene validation.final void
Schedules the performing of this scene layout just immediately after the scene validation.protected abstract void
Called immediately after the scene validation and is responsible for performing the logic e.g.
-
Constructor Details
-
SceneLayout
Creates a scene layout that is related to a specific scene.- Parameters:
scene
- the related scene
-
-
Method Details
-
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.
-