|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.ows.Folder
Folders are used to organize layers in the IMF. A folder can contain layers, be set to be opened or closed, and has a name. The Folder object is one of a group of folders that can be added to an Folders object.
| Field Summary | |
protected static int |
NEXT_FOLDER_ID
|
| Constructor Summary | |
Folder()
Creates new Folder |
|
Folder(java.lang.String folderName)
Creates new Folder with a specified name |
|
Folder(java.lang.String folderName,
boolean isOpen)
Creates new Folder with a name and initial state |
|
| Method Summary | |
void |
addFolder(Folder folder)
Adds a folder to the folder. |
void |
addGroup(LayerGroup group)
Adds a layer group to the folder. |
void |
addLayer(java.lang.Object layer)
Adds a layer to the folder. |
boolean |
canSetVisibilityOff()
Returns an indicator of whether the user can set the folder's visibility to off. |
boolean |
canSetVisibilityOn()
Returns an indicator of whether the user can set the folder's visibility to on. |
boolean |
controlsSubfolderVisibility()
Returns an indicator of whether the subfolder's visibility is also changed when the user can set the folder's visibility. |
Folder |
getFolderByName(java.lang.String name)
Gets the folder with the specified name that is contained in this folder or any of it's subfolders. |
Folder |
getFolderByObjectId(int objectId)
Gets the folder with the specified object id that is contained in this folder or any of it's subfolders. |
Folders |
getFolders()
Gets the folders that are subfolders of this folder |
LayerGroup |
getLayerGroupByObjectId(int objectId)
Gets the layer group with the specified object id that is contained in this folder or any of it's subfolders. |
Layers |
getLayers()
Returns the layers contained in the folder in an Layers object. |
int |
getLevel()
Gets the nesting level of this folder. |
java.lang.String |
getMetadataUrl()
Gets the URL for metadata associated with this folder. |
java.lang.String |
getName()
Returns a String containing the folder name. |
int |
getObjectId()
Returns the IMF internal id for this folder. |
java.util.ArrayList |
getObjects()
Returns the layers and groups contained in the folder in a ArrayList object. |
boolean |
hasLayerListLegends(double scale)
Returns an indicator of whether this folder or any subfolders have layer list legends for the specified scale. |
boolean |
isClosed()
Returns the current open/closed state of the folder. |
boolean |
isOpen()
Returns the current open/closed state of the folder. |
boolean |
isRadio()
Returns whether the folder is a radio folder where only one layer or group can be turned on at a time. |
void |
removeLayerByName(java.lang.String name)
Removes layers with the specified name from this folder. |
void |
removeLayerByTitle(java.lang.String title)
Removes layers with the specified title from this folder. |
void |
setClosed()
Sets the open/closed state of the folder to open. |
void |
setIsRadio(boolean isRadio)
Sets whether the folder is a radio folder. |
void |
setLevel(int level)
Sets the nesting level of the folder. |
void |
setMetadataUrl(java.lang.String href)
Sets the URL for metadata associated with this folder. |
void |
setOpen()
Sets the open/closed state of the folder to open. |
void |
setOpen(boolean isOpen)
Sets the open/closed state of the folder. |
void |
setVisible(boolean isVisible)
Sets the visibility of all the layers or layer groups in the folder, respecting the canSetVisibility and controlSubfolderVisibility settings of this folder and subfolders. |
void |
setXmlAttribute(java.lang.String tag,
java.lang.String name,
java.lang.String value,
java.lang.String frameworkPath,
java.lang.String mapConfigPath)
Sets one of the attributes of this object using a string value. |
void |
toggle()
Toggles the open/closed state of the folder. |
java.lang.String |
toString()
Returns a text representation of of this class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static int NEXT_FOLDER_ID
| Constructor Detail |
public Folder()
public Folder(java.lang.String folderName)
folderName - The name of the folder
public Folder(java.lang.String folderName,
boolean isOpen)
folderName - The name of the folderisOpen - True if the folder should be open, otherwise false| Method Detail |
public java.lang.String getMetadataUrl()
public void setMetadataUrl(java.lang.String href)
href - The URL of the metadata, or null.public boolean canSetVisibilityOn()
public boolean canSetVisibilityOff()
public boolean controlsSubfolderVisibility()
public void setVisible(boolean isVisible)
isVisible - True if the content should be turned on, otherwise false.public Folder getFolderByName(java.lang.String name)
name - The name of the folder to search for.
public Folder getFolderByObjectId(int objectId)
objectId - The object id of the folder to search for.
public LayerGroup getLayerGroupByObjectId(int objectId)
objectId - The object id of the layer group to search for.
public int getObjectId()
public void setLevel(int level)
level - The depth of the folder in nested folders.public int getLevel()
public void addLayer(java.lang.Object layer)
layer - A Layer.public void addFolder(Folder folder)
folder - A folder to add to the folder.public void addGroup(LayerGroup group)
group - A group to add to the folder.public Folders getFolders()
public Layers getLayers()
public boolean hasLayerListLegends(double scale)
scale - The scale to check for.
public java.util.ArrayList getObjects()
public java.lang.String getName()
public boolean isOpen()
public boolean isRadio()
public boolean isClosed()
public void setOpen(boolean isOpen)
isOpen - True to open the folder, false to close.public void setOpen()
public void setIsRadio(boolean isRadio)
isRadio - True if the folder is a radio folder, otherwise false.public void setClosed()
public void toggle()
public java.lang.String toString()
public void setXmlAttribute(java.lang.String tag,
java.lang.String name,
java.lang.String value,
java.lang.String frameworkPath,
java.lang.String mapConfigPath)
frameworkPath - The URL path to the IMF installation.mapConfigPath - The URL path to the map configuration file.tag - The XML element tag containing this attribute (not used).name - The XML attribute name.value - The XML attribute value.public void removeLayerByName(java.lang.String name)
name - The name of a layer.public void removeLayerByTitle(java.lang.String title)
title - The title of a layer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||