mascoptLib.gui.views
Class Layer

java.lang.Object
  |
  +--mascoptLib.gui.views.Layer
Direct Known Subclasses:
GLayer

public class Layer
extends Object

A Layer in a view.

Version:
Thu Mar 21 18:38:16 2002
Author:
bbongiov@bing.inria.fr

Constructor Summary
Layer()
          Constructor of a layer.
 
Method Summary
 void add(mascoptLib.gui.views.GObject comp)
          Add a GObject in this layer.
 void add(mascoptLib.gui.views.GObject comp, int priority)
          Add an object in a layer with a priority.
 void addView(mascoptLib.gui.views.View v)
          Add a new view.
 boolean contains(mascoptLib.gui.views.GObject comp)
          Say if a layer contains this object.
 Component getComponentAt(Point p)
          Give the components situated at a point p.
 void paint(Graphics g, Rectangle view)
          Repaint a rectangle.
 void remove(mascoptLib.gui.views.GObject comp)
          Remove an object of a layer.
 void remove(mascoptLib.gui.views.GObject comp, int priority)
          Remove an object with a priority
 void removeView(mascoptLib.gui.views.View v)
          Remove a view.
 void repaint()
          Repaint this layer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Layer

public Layer()
Constructor of a layer.

Method Detail

add

public void add(mascoptLib.gui.views.GObject comp)
Add a GObject in this layer.

Parameters:
comp - the object to add.

add

public void add(mascoptLib.gui.views.GObject comp,
                int priority)
Add an object in a layer with a priority.

Parameters:
comp - the object to add
priority - the priority

remove

public void remove(mascoptLib.gui.views.GObject comp)
Remove an object of a layer.

Parameters:
comp - the object to remove.

contains

public boolean contains(mascoptLib.gui.views.GObject comp)
Say if a layer contains this object.

Parameters:
comp - the object
Returns:
a boolean

remove

public void remove(mascoptLib.gui.views.GObject comp,
                   int priority)
Remove an object with a priority

Parameters:
comp - the object
priority - the priority

addView

public void addView(mascoptLib.gui.views.View v)
Add a new view.

Parameters:
v - the view.

removeView

public void removeView(mascoptLib.gui.views.View v)
Remove a view.

Parameters:
v - the view

repaint

public void repaint()
Repaint this layer.


getComponentAt

public Component getComponentAt(Point p)
Give the components situated at a point p.

Parameters:
p -
Returns:
the component

paint

public void paint(Graphics g,
                  Rectangle view)
Repaint a rectangle.

Parameters:
g - the graphic
view - the view to repaint.