bibliothek.gui.dock.perspective
Class Perspective
java.lang.Object
bibliothek.gui.dock.perspective.Perspective
public abstract class Perspective
- extends Object
A Perspective
is a helper class that allows clients to create a layout without the need to
create DockStation
s or Dockable
s.
Perspectives cannot be created directly, clients must first set up the DockSituation
that
would load the layout and then call the method DockSituation.createPerspective()
to create
a Perspective
which in return is able to write a file that matches the need of its
owner DockSituation
.
- Author:
- Benjamin Sigg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Perspective
public Perspective()
getID
protected abstract String getID(PerspectiveElement<?> element)
- Gets the identifier of the factory that is responsible for
element
.
- Parameters:
element
- the element to store
- Returns:
- the factory that is responsible for
element
getFactory
protected abstract DockFactory<?,?> getFactory(String id)
- Gets the factory which is responsible to store an element whose id is
id
.
- Parameters:
id
- the identifier of the element to store or read
- Returns:
- the factory, can be
null