public interface Perspective
GUIApplication
. Clients will typically extend
AbstractPerspective
.Modifier and Type | Method and Description |
---|---|
boolean |
acceptsInstances()
Returns true if this perspective can do something meaningful with a set of
instances
|
Defaults |
getDefaultSettings()
Get the default settings for this perspective (or null if there are none)
|
GUIApplication |
getMainApplication()
Get the main application that this perspective belongs to
|
java.util.List<javax.swing.JMenu> |
getMenus()
Get an ordered list of menus to appear in the main menu bar.
|
javax.swing.Icon |
getPerspectiveIcon()
Get the icon for this perspective
|
java.lang.String |
getPerspectiveID()
Get the ID of this perspective
|
java.lang.String |
getPerspectiveTipText()
Get the tool tip text for this perspective
|
java.lang.String |
getPerspectiveTitle()
Get the title of this perspective
|
void |
instantiationComplete()
Gets called when startup of the application has completed.
|
boolean |
okToBeActive()
Returns true if this perspective is OK with being an active perspective -
i.e.
|
boolean |
requiresLog()
Whether this perspective requires a graphical log to write to
|
void |
setActive(boolean active)
Set active status of this perspective.
|
void |
setInstances(Instances instances)
Set instances (if this perspective can use them)
|
void |
setLoaded(boolean loaded)
Set whether this perspective is "loaded" - i.e.
|
void |
setLog(Logger log)
Set a log to use (if required by the perspective)
|
void |
setMainApplication(GUIApplication main)
Set the main application.
|
void |
settingsChanged()
Called when the user alters settings.
|
void instantiationComplete()
boolean okToBeActive()
void setActive(boolean active)
active
- true if this perspective is the active onevoid setLoaded(boolean loaded)
loaded
- true if the perspective is available in the perspective
toolbar of the KnowledgeFlowvoid setMainApplication(GUIApplication main)
main
- the main applicationGUIApplication getMainApplication()
java.lang.String getPerspectiveID()
java.lang.String getPerspectiveTitle()
javax.swing.Icon getPerspectiveIcon()
java.lang.String getPerspectiveTipText()
java.util.List<javax.swing.JMenu> getMenus()
Defaults getDefaultSettings()
void settingsChanged()
boolean acceptsInstances()
void setInstances(Instances instances)
instances
- the instancesboolean requiresLog()
void setLog(Logger log)
log
- the graphical log to use