Package org.gephi.project.api
Interface WorkspaceInformation
-
- All Known Implementing Classes:
WorkspaceInformationImpl
public interface WorkspaceInformationDeprecated.Relevant methods have been ported toWorkspacedirectly.Clients can subscribe to changes by using the
addChangeListener(java.beans.PropertyChangeListener)method. It triggers the following events:- EVENT_OPEN: Workspace opened
- EVENT_CLOSE: Workspace closed
- EVENT_RENAME: Workspace renamed
- EVENT_SET_SOURCE: Workspace source set
Hosts various information about a workspace.- Author:
- Mathieu Bastian
- See Also:
Workspace
-
-
Field Summary
Fields Modifier and Type Field Description static StringEVENT_CLOSEDeprecated.static StringEVENT_OPENDeprecated.static StringEVENT_RENAMEDeprecated.static StringEVENT_SET_SOURCEDeprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddChangeListener(PropertyChangeListener listener)Deprecated.Add change listener.StringgetName()Deprecated.Returns the name of the workspace.StringgetSource()Deprecated.Returns the workspace's source or null if missing.booleanhasSource()Deprecated.Returns true if the workspace has a source.booleanisClosed()Deprecated.Returns true if the workspace is closed.booleanisInvalid()Deprecated.Returns true if the workspace is invalid.booleanisOpen()Deprecated.Returns true if the workspace is open.voidremoveChangeListener(PropertyChangeListener listener)Deprecated.Remove change listener.
-
-
-
Field Detail
-
EVENT_OPEN
static final String EVENT_OPEN
Deprecated.- See Also:
- Constant Field Values
-
EVENT_CLOSE
static final String EVENT_CLOSE
Deprecated.- See Also:
- Constant Field Values
-
EVENT_RENAME
static final String EVENT_RENAME
Deprecated.- See Also:
- Constant Field Values
-
EVENT_SET_SOURCE
static final String EVENT_SET_SOURCE
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
isOpen
boolean isOpen()
Deprecated.Returns true if the workspace is open.- Returns:
- true if open, false otherwise
-
isClosed
boolean isClosed()
Deprecated.Returns true if the workspace is closed.- Returns:
- true if closed, false otherwise
-
isInvalid
boolean isInvalid()
Deprecated.Returns true if the workspace is invalid.- Returns:
- true if invalid, false otherwise
-
getName
String getName()
Deprecated.Returns the name of the workspace.The name can't be null and has a default value (e.g. Workspace 1).
- Returns:
- the workspace's name
-
hasSource
boolean hasSource()
Deprecated.Returns true if the workspace has a source.- Returns:
- true if has a source, false otherwise
-
getSource
String getSource()
Deprecated.Returns the workspace's source or null if missing.- Returns:
- workspace's source or null if missing
-
addChangeListener
void addChangeListener(PropertyChangeListener listener)
Deprecated.Add change listener.- Parameters:
listener- change listener
-
removeChangeListener
void removeChangeListener(PropertyChangeListener listener)
Deprecated.Remove change listener.- Parameters:
listener- change listener
-
-