|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.controls.CommandsEnvironment
public class CommandsEnvironment
Defines the commands environment.
The CommandsEnvironment object is a singleton object (only one instance of the CommandsEnvironment object is supported per thread) for managing the graphic properties and layer effect properties used by the controls commands, and can be used by any custom commands you develop.
| Constructor Summary | |
|---|---|
CommandsEnvironment()
Constructs a CommandsEnvironment using ArcGIS Engine. |
|
CommandsEnvironment(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. CommandsEnvironment theCommandsEnvironment = (CommandsEnvironment) obj; |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this object with another |
IFormattedTextSymbol |
getCallout()
The callout symbol used by the CommandsEnvironment singleton. |
static String |
getClsid()
getClsid. |
IFillSymbol |
getFillSymbol()
The fill symbol used by the CommandsEnvironment singleton. |
ILayer |
getFlickerLayer()
The layer the Flicker command uses. |
int |
getFlickerRate()
Rate in milliseconds used to Flicker the screen with the Flicker command. |
ILineSymbol |
getLineSymbol()
The line symbol used by the CommandsEnvironment singleton. |
IMarkerSymbol |
getMarkerSymbol()
The marker symbol used by the CommandsEnvironment singleton. |
ILayer |
getSwipeLayer()
The layer the Swipe command uses. |
ITextSymbol |
getTextSymbol()
The text symbol used by the CommandsEnvironment singleton. |
ILayer |
getTransparencyLayer()
The layer the Transparency command uses. |
int |
hashCode()
the hashcode for this object |
void |
setCallout(IFormattedTextSymbol ppCallout)
The callout symbol used by the CommandsEnvironment singleton. |
void |
setFillSymbol(IFillSymbol ppFillSymbol)
The fill symbol used by the CommandsEnvironment singleton. |
void |
setFlickerLayerByRef(ILayer ppFlickerLayer)
The layer the Flicker command uses. |
void |
setFlickerRate(int lRate)
Rate in milliseconds used to Flicker the screen with the Flicker command. |
void |
setLineSymbol(ILineSymbol ppLineSymbol)
The line symbol used by the CommandsEnvironment singleton. |
void |
setMarkerSymbol(IMarkerSymbol ppMarkerSymbol)
The marker symbol used by the CommandsEnvironment singleton. |
void |
setSwipeLayerByRef(ILayer ppSwiperLayer)
The layer the Swipe command uses. |
void |
setTextSymbol(ITextSymbol ppTextSymbol)
The text symbol used by the CommandsEnvironment singleton. |
void |
setTransparencyLayerByRef(ILayer ppLayer)
The layer the Transparency command uses. |
| 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 CommandsEnvironment()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public CommandsEnvironment(Object obj)
throws IOException
CommandsEnvironment theCommandsEnvironment = (CommandsEnvironment) obj;
obj to CommandsEnvironment.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void setMarkerSymbol(IMarkerSymbol ppMarkerSymbol)
throws IOException,
AutomationException
setMarkerSymbol in interface IGraphicPropertiesppMarkerSymbol - A reference to a com.esri.arcgis.display.IMarkerSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMarkerSymbol getMarkerSymbol()
throws IOException,
AutomationException
The MarkerSymbol used by the ControlsNewMarkerTool, ControlsRouteCommand and the IHookActions methods. By default the IMarkerSymbol::Size is 2, and the IMarkerSymbol::Color is black.
The IMarkerSymbol::Color returns a clone, so to change the default color set an IColor object into IMarkerSymbol::Color.
getMarkerSymbol in interface IGraphicPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLineSymbol(ILineSymbol ppLineSymbol)
throws IOException,
AutomationException
setLineSymbol in interface IGraphicPropertiesppLineSymbol - A reference to a com.esri.arcgis.display.ILineSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILineSymbol getLineSymbol()
throws IOException,
AutomationException
The LineSymbol used by the ControlsNewCurveTool, ControlsNewFreeHandTool, ControlsNewLineTool, ControlsInkGenericDrawTool, ControlsInkHighlightTool, ControlsInkPenTool and the IHookActions methods. By default the Size is 2, and the ILineSymbol::Color is black.
The ILineSymbol::Color returns a clone, so to change the default color set an IColor object into ILineSymbol::Color.
getLineSymbol in interface IGraphicPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFillSymbol(IFillSymbol ppFillSymbol)
throws IOException,
AutomationException
setFillSymbol in interface IGraphicPropertiesppFillSymbol - A reference to a com.esri.arcgis.display.IFillSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IFillSymbol getFillSymbol()
throws IOException,
AutomationException
The FillSymbol used by the ControlsNewCircleTool, ControlsNewEllipseTool, ControlsNewPolygonTool, ControlsNewRectangleTool and the IHookActions methods. By default the IFillSymbol::Color is yellow and the IFillSymbol::Outline is black with a width of 1.
The IFillSymbol::Color and IFillSymbol::Outline return clones, so to change the default color and outline set an IColor object into IFillSymbol::Color and an ILineSymbol into IFillSymbol::Outline.
getFillSymbol in interface IGraphicPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTextSymbol(ITextSymbol ppTextSymbol)
throws IOException,
AutomationException
setTextSymbol in interface IGraphicPropertiesppTextSymbol - A reference to a com.esri.arcgis.display.ITextSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ITextSymbol getTextSymbol()
throws IOException,
AutomationException
The TextSymbol used by the ControlsInkFinishSketchCommand, ControlsRouteCommand and the IHookActions methods. By default the TextSymbol is black, and size 10 using the 'Arial' font.
getTextSymbol in interface IGraphicPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCallout(IFormattedTextSymbol ppCallout)
throws IOException,
AutomationException
setCallout in interface IGraphicPropertiesppCallout - A reference to a com.esri.arcgis.display.IFormattedTextSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IFormattedTextSymbol getCallout()
throws IOException,
AutomationException
The Callout used by the IHookActions methods. By default the Callout is black, and size 10 using the 'Arial' font.
getCallout in interface IGraphicPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSwipeLayerByRef(ILayer ppSwiperLayer)
throws IOException,
AutomationException
setSwipeLayerByRef in interface ILayerEffectPropertiesppSwiperLayer - 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 ILayer getSwipeLayer()
throws IOException,
AutomationException
The layer used by the ControlsMapSwipeTool and ControlsGlobeSwipeTool. The SwipeLayer can be set programmatically or interactively by the end user selecting a layer using ControlsLayerListToolControl or ControlsGlobeLayerListToolControl.
getSwipeLayer in interface ILayerEffectPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFlickerLayerByRef(ILayer ppFlickerLayer)
throws IOException,
AutomationException
setFlickerLayerByRef in interface ILayerEffectPropertiesppFlickerLayer - 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 ILayer getFlickerLayer()
throws IOException,
AutomationException
The layer used by the ControlsMapFlickerCommand and ControlsGlobeFlickerCommand. The FlickerLayer can be set programmatically or interactively by the end user selecting a layer using ControlsLayerListToolControl or ControlsGlobeLayerListToolControl.
getFlickerLayer in interface ILayerEffectPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTransparencyLayerByRef(ILayer ppLayer)
throws IOException,
AutomationException
setTransparencyLayerByRef in interface ILayerEffectPropertiesppLayer - 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 ILayer getTransparencyLayer()
throws IOException,
AutomationException
The layer used by the ControlsLayerTransparencyCommand. The TransparencyLayer can be set programmatically or interactively by the end user selecting a layer using ControlsLayerListToolControl or ControlsGlobeLayerListToolControl.
getTransparencyLayer in interface ILayerEffectPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFlickerRate(int lRate)
throws IOException,
AutomationException
setFlickerRate in interface ILayerEffectPropertieslRate - The lRate (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getFlickerRate()
throws IOException,
AutomationException
The flicker rate in milliseconds used by the ControlsMapFlickerCommand and ControlsGlobeFlickerCommand. The FlickerRate can be set programmatically or interactively by the end user selecting a rate using ControlsFlickerRateToolControl. By default the FlickerRate is 500.
getFlickerRate in interface ILayerEffectPropertiesIOException - 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 | ||||||||