|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.RenderingRule
public class RenderingRule
An image service rendering rule class.
RenderingRule object is used to define how an image service should be rendered to generate the requested image. A rendering rule consists of: (1) a raster function; (2) a raster renderer; (3) a name and description of a rendering rule that is defined on the image service. The raster function will be applied first to the image service, and followed by the raster renderer. The result will then be converted to requested format, e.g. jpeg, png, bmp, and etc. If the function and renderer are both missing, the name is assumed to be a rendering rule available on the service. If there is no rendering rule, and the image service still needs to be rendered to generate the requested image, a default renderer will be applied. A proper default renderer is created using the same rule as when a raster dataset of the same properties, e.g. number of band, pixel type, and etc is added to ArcMap.
Constructor Summary | |
---|---|
RenderingRule()
Constructs a RenderingRule using ArcGIS Engine. |
|
RenderingRule(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. RenderingRule theRenderingRule = (RenderingRule) obj; |
Method Summary | |
---|---|
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
IRasterFunctionArguments |
getArguments()
The raster function arguments. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
String |
getDescription()
The rendering rule description. |
IRasterFunction |
getFunction()
The raster function. |
String |
getMinNamespaceSupported()
The minimum namespace the class can serialize to (eg the 90 namespace). |
String |
getName()
The rendering rule name. |
IRasterRenderer |
getRenderer()
The raster renderer. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
String |
getVariableName()
The raster function variable name. |
int |
hashCode()
the hashcode for this object |
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. |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
void |
setArgumentsByRef(IRasterFunctionArguments ppArguments)
The raster function arguments. |
void |
setDescription(String pDescription)
The rendering rule description. |
void |
setFunctionByRef(IRasterFunction ppFunction)
The raster function. |
void |
setName(String pName)
The rendering rule name. |
void |
setRendererByRef(IRasterRenderer ppRenderer)
The raster renderer. |
void |
setVariableName(String pVariableName)
The raster function variable name. |
void |
writeExternal(ObjectOutput out)
|
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 RenderingRule() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic RenderingRule(Object obj) throws IOException
RenderingRule theRenderingRule = (RenderingRule) obj;
obj
to RenderingRule
.
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 getName() throws IOException, AutomationException
getName
in interface IRenderingRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String pName) throws IOException, AutomationException
The rendering rule name. This is used to address a predefined rendering rule on the service when both the raster function and renderer are not specified.
setName
in interface IRenderingRule
pName
- The pName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDescription() throws IOException, AutomationException
getDescription
in interface IRenderingRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDescription(String pDescription) throws IOException, AutomationException
setDescription
in interface IRenderingRule
pDescription
- The pDescription (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRasterFunction getFunction() throws IOException, AutomationException
getFunction
in interface IRenderingRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFunctionByRef(IRasterFunction ppFunction) throws IOException, AutomationException
It takes RasterFuntion object.The RasterFunction together with its arguments (RasterFunctionArguments) will be applied to the target service. The target image service will be assigned to the named argument of the function’s argument list, and the argument list is then bound to the function.
setFunctionByRef
in interface IRenderingRule
ppFunction
- A reference to a com.esri.arcgis.datasourcesraster.IRasterFunction (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRasterFunctionArguments getArguments() throws IOException, AutomationException
getArguments
in interface IRenderingRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setArgumentsByRef(IRasterFunctionArguments ppArguments) throws IOException, AutomationException
The raster function arguments. One of the named arguments will be set using the target service.
setArgumentsByRef
in interface IRenderingRule
ppArguments
- A reference to a com.esri.arcgis.datasourcesraster.IRasterFunctionArguments (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getVariableName() throws IOException, AutomationException
getVariableName
in interface IRenderingRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setVariableName(String pVariableName) throws IOException, AutomationException
The variable name in the list of named function arguments to which the target image service should be assigned.
This could be "Raster" for ExtractBandFunction, "DEM" for HillshadeFunction, etc.
setVariableName
in interface IRenderingRule
pVariableName
- The pVariableName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRasterRenderer getRenderer() throws IOException, AutomationException
getRenderer
in interface IRenderingRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRendererByRef(IRasterRenderer ppRenderer) throws IOException, AutomationException
The raster renderer. The raster renderer will be used to render the target service, after the function is applied, to generate a requested image.
setRendererByRef
in interface IRenderingRule
ppRenderer
- A reference to a com.esri.arcgis.carto.IRasterRenderer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IClone esri_clone() throws IOException, AutomationException
esri_clone
in interface IClone
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws IOException, AutomationException
assign
in interface IClone
src
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws IOException, AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws IOException, AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void serialize(IXMLSerializeData data) throws IOException, AutomationException
serialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deserialize(IXMLSerializeData data) throws IOException, AutomationException
deserialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getMinNamespaceSupported() throws IOException, AutomationException
getMinNamespaceSupported
in interface IXMLVersionSupport
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |