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 void
dispose()
Release the resource occupy by this object.boolean
fromXML(java.lang.String strXML, java.lang.String strWorkspaceName)
Converts data from xml to ResourcesSymbolFillLibrary
getFillLibrary()
Returns the SymbolFillLibraryobject in the Resources object.SymbolLineLibrary
getLineLibrary()
Returns the SymbolLineLibrary object in the Resources object.SymbolMarkerLibrary
getMarkerLibrary()
Returns the SymbolMarkerLibrary object in the Resources object.Workspace
getWorkspace()
Returns the Workspace object which is linked to the Resources object.java.lang.String
toXML(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
SymbolLineLibrary
object.
-
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
SymbolMarkerLibrary
object.
-
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
SymbolFillLibrary
object.
-
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.
-
-