All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class hep.analysis.Page

java.lang.Object
   |
   +----hep.analysis.Page

public class Page
extends Object
implements NamedObject
Class Page represents pages onto which drawable objects (such as plots and annotations) can be placed. Pages must each have unique names assigned to them at creation time.


Constructor Index

 o Page(String)
Creates a blank page with the specified name in the default folder.
 o Page(String, PageFolder)
Creates a blank page with the specified name in the specified folder.

Method Index

 o add(Drawable)
Adds a drawable (such as a plot or annotation) to a page
 o dispose()
Deletes the page
 o getName()
 o getPeer()
 o remove(Drawable)
Removes a drawable from the page
 o removeAll()
Clears the page
 o setPeer(NamedObjectPeer)
 o setVisible(boolean)

Constructors

 o Page
 public Page(String name)
Creates a blank page with the specified name in the default folder. The page is attached to the current job and persists until the job is deleted, or the dispose method for the page is called.

Parameters:
name - The name of the page. If a page of this name already exists it is cleared and a reference to the previously existing page is returned.
 o Page
 public Page(String name,
             PageFolder parent)
Creates a blank page with the specified name in the specified folder. The page is attached to the current job and persists until the job is deleted, or the dispose method for the page is called.

Parameters:
name - The name of the page. If a page of this name already exists it is cleared and a reference to the previously existing page is returned.
parent - the PageFolder in which to store this Page

Methods

 o dispose
 public void dispose()
Deletes the page

 o add
 public void add(Drawable d)
Adds a drawable (such as a plot or annotation) to a page

Parameters:
d - The Drawable to be added
 o remove
 public void remove(Drawable d)
Removes a drawable from the page

Parameters:
d - The Drawable to be removed
 o removeAll
 public void removeAll()
Clears the page

 o setVisible
 public void setVisible(boolean visible)
 o getName
 public String getName()
 o setPeer
 public void setPeer(NamedObjectPeer peer)
 o getPeer
 public NamedObjectPeer getPeer()

All Packages  Class Hierarchy  This Package  Previous  Next  Index