public final class Navigator
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Navigator.Type
The UI options
|
| Constructor and Description |
|---|
Navigator(Workspace workspace)
Constructs new navigator with an empty collection of canvases.
|
Navigator(Workspace workspace,
Navigator.Type UIModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExlorer(java.lang.String name)
Adds a new Explorer
|
java.util.List<Explorer> |
getExplorers() |
javax.swing.JComponent |
getJComponent() |
javax.swing.JComponent |
getSwitcher() |
boolean |
hasExplorer(java.lang.String name) |
void |
reformView()
redraws and revalidates the size and preferred size of the viewport
and scroll pane to reflect the current collection of explorers.
|
void |
removeExplorer(java.lang.String name)
Removes the explorer with the specified name.
|
void |
setCanvas(java.util.List<? extends Canvas> canvases,
java.lang.String explorer)
Reassigns the canvases to the explorer with the specified name.
|
void |
setView(java.lang.String name)
Sets the view to the explorer with the specified name.
|
public Navigator(Workspace workspace)
public Navigator(Workspace workspace, Navigator.Type UIModel)
public final void addExlorer(java.lang.String name)
name - - the name of the new explorerpublic final void removeExplorer(java.lang.String name)
name - public java.util.List<Explorer> getExplorers()
public boolean hasExplorer(java.lang.String name)
name - public void reformView()
public void setCanvas(java.util.List<? extends Canvas> canvases, java.lang.String explorer)
canvases - explorer - public void setView(java.lang.String name)
name - public javax.swing.JComponent getJComponent()
public javax.swing.JComponent getSwitcher()