public class VisualizationResource extends VizObject implements IVizResource
iComponentListener
Constructor and Description |
---|
VisualizationResource()
The default constructor.
|
VisualizationResource(java.io.File resourceFile)
An alternative constructor that takes the File as an argument.
|
VisualizationResource(java.io.File resourceFile,
java.util.ArrayList<IVizResource> children)
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
This operation provides a deep copy of the VizResource.
|
void |
copy(VisualizationResource otherResource)
This operation performs a deep copy of the attributes of another
VizResource into the current VizResource.
|
boolean |
equals(java.lang.Object otherObject)
This operation is used to check equality between the ICEResource and
another ICEResource.
|
java.util.ArrayList<IVizResource> |
getChildrenResources()
Return any possible children VizResources.
|
java.io.File |
getContents()
This operations returns the contents of the Resource as an instance of
File.
|
java.lang.String[] |
getFileSet()
Accessor for the file set
|
java.lang.String |
getFileSetTitle()
Accessor for the file set's title
|
java.lang.String |
getHost()
Retrieve the name of the host for this file.
|
java.lang.String |
getLastModificationDate()
This operation returns the last modification date of the file.
|
java.net.URI |
getPath()
This operation returns the URI to the Resource.
|
java.util.ArrayList<VizEntry> |
getProperties()
This operation associates a set of Entries with the resource that
describe specific properties.
|
int |
hashCode()
This operation returns the hashcode value of the ICEObject.
|
boolean |
isPictureType()
This operation returns true if the ICEResource is an image and false if
not based upon the isPicture attribute.
|
boolean |
isRemote()
Retrieve the flag signifying if this file is on a remote machine or not.
|
void |
setContents(java.io.File resourceFile)
This operation sets the File which the Resource represents.
|
void |
setFileSet(java.lang.String[] fileSet)
Mutator for the file set
|
void |
setFileSetTitle(java.lang.String title)
Set the fileSetTitle
|
void |
setHost(java.lang.String name)
Set the remote file flag
|
void |
setPath(java.net.URI path)
This operation sets the path to the Resource and is an alternative to
setContents().
|
void |
setPictureType(boolean isPicture)
An operation that sets the isPicture attribute on ICEResource.
|
void |
setProperties(java.util.ArrayList<VizEntry> props)
This operation returns the set of Entries that describe specific
properties of the resource.
|
copy, getDescription, getId, getName, register, setDescription, setId, setName, unregister, update
getClass, notify, notifyAll, toString, wait, wait, wait
copy, getDescription, getId, getName, register, setDescription, setId, setName, unregister, update
public VisualizationResource()
The default constructor. If this constructor is used, a second call to setContents() must be made.
public VisualizationResource(java.io.File resourceFile) throws java.io.IOException
An alternative constructor that takes the File as an argument. The default values of the name, id and description for this class are the filename, 1 and the absolute path, respectively. It is the same as calling the no-arg constructor followed by calling setContents().
resourceFile
- The file that the Resource should be created to represent.
java.io.IOException
public VisualizationResource(java.io.File resourceFile, java.util.ArrayList<IVizResource> children) throws java.io.IOException
resourceFile
- children
- java.io.IOException
public java.lang.String getLastModificationDate()
IResource
This operation returns the last modification date of the file.
getLastModificationDate
in interface IResource
The date.
public java.io.File getContents()
IResource
This operations returns the contents of the Resource as an instance of File.
getContents
in interface IResource
The file.
public java.net.URI getPath()
IResource
This operation returns the URI to the Resource.
public void setPath(java.net.URI path)
IResource
This operation sets the path to the Resource and is an alternative to setContents(). It will reset the File handle if it is different.
public java.util.ArrayList<VizEntry> getProperties()
IResource
This operation associates a set of Entries with the resource that describe specific properties. The list of Entries is returned by reference and is not a deep copy, i.e. - changing one will change it on the resource.
getProperties
in interface IResource
The properties or null if there are no properties.
public void setProperties(java.util.ArrayList<VizEntry> props)
IResource
This operation returns the set of Entries that describe specific properties of the resource. The properties can be set multiple times.
setProperties
in interface IResource
props
- The properties.
public boolean isPictureType()
IResource
This operation returns true if the ICEResource is an image and false if not based upon the isPicture attribute.
isPictureType
in interface IResource
True if this is a picture, false otherwise.
public void setPictureType(boolean isPicture)
IResource
An operation that sets the isPicture attribute on ICEResource.
setPictureType
in interface IResource
isPicture
- Determines if ICEResource is a picture.
public void copy(VisualizationResource otherResource)
otherResource
- The other VizResource from which information should be copied.public java.lang.Object clone()
clone
in interface IVizObject
clone
in class VizObject
public boolean equals(java.lang.Object otherObject)
equals
in interface IVizObject
equals
in class VizObject
otherICEResource
- The other ICEResource to which this ICEResource should be
compared.Identifiable#equals(Object otherObject)
public int hashCode()
hashCode
in interface IVizObject
hashCode
in class VizObject
Identifiable#hashCode()
public void setContents(java.io.File resourceFile) throws java.io.IOException, java.lang.NullPointerException
IResource
This operation sets the File which the Resource represents. The default values of the name, id and description for this class are the filename, 1 and the absolute path, respectively.
setContents
in interface IResource
resourceFile
- The file that the Resource should be created to represent.
java.io.IOException
java.lang.NullPointerException
public java.util.ArrayList<IVizResource> getChildrenResources()
IVizResource
getChildrenResources
in interface IVizResource
public void setFileSet(java.lang.String[] fileSet)
IVizResource
setFileSet
in interface IVizResource
fileSet
- The list of file names to add to the file setpublic void setFileSetTitle(java.lang.String title)
IVizResource
setFileSetTitle
in interface IVizResource
title
- The String to use as the file set IDpublic java.lang.String[] getFileSet()
IVizResource
getFileSet
in interface IVizResource
public java.lang.String getFileSetTitle()
IVizResource
getFileSetTitle
in interface IVizResource
public void setHost(java.lang.String name)
IVizResource
setHost
in interface IVizResource
name
- The new name of the host. If local, use "localhost". Any other
hostname will be treated as remote.public java.lang.String getHost()
IVizResource
getHost
in interface IVizResource
public boolean isRemote()
IVizResource
isRemote
in interface IVizResource