|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.location.HatchTemplate
public class HatchTemplate
A hatch template manages a collection of hatch definitions. It can be applied to a hatch class or can exist as a hatch style.
The HatchTemplate manages a collection of hatch definitions. The HatchTemplate 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.
| Constructor Summary | |
|---|---|
HatchTemplate()
Constructs a HatchTemplate using ArcGIS Engine. |
|
HatchTemplate(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. HatchTemplate theHatchTemplate = (HatchTemplate) obj; |
|
| Method Summary | |
|---|---|
void |
addHatchDefinition(int multipleHatchInterval,
IHatchDefinition hatchDefinition)
Adds a hatch definition to the hatch class. |
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
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. |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
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. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
getUIDisplayUnits()
The user interface display units. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isConvertUnits()
Indicates whether to convert units for displaying Ms in hatch text. |
void |
isDirty()
isDirty |
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties. |
boolean |
isHatchByPart()
Indicates whether to hatch by part vs. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
boolean |
isStartAtIntervalMultiple()
Indicates whether to start at the interval multiple. |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
removeAll()
Removes all definitions from the hatch class. |
void |
removeHatchDefinition(int index)
Removes a hatch definition from the hatch class. |
void |
save(IStream pstm,
int fClearDirty)
save |
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. |
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 HatchTemplate()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public HatchTemplate(Object obj)
throws IOException
HatchTemplate theHatchTemplate = (HatchTemplate) obj;
obj to HatchTemplate.
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 String getName()
throws IOException,
AutomationException
getName in interface IHatchTemplateIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setName(String name)
throws IOException,
AutomationException
setName in interface IHatchTemplatename - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getDefaultHatchInterval()
throws IOException,
AutomationException
getDefaultHatchInterval in interface IHatchTemplateIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDefaultHatchInterval(double pDefaultHatchInterval)
throws IOException,
AutomationException
setDefaultHatchInterval in interface IHatchTemplatepDefaultHatchInterval - The pDefaultHatchInterval (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getHatchDefinitionCount()
throws IOException,
AutomationException
getHatchDefinitionCount in interface IHatchTemplateIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addHatchDefinition(int multipleHatchInterval,
IHatchDefinition hatchDefinition)
throws IOException,
AutomationException
addHatchDefinition in interface IHatchTemplatemultipleHatchInterval - 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.
public IEnumHatchDefinition getEnumHatchDefinitions()
throws IOException,
AutomationException
getEnumHatchDefinitions in interface IHatchTemplateIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
removeHatchDefinition in interface IHatchTemplateindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeAll()
throws IOException,
AutomationException
removeAll in interface IHatchTemplateIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setEndHatchDefinitionByRef(IHatchDefinition hatchDefinition)
throws IOException,
AutomationException
setEndHatchDefinitionByRef in interface IHatchTemplatehatchDefinition - A reference to a com.esri.arcgis.location.IHatchDefinition (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IHatchDefinition getEndHatchDefinition()
throws IOException,
AutomationException
getEndHatchDefinition in interface IHatchTemplateIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setEndHatchDrawingTolerance(double drawingTolerance)
throws IOException,
AutomationException
setEndHatchDrawingTolerance in interface IHatchTemplatedrawingTolerance - The drawingTolerance (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getEndHatchDrawingTolerance()
throws IOException,
AutomationException
getEndHatchDrawingTolerance in interface IHatchTemplateIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setConvertUnits(boolean convertUnits)
throws IOException,
AutomationException
setConvertUnits in interface IHatchTemplateconvertUnits - The convertUnits (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isConvertUnits()
throws IOException,
AutomationException
isConvertUnits in interface IHatchTemplateIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDisplayUnits()
throws IOException,
AutomationException
getDisplayUnits in interface IHatchTemplateIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDisplayUnits(int units)
throws IOException,
AutomationException
setDisplayUnits in interface IHatchTemplateunits - A com.esri.arcgis.system.esriUnits constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setStartAtIntervalMultiple(boolean startAtIntervalMultiple)
throws IOException,
AutomationException
setStartAtIntervalMultiple in interface IHatchTemplatestartAtIntervalMultiple - The startAtIntervalMultiple (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isStartAtIntervalMultiple()
throws IOException,
AutomationException
isStartAtIntervalMultiple in interface IHatchTemplateIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUIDisplayUnits(int units)
throws IOException,
AutomationException
setUIDisplayUnits in interface IHatchTemplateunits - A com.esri.arcgis.system.esriUnits constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getUIDisplayUnits()
throws IOException,
AutomationException
getUIDisplayUnits in interface IHatchTemplateIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setHatchByPart(boolean hatchByPart)
throws IOException,
AutomationException
setHatchByPart in interface IHatchTemplatehatchByPart - The hatchByPart (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isHatchByPart()
throws IOException,
AutomationException
isHatchByPart in interface IHatchTemplateIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void drawGeometry(IGeometry geometry,
double interval,
Object fromMeasure,
Object toMeasure,
Object lateralOffset,
int measureUnits,
IDisplay display,
ITrackCancel trackCancel)
throws IOException,
AutomationException
drawGeometry in interface IHatchTemplategeometry - 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.
public void drawFeature(IFeature feature,
IHatchInputValue interval,
IHatchInputValue fromMeasure,
IHatchInputValue toMeasure,
IHatchInputValue lateralOffset,
int measureUnits,
IDisplay display,
ITrackCancel trackCancel)
throws IOException,
AutomationException
drawFeature in interface IHatchTemplatefeature - 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.
public void drawPreview(IGeometry geometry,
double scaleFactor,
int selectedDef,
Object fromMeasure,
Object toMeasure,
Object lateralOffset,
int measureUnits,
IDisplay display,
ITrackCancel trackCancel)
throws IOException,
AutomationException
drawPreview in interface IHatchTemplategeometry - 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.
public void convertToGraphics(IFeature feature,
IHatchInputValue interval,
IHatchInputValue fromMeasure,
IHatchInputValue toMeasure,
IHatchInputValue lateralOffset,
int measureUnits,
IDisplay display,
IGraphicsLayer pGraphicsLayer)
throws IOException,
AutomationException
convertToGraphics in interface IHatchTemplatefeature - 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.
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 IClone esri_clone()
throws IOException,
AutomationException
esri_clone in interface ICloneIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void assign(IClone src)
throws IOException,
AutomationException
assign in interface IClonesrc - A reference to a com.esri.arcgis.system.IClone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isEqual(IClone other)
throws IOException,
AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual in interface ICloneother - A reference to a com.esri.arcgis.system.IClone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isIdentical(IClone other)
throws IOException,
AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical in interface ICloneother - A reference to a com.esri.arcgis.system.IClone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void interfaceSupportsErrorInfo(GUID riid)
throws IOException,
AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
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 | ||||||||