|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IHatchTemplate
Provides access to hatch template properties.
The IHatchTemplate interface provides access to the hatch template properties. The IHatchTemplate can be used to manage a collection of hatch definitions. The IHatchTemplate interface can be applied to a HatchClass or exist as a hatch style. In order to create a HatchClass, you will need to assign a HatchTemplate to it.
Method Summary | |
---|---|
void |
addHatchDefinition(int multipleHatchInterval,
IHatchDefinition hatchDefinition)
Adds a hatch definition to the hatch class. |
void |
convertToGraphics(IFeature feature,
IHatchInputValue interval,
IHatchInputValue fromMeasure,
IHatchInputValue toMeasure,
IHatchInputValue lateralOffset,
int measureUnits,
IDisplay display,
IGraphicsLayer pGraphicsLayer)
Converts hatches to graphics. |
void |
drawFeature(IFeature feature,
IHatchInputValue interval,
IHatchInputValue fromMeasure,
IHatchInputValue toMeasure,
IHatchInputValue lateralOffset,
int measureUnits,
IDisplay display,
ITrackCancel trackCancel)
Draws hatches on along a given feature. |
void |
drawGeometry(IGeometry geometry,
double interval,
Object fromMeasure,
Object toMeasure,
Object lateralOffset,
int measureUnits,
IDisplay display,
ITrackCancel trackCancel)
Draws hatches along a given geometry. |
void |
drawPreview(IGeometry geometry,
double scaleFactor,
int selectedDef,
Object fromMeasure,
Object toMeasure,
Object lateralOffset,
int measureUnits,
IDisplay display,
ITrackCancel trackCancel)
Draws a sample of hatching to a given display. |
double |
getDefaultHatchInterval()
The hatch interval. |
int |
getDisplayUnits()
The units to be used for displaying M values in hatch text. |
IHatchDefinition |
getEndHatchDefinition()
The hatch definition to be used on the ends of a feature. |
double |
getEndHatchDrawingTolerance()
The end hatch drawing tolerance. |
IEnumHatchDefinition |
getEnumHatchDefinitions()
The hatch definition enumeration. |
int |
getHatchDefinitionCount()
The number of hatch definitions. |
String |
getName()
The descriptive name of a hatch class. |
int |
getUIDisplayUnits()
The user interface display units. |
boolean |
isConvertUnits()
Indicates whether to convert units for displaying Ms in hatch text. |
boolean |
isHatchByPart()
Indicates whether to hatch by part vs. |
boolean |
isStartAtIntervalMultiple()
Indicates whether to start at the interval multiple. |
void |
removeAll()
Removes all definitions from the hatch class. |
void |
removeHatchDefinition(int index)
Removes a hatch definition from the hatch class. |
void |
setConvertUnits(boolean convertUnits)
Indicates whether to convert units for displaying Ms in hatch text. |
void |
setDefaultHatchInterval(double pDefaultHatchInterval)
The hatch interval. |
void |
setDisplayUnits(int units)
The units to be used for displaying M values in hatch text. |
void |
setEndHatchDefinitionByRef(IHatchDefinition hatchDefinition)
The hatch definition to be used on the ends of a feature. |
void |
setEndHatchDrawingTolerance(double drawingTolerance)
The end hatch drawing tolerance. |
void |
setHatchByPart(boolean hatchByPart)
Indicates whether to hatch by part vs. |
void |
setName(String name)
The descriptive name of a hatch class. |
void |
setStartAtIntervalMultiple(boolean startAtIntervalMultiple)
Indicates whether to start at the interval multiple. |
void |
setUIDisplayUnits(int units)
The user interface display units. |
Method Detail |
---|
String getName() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setName(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getDefaultHatchInterval() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultHatchInterval(double pDefaultHatchInterval) throws IOException, AutomationException
pDefaultHatchInterval
- The pDefaultHatchInterval (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getHatchDefinitionCount() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addHatchDefinition(int multipleHatchInterval, IHatchDefinition hatchDefinition) throws IOException, AutomationException
multipleHatchInterval
- The multipleHatchInterval (in)hatchDefinition
- A reference to a com.esri.arcgis.location.IHatchDefinition (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumHatchDefinition getEnumHatchDefinitions() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeHatchDefinition(int index) throws IOException, AutomationException
The index of a hatch definition is based on it's hatch interval. It is not a zero-based index.
For example, a hatch definition with an interval of 5 would have an index value of 5.
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeAll() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setEndHatchDefinitionByRef(IHatchDefinition hatchDefinition) throws IOException, AutomationException
hatchDefinition
- A reference to a com.esri.arcgis.location.IHatchDefinition (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IHatchDefinition getEndHatchDefinition() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setEndHatchDrawingTolerance(double drawingTolerance) throws IOException, AutomationException
drawingTolerance
- The drawingTolerance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getEndHatchDrawingTolerance() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setConvertUnits(boolean convertUnits) throws IOException, AutomationException
convertUnits
- The convertUnits (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isConvertUnits() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getDisplayUnits() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDisplayUnits(int units) throws IOException, AutomationException
units
- A com.esri.arcgis.system.esriUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setStartAtIntervalMultiple(boolean startAtIntervalMultiple) throws IOException, AutomationException
startAtIntervalMultiple
- The startAtIntervalMultiple (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isStartAtIntervalMultiple() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUIDisplayUnits(int units) throws IOException, AutomationException
units
- A com.esri.arcgis.system.esriUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getUIDisplayUnits() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setHatchByPart(boolean hatchByPart) throws IOException, AutomationException
hatchByPart
- The hatchByPart (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isHatchByPart() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void drawGeometry(IGeometry geometry, double interval, Object fromMeasure, Object toMeasure, Object lateralOffset, int measureUnits, IDisplay display, ITrackCancel trackCancel) throws IOException, AutomationException
geometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)interval
- The interval (in)fromMeasure
- A Variant (in)toMeasure
- A Variant (in)lateralOffset
- A Variant (in)measureUnits
- A com.esri.arcgis.system.esriUnits 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.void drawFeature(IFeature feature, IHatchInputValue interval, IHatchInputValue fromMeasure, IHatchInputValue toMeasure, IHatchInputValue lateralOffset, int measureUnits, IDisplay display, ITrackCancel trackCancel) throws IOException, AutomationException
feature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)interval
- A reference to a com.esri.arcgis.location.IHatchInputValue (in)fromMeasure
- A reference to a com.esri.arcgis.location.IHatchInputValue (in)toMeasure
- A reference to a com.esri.arcgis.location.IHatchInputValue (in)lateralOffset
- A reference to a com.esri.arcgis.location.IHatchInputValue (in)measureUnits
- A com.esri.arcgis.system.esriUnits 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.void drawPreview(IGeometry geometry, double scaleFactor, int selectedDef, Object fromMeasure, Object toMeasure, Object lateralOffset, int measureUnits, IDisplay display, ITrackCancel trackCancel) throws IOException, AutomationException
geometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)scaleFactor
- The scaleFactor (in)selectedDef
- The selectedDef (in)fromMeasure
- A Variant (in)toMeasure
- A Variant (in)lateralOffset
- A Variant (in)measureUnits
- A com.esri.arcgis.system.esriUnits 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.void convertToGraphics(IFeature feature, IHatchInputValue interval, IHatchInputValue fromMeasure, IHatchInputValue toMeasure, IHatchInputValue lateralOffset, int measureUnits, IDisplay display, IGraphicsLayer pGraphicsLayer) throws IOException, AutomationException
feature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)interval
- A reference to a com.esri.arcgis.location.IHatchInputValue (in)fromMeasure
- A reference to a com.esri.arcgis.location.IHatchInputValue (in)toMeasure
- A reference to a com.esri.arcgis.location.IHatchInputValue (in)lateralOffset
- A reference to a com.esri.arcgis.location.IHatchInputValue (in)measureUnits
- A com.esri.arcgis.system.esriUnits constant (in)display
- A reference to a com.esri.arcgis.display.IDisplay (in)pGraphicsLayer
- A reference to a com.esri.arcgis.carto.IGraphicsLayer (in)
IOException
- 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 |