|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.LayerFile
public class LayerFile
The LayerFile coclass is used to read and write layer document files.
When creating a new LayerFile object the ReplaceContents method must be used to set your Layer, as the Layer property is Read-Only. If a new LayerFile is created but no Layer has been set, the IsLayerFile will return False.
Constructor Summary | |
---|---|
LayerFile()
Constructs a LayerFile using ArcGIS Engine. |
|
LayerFile(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. LayerFile theLayerFile = (LayerFile) obj; |
Method Summary | |
---|---|
void |
close()
Close the layer file. |
boolean |
equals(Object o)
Compare this object with another |
void |
esri_new(String sFile)
Creates and opens a new layer File in preparation for the contents to be retrieve or updated. |
static String |
getClsid()
getClsid. |
int |
getDocumentVersion()
The version of the document to save. |
String |
getFilename()
The name of the layer file that the LayerFile coclass is linked to. |
ILayer |
getLayer()
The Layer object. |
IPicture |
getThumbnail()
The thumbnail stored in the layer file. |
int |
hashCode()
the hashcode for this object |
boolean |
isLayerFile(String sFile)
Indicates if the file is a valid layer file. |
boolean |
isPresent(String sFile)
Indicates if the layer file is present. |
boolean |
isReadOnly(String sFile)
Indicates if the layer file is read only. |
void |
open(String sFile)
Open the layer file in preparation for the contents to be retrieved or updated. |
void |
replaceContents(ILayer pLayer)
Replace the contents of the layer file. |
void |
save()
Save the contents of the layer file to the bound file. |
void |
saveAs(String sFile)
Save the contents of the layer file to the specified file name. |
void |
setDocumentVersion(int docVersion)
The version of the document to save. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public LayerFile() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic LayerFile(Object obj) throws IOException
LayerFile theLayerFile = (LayerFile) obj;
obj
to LayerFile
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getFilename() throws IOException, AutomationException
getFilename
in interface ILayerFile
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isLayerFile(String sFile) throws IOException, AutomationException
isLayerFile
in interface ILayerFile
sFile
- The sFile (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isPresent(String sFile) throws IOException, AutomationException
isPresent
in interface ILayerFile
sFile
- The sFile (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isReadOnly(String sFile) throws IOException, AutomationException
isReadOnly
in interface ILayerFile
sFile
- The sFile (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILayer getLayer() throws IOException, AutomationException
getLayer
in interface ILayerFile
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPicture getThumbnail() throws IOException, AutomationException
getThumbnail
in interface ILayerFile
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void esri_new(String sFile) throws IOException, AutomationException
esri_new
in interface ILayerFile
sFile
- The sFile (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void open(String sFile) throws IOException, AutomationException
open
in interface ILayerFile
sFile
- The sFile (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void close() throws IOException, AutomationException
close
in interface ILayerFile
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void replaceContents(ILayer pLayer) throws IOException, AutomationException
replaceContents
in interface ILayerFile
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save() throws IOException, AutomationException
save
in interface ILayerFile
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void saveAs(String sFile) throws IOException, AutomationException
saveAs
in interface ILayerFile
sFile
- The sFile (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDocumentVersion(int docVersion) throws IOException, AutomationException
setDocumentVersion
in interface IDocumentVersion
docVersion
- A com.esri.arcgis.system.esriArcGISVersion constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDocumentVersion() throws IOException, AutomationException
Determines which version an object is persisted. This can be useful when saving an object ObjectStream or MemoryBlobStream and you want the version of that object to be compatible with previous releases of ArcGIS. Not all persistable objects implement IDocumentVersion; you should ensure the object supports this interface before accessing this property.
getDocumentVersion
in interface IDocumentVersion
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |