Package org.gephi.project.api
Interface ProjectInformation
-
- All Known Implementing Classes:
ProjectInformationImpl
public interface ProjectInformationDeprecated.Relevant methods have been ported toProjectdirectly.Clients can subscribe to changes by using the
addChangeListener(java.beans.PropertyChangeListener)method. It triggers the following events:- EVENT_OPEN: Project opened
- EVENT_CLOSE: Project closed
- EVENT_RENAME: Project renamed
- EVENT_SET_FILE: Project file set
Hosts various information about a project.- Author:
- Mathieu Bastian
- See Also:
Project
-
-
Field Summary
Fields Modifier and Type Field Description static StringEVENT_CLOSEDeprecated.static StringEVENT_OPENDeprecated.static StringEVENT_RENAMEDeprecated.static StringEVENT_SET_FILEDeprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddChangeListener(PropertyChangeListener listener)Deprecated.Add change listener.FilegetFile()Deprecated.Returns the file associated with this project.StringgetFileName()Deprecated.Returns the filename associated with this project.StringgetName()Deprecated.Returns the name of the project.ProjectgetProject()Deprecated.Returns the project this information class belongs to.booleanhasFile()Deprecated.Returns true if the project is associated with a file.booleanisClosed()Deprecated.Returns true if the project is closed.booleanisInvalid()Deprecated.Returns true if the project is invalid.booleanisOpen()Deprecated.Returns true if the project 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_FILE
static final String EVENT_SET_FILE
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
isOpen
boolean isOpen()
Deprecated.Returns true if the project is open.- Returns:
- true if open, false otherwise
-
isClosed
boolean isClosed()
Deprecated.Returns true if the project is closed.- Returns:
- true if closed, false otherwise
-
isInvalid
boolean isInvalid()
Deprecated.Returns true if the project is invalid.- Returns:
- true if invalid, false otherwise
-
getName
String getName()
Deprecated.Returns the name of the project.The name can't be null and has a default value (e.g. Project 1).
- Returns:
- the project's name
-
hasFile
boolean hasFile()
Deprecated.Returns true if the project is associated with a file.A project is associated with a file if it has been saved/loaded to/from a file.
- Returns:
- true if associated with a file, false otherwise
-
getFileName
String getFileName()
Deprecated.Returns the filename associated with this project.Returns an empty string if the project isn't associated with a file.
- Returns:
- file name
- See Also:
hasFile()
-
getFile
File getFile()
Deprecated.Returns the file associated with this project.Returns null if the project isn't associated with a file.
- Returns:
- file or null if none
- See Also:
hasFile()
-
getProject
Project getProject()
Deprecated.Returns the project this information class belongs to.- Returns:
- project reference
-
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
-
-