|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.NetworkTrafficRenderer
public class NetworkTrafficRenderer
A renderer used to display network dataset traffic.
Constructor Summary | |
---|---|
NetworkTrafficRenderer()
Constructs a NetworkTrafficRenderer using ArcGIS Engine. |
|
NetworkTrafficRenderer(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. NetworkTrafficRenderer theNetworkTrafficRenderer = (NetworkTrafficRenderer) 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. |
void |
bindSources(INetworkDataset pNetworkDataset)
Caches the subset of network sources that can be drawn by this renderer. |
boolean |
canApply(Object pUnk)
Indicates if the receiver can apply the given object at that particular moment. |
boolean |
canRender(INetworkLayer layer,
IDisplay display)
Indicates if the renderer can draw. |
void |
draw(INetworkLayer layer,
int drawPhase,
IDisplay display,
ITrackCancel trackCancel)
Draws the network dataset. |
boolean |
equals(Object o)
Compare this object with another |
String |
getArrowAttributeName()
The name of the restriction attribute used to display edge traversability. |
ISymbol |
getArrowSymbol(int symbolType)
The symbol for the specified arrow symbol type. |
int |
getArrowType()
The position of the arrow used to display edge traversability. |
IFillSymbol |
getBackgroundSymbol()
Background fill symbol used when graduated marker symbols are draw on polygon features. |
double |
getBreak(int index)
Break value at the specified index. |
int |
getBreakCount()
Number of class breaks (equal to the number of classes). |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
Object |
getCurrent(Object pUnk)
The object currently being used. |
String |
getDescription(int index)
Description at the specified index. |
String |
getField()
Classification field. |
String |
getLabel(int index)
Label at the specified index. |
ILegendGroup |
getLegendGroup(int index)
Legend group at the specified index. |
int |
getLegendGroupCount()
Number of legend groups contained by the object. |
ILegendItem |
getLegendItem()
Optional. |
double |
getMinimumBreak()
Minimum break, i.e. |
String |
getName()
The descriptive name of a renderer. |
String |
getNormField()
Normalization field. |
int |
getRendererType()
The type of the network renderer. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
void |
getSourceNames(IStringArray ppSourceNames)
The cached subset of network sources that can be drawn by this renderer. |
String |
getSourceQueryExpression(String sourceName)
The query expression used to identify the subset of source features whose elements should be rendered. |
ISymbol |
getSymbol(int index)
Symbol at the specified index (used to draw features in the specified class). |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
boolean |
isRenderPhase(int drawPhase)
Indicates if renderer uses the specified draw phase. |
boolean |
isShowArrows(int symbolType)
Indicates if arrows are visible for the specified arrow symbol type. |
boolean |
isSortClassesAscending()
Indicates if classes are displayed in increasing order in legends/TOC. |
boolean |
isSourceVisible(String sourceName)
Indicates if elements of the specified source should be rendered. |
boolean |
isSymbolsAreGraduated()
Indicates if symbols are graduated. |
boolean |
isTrafficElementsOnly()
Indicates if only traffic features should be included in the subset of source features whose elements should be rendered. |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setArrowAttributeName(String name)
The name of the restriction attribute used to display edge traversability. |
void |
setArrowSymbol(int symbolType,
ISymbol symbol)
The symbol for the specified arrow symbol type. |
void |
setArrowType(int type)
The position of the arrow used to display edge traversability. |
void |
setBackgroundSymbol(IFillSymbol sym)
Background fill symbol used when graduated marker symbols are draw on polygon features. |
void |
setBreak(int index,
double value)
Break value at the specified index. |
void |
setBreakCount(int valueCount)
Number of class breaks (equal to the number of classes). |
void |
setDescription(int index,
String text)
Description at the specified index. |
void |
setField(String field)
Classification field. |
void |
setIsSourceVisible(String sourceName,
boolean visible)
Indicates if elements of the specified source should be rendered. |
void |
setLabel(int index,
String label)
Label at the specified index. |
void |
setMinimumBreak(double value)
Minimum break, i.e. |
void |
setName(String name)
The descriptive name of a renderer. |
void |
setNormField(String field)
Normalization field. |
void |
setRendererType(int type)
The type of the network renderer. |
void |
setShowArrows(int symbolType,
boolean show)
Indicates if arrows are visible for the specified arrow symbol type. |
void |
setSortClassesAscending(boolean ascending)
Indicates if classes are displayed in increasing order in legends/TOC. |
void |
setSourceQueryExpression(String sourceName,
String expression)
The query expression used to identify the subset of source features whose elements should be rendered. |
void |
setSymbol(int index,
ISymbol sym)
Symbol at the specified index (used to draw features in the specified class). |
void |
setSymbolsAreGraduated(boolean symbolsAreGraduated)
Indicates if symbols are graduated. |
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 NetworkTrafficRenderer() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic NetworkTrafficRenderer(Object obj) throws IOException
NetworkTrafficRenderer theNetworkTrafficRenderer = (NetworkTrafficRenderer) obj;
obj
to NetworkTrafficRenderer
.
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 int getBreakCount() throws IOException, AutomationException
BreakCount is the number of class breaks which is equal to the number of classes in which the features are grouped for symbolization.
Increasing this property preserves existing breaks, but decreasing it removes excess break values.
getBreakCount
in interface IClassBreaksRenderer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBreakCount(int valueCount) throws IOException, AutomationException
setBreakCount
in interface IClassBreaksRenderer
valueCount
- The valueCount (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getField() throws IOException, AutomationException
This field must be numeric.
getField
in interface IClassBreaksRenderer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setField(String field) throws IOException, AutomationException
setField
in interface IClassBreaksRenderer
field
- The field (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getNormField() throws IOException, AutomationException
NormField is the field that contains the values that the Field values will be divided by to produce the symbolization.
Normalizing, i.e. dividing, by a field is the most common way to normalize data for a ClassBreaksRenderer. In general, mapping of ratios or densities is preferrable to mapping counts and a NormField can be used to generate these types of values. Normalize by an area field to represent a density, or normalize by another field with the same units as the values in Field to produce a rate. For example, to map a rate set Field to a field that stores the count of hispanic persons, and set NormField to a field that stores total persons.
Setting NormField is the same as setting IDataNormalization::NormalizationField and setting IDataNormalization::NormalizationType to esriNormalizeByField. You can use IDataNormalization to do other types of normalization.
getNormField
in interface IClassBreaksRenderer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setNormField(String field) throws IOException, AutomationException
setNormField
in interface IClassBreaksRenderer
field
- The field (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISymbol getSymbol(int index) throws IOException, AutomationException
getSymbol
in interface IClassBreaksRenderer
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSymbol(int index, ISymbol sym) throws IOException, AutomationException
setSymbol
in interface IClassBreaksRenderer
index
- The index (in)sym
- A reference to a com.esri.arcgis.display.ISymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getLabel(int index) throws IOException, AutomationException
getLabel
in interface IClassBreaksRenderer
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLabel(int index, String label) throws IOException, AutomationException
setLabel
in interface IClassBreaksRenderer
index
- The index (in)label
- The label (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDescription(int index) throws IOException, AutomationException
getDescription
in interface IClassBreaksRenderer
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDescription(int index, String text) throws IOException, AutomationException
setDescription
in interface IClassBreaksRenderer
index
- The index (in)text
- The text (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getBreak(int index) throws IOException, AutomationException
getBreak
in interface IClassBreaksRenderer
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBreak(int index, double value) throws IOException, AutomationException
setBreak
in interface IClassBreaksRenderer
index
- The index (in)value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMinimumBreak() throws IOException, AutomationException
Represents the minimum value symbolized by the renderer. Values less than the MinimumBreak will not be drawn by the renderer, thererfore is is common to set this property to the minimum value in the dataset being symbolized.
If you change the data being symbolized, you may need to reset the MinimumBreak if the minimum value in the data is affected.
MinimumBreak does NOT equal Break(0). Break(0) is the highest value in the first class, while MinimumBreak is functionally the lowest value in the first class.
getMinimumBreak
in interface IClassBreaksRenderer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMinimumBreak(double value) throws IOException, AutomationException
Commonly the minimum value in the dataset. Does NOT equal Break(0).
setMinimumBreak
in interface IClassBreaksRenderer
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isSortClassesAscending() throws IOException, AutomationException
Changing this property reverses the Break array, but keeps the Symbol, Label, and Description arrays intact and in the same order.
isSortClassesAscending
in interface IClassBreaksRenderer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSortClassesAscending(boolean ascending) throws IOException, AutomationException
setSortClassesAscending
in interface IClassBreaksRenderer
ascending
- The ascending (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFillSymbol getBackgroundSymbol() throws IOException, AutomationException
getBackgroundSymbol
in interface IClassBreaksRenderer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBackgroundSymbol(IFillSymbol sym) throws IOException, AutomationException
setBackgroundSymbol
in interface IClassBreaksRenderer
sym
- 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 void draw(INetworkLayer layer, int drawPhase, IDisplay display, ITrackCancel trackCancel) throws IOException, AutomationException
draw
in interface INetworkRenderer
layer
- A reference to a com.esri.arcgis.carto.INetworkLayer (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 boolean canRender(INetworkLayer layer, IDisplay display) throws IOException, AutomationException
canRender
in interface INetworkRenderer
layer
- A reference to a com.esri.arcgis.carto.INetworkLayer (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 String getName() throws IOException, AutomationException
getName
in interface INetworkRenderer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String name) throws IOException, AutomationException
setName
in interface INetworkRenderer
name
- The name (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 INetworkRenderer
drawPhase
- A com.esri.arcgis.system.esriDrawPhase constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getRendererType() throws IOException, AutomationException
getRendererType
in interface INetworkRenderer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRendererType(int type) throws IOException, AutomationException
setRendererType
in interface INetworkRenderer
type
- A com.esri.arcgis.carto.esriNetworkRendererType 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 ILegendInfo
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILegendGroup getLegendGroup(int index) throws IOException, AutomationException
getLegendGroup
in interface ILegendInfo
index
- 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 ILegendInfo
IOException
- 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 ILegendInfo
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSymbolsAreGraduated(boolean symbolsAreGraduated) throws IOException, AutomationException
setSymbolsAreGraduated
in interface ILegendInfo
symbolsAreGraduated
- The symbolsAreGraduated (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 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 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 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 IPropertySupport
pUnk
- 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 IPropertySupport
pUnk
- 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 IPropertySupport
pUnk
- 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 IPropertySupport
newObject
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getArrowAttributeName() throws IOException, AutomationException
getArrowAttributeName
in interface INetworkEdgeRenderer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setArrowAttributeName(String name) throws IOException, AutomationException
setArrowAttributeName
in interface INetworkEdgeRenderer
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setArrowType(int type) throws IOException, AutomationException
setArrowType
in interface INetworkEdgeRenderer
type
- A com.esri.arcgis.carto.esriNetworkArrowType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getArrowType() throws IOException, AutomationException
getArrowType
in interface INetworkEdgeRenderer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setArrowSymbol(int symbolType, ISymbol symbol) throws IOException, AutomationException
setArrowSymbol
in interface INetworkEdgeRenderer
symbolType
- A com.esri.arcgis.carto.esriNetworkArrowSymbolType constant (in)symbol
- A reference to a com.esri.arcgis.display.ISymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISymbol getArrowSymbol(int symbolType) throws IOException, AutomationException
getArrowSymbol
in interface INetworkEdgeRenderer
symbolType
- A com.esri.arcgis.carto.esriNetworkArrowSymbolType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setShowArrows(int symbolType, boolean show) throws IOException, AutomationException
setShowArrows
in interface INetworkEdgeRenderer2
symbolType
- A com.esri.arcgis.carto.esriNetworkArrowSymbolType constant (in)show
- The show (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isShowArrows(int symbolType) throws IOException, AutomationException
isShowArrows
in interface INetworkEdgeRenderer2
symbolType
- A com.esri.arcgis.carto.esriNetworkArrowSymbolType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void bindSources(INetworkDataset pNetworkDataset) throws IOException, AutomationException
bindSources
in interface INetworkSourceRenderer
pNetworkDataset
- A reference to a com.esri.arcgis.geodatabase.INetworkDataset (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSourceNames(IStringArray ppSourceNames) throws IOException, AutomationException
getSourceNames
in interface INetworkSourceRenderer
ppSourceNames
- A reference to a com.esri.arcgis.system.IStringArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isSourceVisible(String sourceName) throws IOException, AutomationException
isSourceVisible
in interface INetworkSourceRenderer
sourceName
- The sourceName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIsSourceVisible(String sourceName, boolean visible) throws IOException, AutomationException
setIsSourceVisible
in interface INetworkSourceRenderer
sourceName
- The sourceName (in)visible
- The visible (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getSourceQueryExpression(String sourceName) throws IOException, AutomationException
getSourceQueryExpression
in interface INetworkSourceRenderer
sourceName
- The sourceName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSourceQueryExpression(String sourceName, String expression) throws IOException, AutomationException
setSourceQueryExpression
in interface INetworkSourceRenderer
sourceName
- The sourceName (in)expression
- The expression (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isTrafficElementsOnly() throws IOException, AutomationException
isTrafficElementsOnly
in interface INetworkSourceRenderer
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 |