|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 problemspublic 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 problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getName() throws IOException, AutomationException
getName
in interface IHatchTemplate
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 IHatchTemplate
name
- 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 IHatchTemplate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultHatchInterval(double pDefaultHatchInterval) throws IOException, AutomationException
setDefaultHatchInterval
in interface IHatchTemplate
pDefaultHatchInterval
- 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 IHatchTemplate
IOException
- 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 IHatchTemplate
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.public IEnumHatchDefinition getEnumHatchDefinitions() throws IOException, AutomationException
getEnumHatchDefinitions
in interface IHatchTemplate
IOException
- 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 IHatchTemplate
index
- 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 IHatchTemplate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setEndHatchDefinitionByRef(IHatchDefinition hatchDefinition) throws IOException, AutomationException
setEndHatchDefinitionByRef
in interface IHatchTemplate
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 IHatchDefinition getEndHatchDefinition() throws IOException, AutomationException
getEndHatchDefinition
in interface IHatchTemplate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setEndHatchDrawingTolerance(double drawingTolerance) throws IOException, AutomationException
setEndHatchDrawingTolerance
in interface IHatchTemplate
drawingTolerance
- 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 IHatchTemplate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setConvertUnits(boolean convertUnits) throws IOException, AutomationException
setConvertUnits
in interface IHatchTemplate
convertUnits
- 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 IHatchTemplate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDisplayUnits() throws IOException, AutomationException
getDisplayUnits
in interface IHatchTemplate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDisplayUnits(int units) throws IOException, AutomationException
setDisplayUnits
in interface IHatchTemplate
units
- 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 IHatchTemplate
startAtIntervalMultiple
- 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 IHatchTemplate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setUIDisplayUnits(int units) throws IOException, AutomationException
setUIDisplayUnits
in interface IHatchTemplate
units
- 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 IHatchTemplate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHatchByPart(boolean hatchByPart) throws IOException, AutomationException
setHatchByPart
in interface IHatchTemplate
hatchByPart
- 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 IHatchTemplate
IOException
- 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 IHatchTemplate
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.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 IHatchTemplate
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.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 IHatchTemplate
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.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 IHatchTemplate
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.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 IClone esri_clone() throws IOException, AutomationException
esri_clone
in interface IClone
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws IOException, AutomationException
assign
in interface IClone
src
- 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 IClone
other
- 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 IClone
other
- 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 ISupportErrorInfo
riid
- 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 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 |