|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.schematic.NgRasterImage
public class NgRasterImage
Graphic raster image object.
| Constructor Summary | |
|---|---|
NgRasterImage(Object obj)
Construct a NgRasterImage using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
|---|---|
void |
delete()
Removes the raster image. |
boolean |
equals(Object o)
Compare this object with another |
Object |
getEffect(int effect)
Returns the effect 'effect' set for the raster image (see esriNgRasterImageEffect). |
String |
getName()
Name of the raster image. |
INgView |
getView()
View the raster image is associated with. |
int |
hashCode()
the hashcode for this object |
boolean |
isEffectSet(int effect)
Indicates if the effect 'effect' related to the raster image is set (see esriNgRasterImageEffect). |
void |
move(double x,
double y,
int moveMode)
Moves the raster image to the (x,y) relative or absolute position. |
void |
removeEffect(int effect)
Restores the default effect 'effect' set for the raster image. |
void |
setEffect(int effect,
Object effValue)
Modifies the effect 'effect' set for the raster image (see esriNgRasterImageEffect). |
| 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 NgRasterImage(Object obj)
throws IOException
obj to NgRasterImage. *
NgRasterImage o = (NgRasterImage)obj; // will not work
NgRasterImage o = new NgRasterImage(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
NgRasterImage theNgRasterImage = (NgRasterImage) obj;| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public INgView getView()
throws IOException,
AutomationException
This view is set when the raster image is created using the INgView CreateRasterImage method in the project code or when the predefined ViewRasterImages attribute for the diagram type related to this view has been defined.
getView in interface INgRasterImageIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.createRasterImage(String, String, com.esri.arcgis.schematic.INgPoint, com.esri.arcgis.schematic.INgPoint)
public String getName()
throws IOException,
AutomationException
It is the name given to the raster image when it is created.
getName in interface INgRasterImageIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgView.createRasterImage(String, String, com.esri.arcgis.schematic.INgPoint, com.esri.arcgis.schematic.INgPoint)
public Object getEffect(int effect)
throws IOException,
AutomationException
getEffect in interface INgRasterImageeffect - A com.esri.arcgis.schematic.esriNgRasterImageEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgRasterImage.isEffectSet(int),
INgRasterImage.removeEffect(int),
INgRasterImage.setEffect(int, java.lang.Object)
public void setEffect(int effect,
Object effValue)
throws IOException,
AutomationException
setEffect in interface INgRasterImageeffect - A com.esri.arcgis.schematic.esriNgRasterImageEffect constant (in)effValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgRasterImage.isEffectSet(int),
INgRasterImage.getEffect(int),
INgRasterImage.removeEffect(int)
public void removeEffect(int effect)
throws IOException,
AutomationException
Note that when removing an effect that is always set, the raster image default effect value is automatically restored; and removing an effect that is not set by default, really removes the raster image effect.
removeEffect in interface INgRasterImageeffect - A com.esri.arcgis.schematic.esriNgRasterImageEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgRasterImage.isEffectSet(int),
INgRasterImage.getEffect(int),
INgRasterImage.setEffect(int, java.lang.Object)
public void delete()
throws IOException,
AutomationException
delete in interface INgRasterImageIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgRasterImage.move(double, double, int),
INgView.createRasterImage(String, String, com.esri.arcgis.schematic.INgPoint, com.esri.arcgis.schematic.INgPoint)
public boolean isEffectSet(int effect)
throws IOException,
AutomationException
By default, Schematics automatically sets default values for some raster image effects (see the List of the INgRasterImage effect default values, below). For all these effects, the IsEffectSet method returns True.
For the others effects (those that are not automatically set by default), the IsEffectSet method returns True only if the effect has been set by calling the SetEffect method in the project.
List of the INgRasterImage effect default values
esriNgRasterImageVisibility: esriNgVisible
esriNgRasterImagePriority: 0
esriNgRasterImageHeight: the image's height
esriNgRasterImageWidth: the image's width
For more details, see Raster Image Effects Definitions
isEffectSet in interface INgRasterImageeffect - A com.esri.arcgis.schematic.esriNgRasterImageEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgRasterImage.getEffect(int),
INgRasterImage.removeEffect(int),
INgRasterImage.setEffect(int, java.lang.Object)
public void move(double x,
double y,
int moveMode)
throws IOException,
AutomationException
The values taken by the moveMode parameter are detailed in the esriNgMoveMode list.
The default value for moveMode is esriNgAbsoluteMove, which means that, by default, the background raster image is moved to the (X,Y) absolute position.
move in interface INgRasterImagex - The x (in)y - The y (in)moveMode - A com.esri.arcgis.schematic.esriNgMoveMode constant (in, optional, pass 2085 if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgRasterImage.delete(),
INgView.createRasterImage(String, String, com.esri.arcgis.schematic.INgPoint, com.esri.arcgis.schematic.INgPoint)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||