public interface ProjectInformation
Clients can subscribe to changes by using the
addChangeListener(java.beans.PropertyChangeListener)
method. It
triggers the following events:
Project
Modifier and Type | Field and Description |
---|---|
static String |
EVENT_CLOSE |
static String |
EVENT_OPEN |
static String |
EVENT_RENAME |
static String |
EVENT_SET_FILE |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(PropertyChangeListener listener)
Add change listener.
|
File |
getFile()
Returns the file associated with this project.
|
String |
getFileName()
Returns the filename associated with this project.
|
String |
getName()
Returns the name of the project.
|
Project |
getProject()
Returns the project this information class belongs to.
|
boolean |
hasFile()
Returns true if the project is associated with a file.
|
boolean |
isClosed()
Returns true if the project is closed.
|
boolean |
isInvalid()
Returns true if the project is invalid.
|
boolean |
isOpen()
Returns true if the project is open.
|
void |
removeChangeListener(PropertyChangeListener listener)
Remove change listener.
|
static final String EVENT_OPEN
static final String EVENT_CLOSE
static final String EVENT_RENAME
static final String EVENT_SET_FILE
boolean isOpen()
boolean isClosed()
boolean isInvalid()
String getName()
The name can't be null and has a default value (e.g. Project 1).
boolean hasFile()
A project is associated with a file if it has been saved/loaded to/from a file.
String getFileName()
Returns an empty string if the project isn't associated with a file.
hasFile()
File getFile()
Returns null if the project isn't associated with a file.
hasFile()
Project getProject()
void addChangeListener(PropertyChangeListener listener)
listener
- change listenervoid removeChangeListener(PropertyChangeListener listener)
listener
- change listenerCopyright © 2007–2015 Gephi Consortium. All rights reserved.