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
Class LayeredPane

java.lang.Object
  extended by

org.eclipse.draw2d.Figure
      extended by

org.eclipse.draw2d.Layer
          extended by
org.eclipse.draw2d.LayeredPane
All Implemented Interfaces:
IFigure
Direct Known Subclasses:
FreeformLayeredPane, ScalableLayeredPane

public class LayeredPane
extends Layer

A figure capable of holding any number of layers. Only layers can be added to this figure. Layers are added to this figure with thier respective keys, which are used to identify them.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.draw2d. Figure
Figure.FigureIterator, Figure.IdentitySearch
 
Nested classes inherited from class org.eclipse.draw2d. IFigure
IFigure.NoInsets
 
Field Summary
 
Fields inherited from class org.eclipse.draw2d. Figure
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip
 
Fields inherited from interface org.eclipse.draw2d. IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
 
Constructor Summary
LayeredPane ()
          Constructs a new layered pane with no layers in it.
 
Method Summary
 void add ( IFigure figure, java.lang.Object layerKey, int index)
          Adds the given layer figure, identifiable with the given key, at the specified index.
 void addLayerAfter ( Layer layer, java.lang.Object key, java.lang.Object after)
          Adds the given layer, identifiable with the given key, under the after layer provided in the input.
 void addLayerBefore ( Layer layer, java.lang.Object key, java.lang.Object before)
          Adds the given layer, identifiable with the given key, above the before layer provided in the input.
protected   Layer getLayer (int index)
          Returns the layer at the specified index in this pane.
  Layer getLayer (java.lang.Object key)
          Returns the layer identified by the key given in the input.
 void remove ( IFigure figure)
          Removes the given child Figure from this Figure's hierarchy and revalidates this Figure.
 void removeLayer ( IFigure layer)
          Deprecated. call IFigure.remove(IFigure) instead
protected  void removeLayer (int index)
          Removes the layer at the specified index from the list of layers in this layered pane.
 void removeLayer (java.lang.Object key)
          Removes the layer identified by the given key from this layered pane.
 
Methods inherited from class org.eclipse.draw2d. Layer
containsPoint, findFigureAt
 
Methods inherited from class org.eclipse.draw2d. Figure
add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isOpaque, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, layout, paint, paintBorder, paintChildren, paintClientArea, paintFigure, primTranslate, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setConstraint, setCursor, setEnabled, setFlag, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayeredPane

public LayeredPane()
Constructs a new layered pane with no layers in it.

Method Detail

add

public void add(
IFigure figure,
                java.lang.Object layerKey,
                int index)
Adds the given layer figure, identifiable with the given key, at the specified index. While adding the layer, it informs the surrounding layers of the addition.

Specified by:
add in interface IFigure
Overrides:
add in class Figure
Parameters:
figure - the layer
layerKey - the layer's key
index - the index where the layer should be added
Since:
2.0
See Also:
IFigure.add(IFigure, Object, int)

addLayerAfter

public void addLayerAfter(
Layer layer,
                          java.lang.Object key,
                          java.lang.Object after)
Adds the given layer, identifiable with the given key, under the after layer provided in the input.

Parameters:
layer - the layer
key - the layer's key
after - the layer under which the input layer should be added
Since:
2.0

addLayerBefore

public void addLayerBefore(
Layer layer,
                           java.lang.Object key,
                           java.lang.Object before)
Adds the given layer, identifiable with the given key, above the before layer provided in the input.

Parameters:
layer - the layer
key - the layer's key
before - the layer above which the input layer should be added
Since:
2.0

getLayer

public 
Layer getLayer(java.lang.Object key)
Returns the layer identified by the key given in the input.

Parameters:
key - the key to identify the desired layer
Returns:
the desired layer
Since:
2.0

getLayer

protected 
Layer getLayer(int index)
Returns the layer at the specified index in this pane.

Parameters:
index - the index of the desired layer
Returns:
the desired layer
Since:
2.0

remove

public void remove(
IFigure figure)
Description copied from class: Figure
Removes the given child Figure from this Figure's hierarchy and revalidates this Figure. The child Figure's Figure.removeNotify() method is also called.

Specified by:
remove in interface IFigure
Overrides:
remove in class Figure
Parameters:
figure - The Figure to remove
See Also:
IFigure.remove(org.eclipse.draw2d.IFigure)

removeLayer

public void removeLayer(java.lang.Object key)
Removes the layer identified by the given key from this layered pane.

Parameters:
key - the key of the layer to be removed
Since:
2.0

removeLayer

public void removeLayer(
IFigure layer)
Deprecated. call IFigure.remove(IFigure) instead

Removes the given layer from this layered pane.

Parameters:
layer - the layer to be removed
Since:
2.0

removeLayer

protected void removeLayer(int index)
Removes the layer at the specified index from the list of layers in this layered pane. It collapses the layers, occupying the space vacated by the removed layer.

Parameters:
index - the index of the layer to be removed
Since:
2.0

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