com.supermap.data
Class Resources
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.Resources
-
public class Resources extends InternalHandleDisposable
The Resources class.This class is used for managing the resource in the workspace, including the SymbolMarkerLibrary object, the SymbolLineLibrary object, and the SymbolFillLibrary object.
-
-
Constructor Summary
Constructors Constructor and Description Resources()Constructs a new Resources object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddispose()Release the resource occupy by this object.booleanfromXML(java.lang.String strXML, java.lang.String strWorkspaceName)Converts data from xml to ResourcesSymbolFillLibrarygetFillLibrary()Returns the SymbolFillLibraryobject in the Resources object.SymbolLineLibrarygetLineLibrary()Returns the SymbolLineLibrary object in the Resources object.SymbolMarkerLibrarygetMarkerLibrary()Returns the SymbolMarkerLibrary object in the Resources object.WorkspacegetWorkspace()Returns the Workspace object which is linked to the Resources object.java.lang.StringtoXML(java.lang.String strWorkspaceName)Converts data to xml
-
-
-
Method Detail
-
getLineLibrary
public SymbolLineLibrary getLineLibrary()
Returns the SymbolLineLibrary object in the Resources object.- Returns:
- the SymbolFillLibraryobject in the Resources object.
- Default:
- The default value is an empty
SymbolLineLibraryobject.
-
getMarkerLibrary
public SymbolMarkerLibrary getMarkerLibrary()
Returns the SymbolMarkerLibrary object in the Resources object.- Returns:
- the SymbolMarkerLibrary object in the Resources object.
- Default:
- The default value is an empty
SymbolMarkerLibraryobject.
-
getFillLibrary
public SymbolFillLibrary getFillLibrary()
Returns the SymbolFillLibraryobject in the Resources object.- Returns:
- the SymbolFillLibrary object in the Resources object.
- Default:
- The default value is an empty
SymbolFillLibraryobject.
-
getWorkspace
public Workspace getWorkspace()
Returns the Workspace object which is linked to the Resources object.- Returns:
- the Workspace object which is linked to the Resources object.
- Default:
- The default value is null.
-
dispose
public void dispose()
Release the resource occupy by this object.
-
fromXML
public boolean fromXML(java.lang.String strXML, java.lang.String strWorkspaceName)Converts data from xml to Resources- Parameters:
strXML- xmlstrWorkspaceName- The name of the new workspace- Returns:
- whether the conversion is successful.
-
toXML
public java.lang.String toXML(java.lang.String strWorkspaceName)
Converts data to xml- Parameters:
strWorkspaceName- The name of the new workspace- Returns:
- whether the conversion is successful.
-
-