|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.networkanalyst.NAStopRenderer
public class NAStopRenderer
Defines symbology for rendering stops.
The NAStopRenderer is a specialized renderer for drawing Stops. It provides specialized symbology for regular stops, as well as for stops that have errors, are unlocated, or have a time window violation. It also draws the sequence number of the stop within the stop symbol. You can configure a FeatureLayer that is referencing an NAClass representing stops to use this renderer.
| Constructor Summary | |
|---|---|
NAStopRenderer()
Constructs a NAStopRenderer using ArcGIS Engine. |
|
NAStopRenderer(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. NAStopRenderer theNAStopRenderer = (NAStopRenderer) obj; |
|
| Method Summary | |
|---|---|
boolean |
applies(Object pUnk)
Indicates if the receiver can apply the given object at any given time. |
Object |
apply(Object newObject)
Applies the given property to the receiver and returns the old object. |
boolean |
canApply(Object pUnk)
Indicates if the receiver can apply the given object at that particular moment. |
boolean |
canRender(IFeatureClass featClass,
IDisplay display)
Indicates if the specified feature class can be rendered on the given display. |
void |
draw(IFeatureCursor cursor,
int drawPhase,
IDisplay display,
ITrackCancel trackCancel)
Draws features from the specified cursor on the given display. |
boolean |
equals(Object o)
Compare this object with another |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
Object |
getCurrent(Object pUnk)
The object currently being used. |
IMarkerSymbol |
getErrorSymbol()
The symbol used for a stop that has an error. |
ILegendClass |
getLegendClass(int symbolType)
The legend class associated with the stop symbol type. |
ILegendGroup |
getLegendGroup(int index)
Legend group at the specified index. |
int |
getLegendGroupCount()
Number of legend groups contained by the object. |
ILegendItem |
getLegendItem()
Optional. |
Object |
getLevelArray()
Array that contains all levels used by the symbols, (symbols without a level get a level of 0). |
IColor |
getSelectionColor()
Selection color. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
IMarkerSymbol |
getStopSymbol()
The symbol used for a located stop. |
int |
getStopSymbolPosition(int symbolType)
The stop symbol position of the symbol type in the group of all stop renderer symbol types. |
ISymbol |
getSymbolByFeature(IFeature feature)
Symbol used to draw the specified feature. |
ITextSymbol |
getTextSymbol()
The text symbol used for a stop. |
IMarkerSymbol |
getTimeViolationSymbol()
The symbol used for a stop that has a time window violation. |
IMarkerSymbol |
getUnlocatedSymbol()
The symbol used for a stop that could not be found on the network. |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
boolean |
isRenderPhase(int drawPhase)
Indicates if renderer uses the specified draw phase. |
boolean |
isSymbolsAreGraduated()
Indicates if symbols are graduated. |
boolean |
isVisible(int symbolType)
Indicates if the stop symbol type is visible. |
void |
load(IStream pstm)
load |
void |
moveStopSymbol(int symbolType,
int newPosition)
Move the stop symbol type to the new position in the group of all stop renderer symbol types. |
void |
prepareFilter(IFeatureClass fc,
IQueryFilter queryFilter)
Prepares the query filter for the rendering process. |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setCurrentDrawLevel(int rhs1)
The current draw level, (set to -1 to draw all levels). |
void |
setErrorSymbol(IMarkerSymbol symbol)
The symbol used for a stop that has an error. |
void |
setExclusionSetByRef(IFeatureIDSet rhs1)
An object reference to a temporary drawing exclusion set. |
void |
setSelectionColor(IColor color)
Selection color. |
void |
setStopSymbol(IMarkerSymbol symbol)
The symbol used for a located stop. |
void |
setSymbolsAreGraduated(boolean symbolsAreGraduated)
Indicates if symbols are graduated. |
void |
setTextSymbol(ITextSymbol symbol)
The text symbol used for a stop. |
void |
setTimeViolationSymbol(IMarkerSymbol symbol)
The symbol used for a stop that has a time window violation. |
void |
setUnlocatedSymbol(IMarkerSymbol symbol)
The symbol used for a stop that could not be found on the network. |
void |
setVisible(int symbolType,
boolean show)
Indicates if the stop symbol type is visible. |
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 NAStopRenderer()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public NAStopRenderer(Object obj)
throws IOException
NAStopRenderer theNAStopRenderer = (NAStopRenderer) obj;
obj to NAStopRenderer.
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 IMarkerSymbol getStopSymbol()
throws IOException,
AutomationException
The StopSymbol specifies the marker symbol to use for drawing ordinary stops with no error status.
getStopSymbol in interface INAStopRendererIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setStopSymbol(IMarkerSymbol symbol)
throws IOException,
AutomationException
The StopSymbol specifies the marker symbol to use for drawing ordinary stops with no error status.
setStopSymbol in interface INAStopRenderersymbol - 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 getUnlocatedSymbol()
throws IOException,
AutomationException
The UnlocatedSymbol specifies the marker symbol to use for drawing unlocated stops.
getUnlocatedSymbol in interface INAStopRendererIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUnlocatedSymbol(IMarkerSymbol symbol)
throws IOException,
AutomationException
The UnlocatedSymbol specifies the marker symbol to use for drawing unlocated stops.
setUnlocatedSymbol in interface INAStopRenderersymbol - 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 getErrorSymbol()
throws IOException,
AutomationException
The ErrorSymbol specifies the marker symbol to use for drawing stops with one or more errors determined during solve.
getErrorSymbol in interface INAStopRendererIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setErrorSymbol(IMarkerSymbol symbol)
throws IOException,
AutomationException
The ErrorSymbol specifies the marker symbol to use for drawing stops with one or more errors determined during solve.
setErrorSymbol in interface INAStopRenderersymbol - 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 getTimeViolationSymbol()
throws IOException,
AutomationException
The TimeViolationSymbol specifies the marker symbol to use for drawing stops with time window violations.
getTimeViolationSymbol in interface INAStopRendererIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTimeViolationSymbol(IMarkerSymbol symbol)
throws IOException,
AutomationException
The TimeViolationSymbol specifies the marker symbol to use for drawing stops with time window violations.
setTimeViolationSymbol in interface INAStopRenderersymbol - 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 ITextSymbol getTextSymbol()
throws IOException,
AutomationException
The TextSymbol property specifies the text symbol that is drawn on top of the ErrorSymbol, StopSymbol, TimeWindowViolationSymbol, and UnlocatedSymbol. The text used for each stop is the value in the Sequence field.
getTextSymbol in interface INAStopRendererIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTextSymbol(ITextSymbol symbol)
throws IOException,
AutomationException
The TextSymbol property specifies the text symbol that is drawn on top of the ErrorSymbol, StopSymbol, TimeWindowViolationSymbol, and UnlocatedSymbol. The text used for each stop is the value in the Sequence field.
setTextSymbol in interface INAStopRenderersymbol - 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 int getStopSymbolPosition(int symbolType)
throws IOException,
AutomationException
getStopSymbolPosition in interface INAStopRenderer2symbolType - A com.esri.arcgis.networkanalyst.esriNAStopSymbolType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void moveStopSymbol(int symbolType,
int newPosition)
throws IOException,
AutomationException
This method moves the specified stop symbol to another position within the NAStopRenderer.
moveStopSymbol in interface INAStopRenderer2symbolType - A com.esri.arcgis.networkanalyst.esriNAStopSymbolType constant (in)newPosition - The newPosition (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isVisible(int symbolType)
throws IOException,
AutomationException
isVisible in interface INAStopRenderer2symbolType - A com.esri.arcgis.networkanalyst.esriNAStopSymbolType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setVisible(int symbolType,
boolean show)
throws IOException,
AutomationException
setVisible in interface INAStopRenderer2symbolType - A com.esri.arcgis.networkanalyst.esriNAStopSymbolType constant (in)show - The show (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILegendClass getLegendClass(int symbolType)
throws IOException,
AutomationException
getLegendClass in interface INAStopRenderer2symbolType - A com.esri.arcgis.networkanalyst.esriNAStopSymbolType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getLegendGroupCount()
throws IOException,
AutomationException
The number of legend groups is determined by the implementation of the renderer, consequently this property is read only. For example, SimpleRenderer has one group, while a BiUniqueValueRenderer has any number of groups.
getLegendGroupCount in interface ILegendInfoIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILegendGroup getLegendGroup(int index)
throws IOException,
AutomationException
getLegendGroup in interface ILegendInfoindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILegendItem getLegendItem()
throws IOException,
AutomationException
Layer or renderer legend information is further formatted for display in ArcMap legends. A renderer can override this formatting by returning a LegendItem for this property. ESRI renderers typically do not return anything for this property. With this configuration, legend formatting becomes a user or developer choice on the legend object.
getLegendItem in interface ILegendInfoIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSymbolsAreGraduated()
throws IOException,
AutomationException
Indicates whether the symbols used for a layer or renderer's legend vary by size.
For example the proportional symbol renderer returns True for this property.
You can use this property to distinguish between a layer symbolized with graduated color or graduated symbol type layer symbology. Both of these symbolizations use a ClassBreaksRenderer, but only a graduated symbol symbolization will return True for this property.
isSymbolsAreGraduated in interface ILegendInfoIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSymbolsAreGraduated(boolean symbolsAreGraduated)
throws IOException,
AutomationException
setSymbolsAreGraduated in interface ILegendInfosymbolsAreGraduated - The symbolsAreGraduated (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean canRender(IFeatureClass featClass,
IDisplay display)
throws IOException,
AutomationException
If the renderer is not applicable to a feature layer, then it can return False in response to a CanRender method. For example, the dot-density renderer is only applicable to polygon feature layers and returns False in response to other feature layers.
canRender in interface IFeatureRendererfeatClass - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)display - A reference to a com.esri.arcgis.display.IDisplay (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void prepareFilter(IFeatureClass fc,
IQueryFilter queryFilter)
throws IOException,
AutomationException
This method is called prior to the Draw method and gives the renderer a chance to adjust the query filter to incorporate extra constraints. For example, if a particular field is required for the renderer, it would add this field to the filter to ensure it is accessible during the Draw method.
prepareFilter in interface IFeatureRendererfc - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)queryFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void draw(IFeatureCursor cursor,
int drawPhase,
IDisplay display,
ITrackCancel trackCancel)
throws IOException,
AutomationException
This method is typically called by the framework to renderer features to a display. This could be in response to a refresh on the map. This method typically iterates through all the features and renders each feature with an appropriate symbol.
An individual feature is typically drawn by calling the Draw method on the feature's IFeatureDraw with the symbol created by the renderer. However, when writing a custom feature renderer you can draw anything you want using a number of different methods. To learn more see the section on writing a custom feature renderer in Extending ArcObjects.
To allow complex rendering to be canceled halfway through a draw, the renderer typically checks the TrackCancel object after each feature or set of features. If a cancel action has occurred, the renderer will exit.
There are three drawing phases: selection, annotation, and geography, and this method can be called by the framework up to three times. With the exception of the selection phase, this method will only be called for a particular draw phase if the call by the framework to RenderPhase returns true for that phase.
Feature renderers typically only draw features during the geography phase, though in some cases features are drawn in the annotation phase. Take for example a case where proportional symbols are drawn for polygon features. The ProportionalSymbolRenderer draws the background fill symbol during the geography phase and the proportionally sized marker symbol during the annotation phase.
draw in interface IFeatureRenderercursor - A reference to a com.esri.arcgis.geodatabase.IFeatureCursor (in)drawPhase - A com.esri.arcgis.system.esriDrawPhase constant (in)display - A reference to a com.esri.arcgis.display.IDisplay (in)trackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISymbol getSymbolByFeature(IFeature feature)
throws IOException,
AutomationException
getSymbolByFeature in interface IFeatureRendererfeature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isRenderPhase(int drawPhase)
throws IOException,
AutomationException
isRenderPhase in interface IFeatureRendererdrawPhase - A com.esri.arcgis.system.esriDrawPhase constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setExclusionSetByRef(IFeatureIDSet rhs1)
throws IOException,
AutomationException
The list of feature IDs to be excluded from drawing.
Some feature renderers support IDataExclusion which allows you to build a where clause to exclude features.
Exclusion prevents features from drawing. To prevent features from drawing as well as from appearing in tables and in query results, set a layer definition query using IFeatureLayerDefinition.
setExclusionSetByRef in interface IFeatureRendererrhs1 - A reference to a com.esri.arcgis.carto.IFeatureIDSet (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSelectionColor(IColor color)
throws IOException,
AutomationException
setSelectionColor in interface IFeatureSelectionRenderercolor - A reference to a com.esri.arcgis.display.IColor (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IColor getSelectionColor()
throws IOException,
AutomationException
getSelectionColor in interface IFeatureSelectionRendererIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCurrentDrawLevel(int rhs1)
throws IOException,
AutomationException
This property is set by the framework at draw time to specify which symbol level the renderer is to draw. If implementing a custom renderer that implements ILevelRenderer, you can check this property in your implementation of IFeatureRenderer::Draw to know which symbol level to draw.
setCurrentDrawLevel in interface ILevelRendererrhs1 - The rhs1 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getLevelArray()
throws IOException,
AutomationException
This property returns an
array of long integers representing all the the symbol levels of
the symbols used by the renderer.
getLevelArray in interface ILevelRendererIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean applies(Object pUnk)
throws IOException,
AutomationException
Applies indicates whether the specified object can be applied to the current object. For instance, we might want to ask our CircleElement whether a Color object applies to it. If it does, then we can use the Apply method to update our CircleElement with the new Color object.
CanApply differs from Applies in that it is a check for the editability of the object at any given time. Applies indicates whether an object can be applied at all, while CanApply indicates whether an object can be applied at that particular moment.
applies in interface IPropertySupportpUnk - A reference to another Object (IUnknown) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean canApply(Object pUnk)
throws IOException,
AutomationException
CanApply indicates whether the specified object can be applied to the current object. For instance, we might want to ask our CircleElement whether a Color object applies to it. If it does, then we can use the Apply method to update our CircleElement with the new Color object.
CanApply differs from Applies in that it is a check for the editability of the object at any given time. Applies indicates whether an object can be applied at all, while CanApply indicates whether an object can be applied at that particular moment.
canApply in interface IPropertySupportpUnk - A reference to another Object (IUnknown) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getCurrent(Object pUnk)
throws IOException,
AutomationException
getCurrent in interface IPropertySupportpUnk - A reference to another Object (IUnknown) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object apply(Object newObject)
throws IOException,
AutomationException
Apply will apply the specified object to the current object. For instance, I might apply a Color object to my RectangleElement. When I execute Apply, the object I replace (the old object) is returned.
Use the Applies and CanApply methods to determine if an Apply can be used on an object.
apply in interface IPropertySupportnewObject - A reference to another Object (IUnknown) (in)
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 IPersistStreamIOException - 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 IPersistStreampstm - 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 IPersistStreampstm - 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 IPersistStreampcbSize - 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 getClassID(GUID[] pClassID)
throws IOException,
AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID in interface IPersistpClassID - 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 writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||