|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.AimsFolder
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 AimsFolder object is one of a group of folders that can be added to an AimsFolders object.
| Field Summary | |
protected static int |
NEXT_FOLDER_ID
|
| Fields inherited from interface com.moximedia.aims.AimsObject |
OBJECT_TYPE_ACETATE_LAYER, OBJECT_TYPE_FEATURE_LAYER, OBJECT_TYPE_FOLDER, OBJECT_TYPE_FOLDERS, OBJECT_TYPE_GROUP, OBJECT_TYPE_GROUPS, OBJECT_TYPE_IMAGE_LAYER, OBJECT_TYPE_WMS_LAYER |
| Constructor Summary | |
AimsFolder()
Creates new Folder |
|
AimsFolder(java.lang.String folderName)
Creates new Folder with a name |
|
AimsFolder(java.lang.String folderName,
boolean isOpen)
Creates new Folder with a name and initial state |
|
| Method Summary | |
void |
addFolder(AimsFolder folder)
Adds a folder to the folder. |
void |
addLayer(int index,
java.lang.Object layer)
Inserts a layer to the folder at the specified index. |
void |
addLayer(java.lang.Object layer)
Adds a layer to the folder. |
boolean |
canSetVisibilityOff()
|
boolean |
canSetVisibilityOn()
|
boolean |
controlsSubfolderVisibility()
|
AimsFolder |
getFolderByName(java.lang.String name)
|
AimsFolder |
getFolderByObjectId(int objectId)
|
AimsFolders |
getFolders()
Gets the folders that are subfolders of this folder |
AimsLayerGroup |
getGroupByName(java.lang.String name)
Searches for a group in this folder or its subfolders with the specified name. |
AimsLayerGroup |
getGroupByObjectId(int objectId)
Searches for a group in this folder or its subfolders with the specified object id. |
AimsLayers |
getLayers()
Returns the layers contained in the folder in an AimsLayers object. |
int |
getLevel()
|
java.lang.String |
getName()
Returns a String containing the folder name. |
int |
getObjectId()
Returns the IMF internal id for this folder. |
java.util.Vector |
getObjects()
Returns the layers and groups contained in the folder in a Vector object. |
int |
getObjectType()
Gets the type of object this is. |
boolean |
hasGroups()
Returns an indicator of whether this folder or any of its sub-folders contain layer groups. |
boolean |
hasLayer(int layerObjectId)
Returns an indicator of whether a layer with the specified object id is in this folder or subfolder. |
boolean |
hasLayerListLegends()
|
boolean |
hasLayers()
Returns an indicator of whether this folder or any of its sub-folders contain layers. |
boolean |
hasLayersOrGroups()
Returns an indicator of whether this folder or any of its sub-folders contain layers or groups. |
boolean |
isClosed()
Returns the current open/closed state of the folder. |
boolean |
isEmpty()
Returns an indicatior of whether there are any sub-folders, layers or groups in this 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 |
removeEmptyFolders()
Removes empty folders from this folder. |
void |
removeEmptyFoldersRecursive()
Removes empty folders from this folder and its sub-folders. |
void |
removeEmptyGroups()
Removes empty groups from this folder |
void |
removeEmptyGroupsRecursive()
Removes empty groups from this folder and its sub-folders. |
void |
removeGroup(int objectId)
Removes the group with the specified object ID from this folder. |
void |
removeGroupRecursive(int objectId)
Removes the group with the specified object ID from this folder or subfolders. |
void |
removeLayer(int objectId)
Removes the layer with the specified object ID from this folder. |
void |
removeLayer(java.lang.String layerNameOrId)
Removes the layer with the specified name or ID. |
void |
removeLayerRecursive(int objectId)
Removes the layer with the specified object ID from this folder or subfolders. |
void |
setAxlAttribute(java.lang.String tag,
java.lang.String name,
java.lang.String value)
Sets one of the attributes of this object using a string value. |
void |
setClosed()
Sets the open/closed state of the folder to open. |
void |
setLevel(int level)
|
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 |
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 AimsFolder()
public AimsFolder(java.lang.String folderName)
folderName - The name of the folder
public AimsFolder(java.lang.String folderName,
boolean isOpen)
folderName - The name of the folderisOpen - True if the folder should be open, otherwise false| Method Detail |
public boolean canSetVisibilityOn()
public boolean canSetVisibilityOff()
public boolean controlsSubfolderVisibility()
public void setVisible(boolean isVisible)
isVisible - The new visibility setting for the folder contents.public AimsFolder getFolderByName(java.lang.String name)
public AimsFolder getFolderByObjectId(int objectId)
public AimsLayerGroup getGroupByObjectId(int objectId)
objectId - The object id of the group.
public AimsLayerGroup getGroupByName(java.lang.String name)
name - The name of the group.
public int getObjectId()
public void setLevel(int level)
public int getLevel()
public void addLayer(int index,
java.lang.Object layer)
index - The position of the layer in the folder.layer - A layer to add to the folder.public void addLayer(java.lang.Object layer)
layer - A layer to add to the folder.public void addFolder(AimsFolder folder)
folder - A folder to add to the folder.public AimsFolders getFolders()
public AimsLayers getLayers()
public void removeLayer(java.lang.String layerNameOrId)
layerNameOrId - The layer name or ID.public void removeGroup(int objectId)
objectId - The group's objectId.public void removeGroupRecursive(int objectId)
objectId - The group's objectId.public void removeLayer(int objectId)
objectId - The layer's objectId.public void removeLayerRecursive(int objectId)
objectId - The layer's objectId.public java.util.Vector getObjects()
public java.lang.String getName()
public boolean isEmpty()
public void removeEmptyGroups()
public void removeEmptyGroupsRecursive()
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 setClosed()
public void toggle()
public java.lang.String toString()
public void setAxlAttribute(java.lang.String tag,
java.lang.String name,
java.lang.String value)
tag - The AXL element tag containing this attribute (not used).name - The AXL attribute name.value - The AXL attribute value.public boolean hasLayerListLegends()
public boolean hasLayer(int layerObjectId)
layerObjectId - The object id of the target layer.
public boolean hasLayers()
public boolean hasGroups()
public boolean hasLayersOrGroups()
public void removeEmptyFolders()
public void removeEmptyFoldersRecursive()
public int getObjectType()
getObjectType in interface AimsObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||