public class ScaleFormat extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IScaleFormat, IPersistStream, IPersist, IClone, IDocumentVersionSupportGEN, java.io.Externalizable
Description 'A utility object for formatting scale.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
IID, IIDae9eda31_a9f0_4687_b3a5_8c061c92d3eb, xxDummy
IID, IID00000109_0000_0000_c000_000000000046, xxDummy
IID0000010c_0000_0000_c000_000000000046
IID, IID9bff8aeb_e415_11d0_943c_080009eebecb, xxDummy
Constructor and Description |
---|
ScaleFormat()
Constructs a ScaleFormat using ArcGIS Engine.
|
ScaleFormat(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
ScaleFormat theScaleFormat = (ScaleFormat) obj; |
Modifier and Type | Method and Description |
---|---|
void |
assign(IClone src)
Assigns the properties of src to the receiver.
|
double |
calcMapUnitValue(double absoluteScale)
Calculate the number of map units corresponding to the specified page units at the given absolute scale.
|
java.lang.Object |
convertToSupportedObject(int docVersion)
Convert the object to another object that is supported.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone.
|
void |
getClassID(GUID[] pClassID)
getClassID
|
static java.lang.String |
getClsid()
getClsid.
|
java.lang.String |
getCustomFormat()
A string defining the scale format.
|
java.lang.String |
getEquals()
The text used for 'equals', i.e., ' = ' in 1 inch = 5 miles.
|
int |
getFormat()
Format used to display scale, i.e., 1:20000 or 1 inch equals 5 miles.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
int |
getMapUnits()
The map units used to display a scale, i.e., the 'miles' in 1 inch = 5 miles.
|
INumberFormat |
getNumberFormat()
Format used to display scale value, i.e., 20,000.
|
int |
getPageUnits()
The page units used to display a scale, i.e., the 'inch' in 1 inch = 5 miles.
|
double |
getPageUnitValue()
The number preceding the page units in a scale, i.e., the '1' in 1 inch = 5 miles.
|
java.lang.String |
getSeparator()
Character(s) used to separate '1' from the scale in an absolute scale, i.e., the ':' in 1:20000.
|
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax
|
int |
hashCode()
the hashcode for this object
|
boolean |
isAbbreviateUnits()
Abbreviate the units in the scale string.
|
boolean |
isCapitolizeUnits()
Capitolize the units in the scale string.
|
void |
isDirty()
isDirty
|
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties.
|
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object.
|
boolean |
isReverseOrder()
Reverse the standard order [1:1000] becomes [1000:1] and [1 in = 10 mi] becomes [10 mi = 1 in].
|
boolean |
isSupportedAtVersion(int docVersion)
Is this object valid at the given document version.
|
void |
load(IStream pstm)
load
|
void |
loadFromRegistry()
Obtain the scale format to the system default.
|
void |
readExternal(java.io.ObjectInput in) |
void |
release()
Release this COM object reference
|
void |
save(IStream pstm,
int fClearDirty)
save
|
void |
saveToRegistry()
Store the scale format as the system default.
|
java.lang.String |
scaleToString(double scale)
Convert the absolute scale to a string using the current IScaleFormat attributes.
|
void |
setAbbreviateUnits(boolean flag)
Abbreviate the units in the scale string.
|
void |
setCapitolizeUnits(boolean flag)
Capitolize the units in the scale string.
|
void |
setCustomFormat(java.lang.String format)
A string defining the scale format.
|
void |
setEquals(java.lang.String text)
The text used for 'equals', i.e., ' = ' in 1 inch = 5 miles.
|
void |
setFormat(int format)
Format used to display scale, i.e., 1:20000 or 1 inch equals 5 miles.
|
void |
setMapUnits(int units)
The map units used to display a scale, i.e., the 'miles' in 1 inch = 5 miles.
|
void |
setNumberFormat(INumberFormat format)
Format used to display scale value, i.e., 20,000.
|
void |
setPageUnits(int units)
The page units used to display a scale, i.e., the 'inch' in 1 inch = 5 miles.
|
void |
setPageUnitValue(double value)
The number preceding the page units in a scale, i.e., the '1' in 1 inch = 5 miles.
|
void |
setReverseOrder(boolean flag)
Reverse the standard order [1:1000] becomes [1000:1] and [1 in = 10 mi] becomes [10 mi = 1 in].
|
void |
setSeparator(java.lang.String separator)
Character(s) used to separate '1' from the scale in an absolute scale, i.e., the ':' in 1:20000.
|
double |
stringToScale(java.lang.String scaleStr)
Convert the string to an absolute scale using the current IScaleFormat attributes.
|
void |
writeExternal(java.io.ObjectOutput out) |
public static final long serialVersionUID
public ScaleFormat() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problemsjava.net.UnknownHostException
- if there are interop problemspublic ScaleFormat(java.lang.Object obj) throws java.io.IOException
ScaleFormat theScaleFormat = (ScaleFormat) obj;
obj
to ScaleFormat
.obj
- an object returned from ArcGIS Engine or Serverjava.io.IOException
- if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public void setFormat(int format) throws java.io.IOException, AutomationException
setFormat
in interface IScaleFormat
format
- A com.esri.arcgis.system.esriScaleFormat constant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getFormat() throws java.io.IOException, AutomationException
getFormat
in interface IScaleFormat
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setNumberFormat(INumberFormat format) throws java.io.IOException, AutomationException
setNumberFormat
in interface IScaleFormat
format
- A reference to a com.esri.arcgis.system.INumberFormat (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public INumberFormat getNumberFormat() throws java.io.IOException, AutomationException
getNumberFormat
in interface IScaleFormat
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setSeparator(java.lang.String separator) throws java.io.IOException, AutomationException
setSeparator
in interface IScaleFormat
separator
- The separator (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.String getSeparator() throws java.io.IOException, AutomationException
getSeparator
in interface IScaleFormat
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setPageUnitValue(double value) throws java.io.IOException, AutomationException
setPageUnitValue
in interface IScaleFormat
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public double getPageUnitValue() throws java.io.IOException, AutomationException
getPageUnitValue
in interface IScaleFormat
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setPageUnits(int units) throws java.io.IOException, AutomationException
setPageUnits
in interface IScaleFormat
units
- A com.esri.arcgis.system.esriUnits constant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getPageUnits() throws java.io.IOException, AutomationException
getPageUnits
in interface IScaleFormat
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setEquals(java.lang.String text) throws java.io.IOException, AutomationException
setEquals
in interface IScaleFormat
text
- The text (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.String getEquals() throws java.io.IOException, AutomationException
getEquals
in interface IScaleFormat
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setMapUnits(int units) throws java.io.IOException, AutomationException
setMapUnits
in interface IScaleFormat
units
- A com.esri.arcgis.system.esriUnits constant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getMapUnits() throws java.io.IOException, AutomationException
getMapUnits
in interface IScaleFormat
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setCapitolizeUnits(boolean flag) throws java.io.IOException, AutomationException
setCapitolizeUnits
in interface IScaleFormat
flag
- The flag (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isCapitolizeUnits() throws java.io.IOException, AutomationException
isCapitolizeUnits
in interface IScaleFormat
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setAbbreviateUnits(boolean flag) throws java.io.IOException, AutomationException
setAbbreviateUnits
in interface IScaleFormat
flag
- The flag (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isAbbreviateUnits() throws java.io.IOException, AutomationException
isAbbreviateUnits
in interface IScaleFormat
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setReverseOrder(boolean flag) throws java.io.IOException, AutomationException
setReverseOrder
in interface IScaleFormat
flag
- The flag (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isReverseOrder() throws java.io.IOException, AutomationException
isReverseOrder
in interface IScaleFormat
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setCustomFormat(java.lang.String format) throws java.io.IOException, AutomationException
setCustomFormat
in interface IScaleFormat
format
- The format (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.String getCustomFormat() throws java.io.IOException, AutomationException
getCustomFormat
in interface IScaleFormat
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public double calcMapUnitValue(double absoluteScale) throws java.io.IOException, AutomationException
calcMapUnitValue
in interface IScaleFormat
absoluteScale
- The absoluteScale (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.String scaleToString(double scale) throws java.io.IOException, AutomationException
scaleToString
in interface IScaleFormat
scale
- The scale (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public double stringToScale(java.lang.String scaleStr) throws java.io.IOException, AutomationException
stringToScale
in interface IScaleFormat
scaleStr
- The scaleStr (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void saveToRegistry() throws java.io.IOException, AutomationException
saveToRegistry
in interface IScaleFormat
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void loadFromRegistry() throws java.io.IOException, AutomationException
loadFromRegistry
in interface IScaleFormat
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws java.io.IOException, AutomationException
isDirty
in interface IPersistStream
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws java.io.IOException, AutomationException
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws java.io.IOException, AutomationException
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws java.io.IOException, AutomationException
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws java.io.IOException, AutomationException
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IClone esri_clone() throws java.io.IOException, AutomationException
esri_clone
in interface IClone
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws java.io.IOException, AutomationException
assign
in interface IClone
src
- A reference to a com.esri.arcgis.system.IClone (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws java.io.IOException, AutomationException
isEqual
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws java.io.IOException, AutomationException
isIdentical
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isSupportedAtVersion(int docVersion) throws java.io.IOException, AutomationException
Use IsSupportedAtVersion to identify if a particular object should be saved to the ObjectStream. This result is based on the esriArcGISVersion enumeration. In some instances, if the object is not supported at a particular ArcGIS version, the object may support conversion to another similar object; use IDocumentVersionSupportGEN::ConvertToSupportedObject to accomplish this.
isSupportedAtVersion
in interface IDocumentVersionSupportGEN
docVersion
- A com.esri.arcgis.system.esriArcGISVersion constant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.Object convertToSupportedObject(int docVersion) throws java.io.IOException, AutomationException
This method should be used when IDocumentVersionSupportGEN::IsSupportedAtVersion returns FALSE. Calling ConvertToSupportedObject will return an IUnknown pointer to a relevant object supported at the particular ArcGIS version. Not all objects will return a supported object; in these cases a null pointer will be returned.
convertToSupportedObject
in interface IDocumentVersionSupportGEN
docVersion
- A com.esri.arcgis.system.esriArcGISVersion constant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException