Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Draw2d
3.3

org.eclipse.draw2d
Interface LayoutListener

All Known Implementing Classes:
LayoutAnimator, LayoutListener.Stub

public interface LayoutListener

Classes which implement this interface provide callback hooks for various layout related events.

Instances can be hooked to figures by calling IFigure.addLayoutListener(LayoutListener). Listeners will be made aware of various steps of the layout mechanism, and even have the opportunity to prevent normal layout from occurring.

Since:
3.1

Nested Class Summary
static class LayoutListener.Stub
          A stub implementation which implements all of the declared methods.
 
Method Summary
 void invalidate ( IFigure container)
          Called when a container has been invalidated.
 boolean layout ( IFigure container)
          Called prior to layout occurring.
 void postLayout ( IFigure container)
          Called after layout has occurred.
 void remove ( IFigure child)
          Called when a child is about to be removed from its parent.
 void setConstraint ( IFigure child, java.lang.Object constraint)
          Called when a child's constraint is initialized or updated.
 

Method Detail

invalidate

public void invalidate(
IFigure container)
Called when a container has been invalidated.

Parameters:
container - the invalidated Figure
Since:
3.1

layout

public boolean layout(
IFigure container)
Called prior to layout occurring. A listener may intercept a layout by returning true. If the layout is intercepted, the container's LayoutManager will not receive a layout call.

Parameters:
container - the figure incurring a layout
Returns:
true if the layout has been intercepted by the listener
Since:
3.1

postLayout

public void postLayout(
IFigure container)
Called after layout has occurred.

Parameters:
container - the figure incurring a layout
Since:
3.1

remove

public void remove(
IFigure child)
Called when a child is about to be removed from its parent.

Parameters:
child - the child being removed
Since:
3.1

setConstraint

public void setConstraint(
IFigure child,
                          java.lang.Object constraint)
Called when a child's constraint is initialized or updated.

Parameters:
child - the child being updated
constraint - the child's new constraint
Since:
3.1

Eclipse Draw2d
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire