|
||||||||||
| 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
|
| 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 |
getGroupByObjectId(int objectId)
|
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. |
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 |
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 |
removeLayer(java.lang.String layerNameOrId)
Removes the layer with the specified name or ID. |
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)
public AimsFolder getFolderByName(java.lang.String name)
public AimsFolder getFolderByObjectId(int objectId)
public AimsLayerGroup getGroupByObjectId(int objectId)
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 java.util.Vector 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 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||