|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.carto.HorizontalLegendItem
public class HorizontalLegendItem
Horizontal legend item.
| Constructor Summary | |
|---|---|
HorizontalLegendItem()
Constructs a HorizontalLegendItem using ArcGIS Engine. |
|
HorizontalLegendItem(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. HorizontalLegendItem theHorizontalLegendItem = (HorizontalLegendItem) obj; |
|
| Method Summary | |
|---|---|
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
changeFlowDirection(boolean rightToLeft)
Indicates if a legend's flow direction changes. |
void |
createGraphics(IDisplay display,
ILegendFormat legendFormat)
Rebuilds the list of graphics. |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
int |
getArrangement()
Legend item arrangement. |
short |
getBrightness()
Layer brightness in percent (-100 - 100). |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
short |
getColumns()
Number of columns in the legend item. |
short |
getContrast()
Layer contrast in percent (-100 - 100). |
IEnumElement |
getGraphics()
List of graphics that represent the legend item. |
int |
getGroupIndex()
Zero-based index of the legend group shown by this item. |
ITextSymbol |
getHeadingSymbol()
Text symbol used to draw the heading. |
double |
getHeight()
Height of the item in points. |
ILayer |
getLayer()
Associated layer. |
ITextSymbol |
getLayerNameSymbol()
Text symbol used to draw the layer name. |
ILegendClassFormat |
getLegendClassFormat()
Default formatting information for the legend classes. |
String |
getName()
Name of the style. |
double |
getReferenceScaleRatio()
The ratio calculated by dividing the map reference scale by the map scale. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
short |
getTransparency()
Layer transparency in percent (0-100). |
double |
getWidth()
Width of the item in points. |
int |
hashCode()
the hashcode for this object |
boolean |
isCanDisplay(ILayer layer)
Indicates if the style is compatible with the specified layer. |
void |
isDirty()
isDirty |
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
boolean |
isKeepTogether()
Indicates if classes must appear in a single column or whether they can be split across multiple columns. |
boolean |
isNewColumn()
Indicates if the item starts a new column in the legend. |
boolean |
isShowDescriptions()
Indicates if descriptions are visible. |
boolean |
isShowHeading()
Indicates if heading is visibile. |
boolean |
isShowLabels()
Indicates if labels are visible. |
boolean |
isShowLayerName()
Indicates if layer name is visibile. |
boolean |
isSupportsBrightnessChange()
Indicates if the layer supports brightness changes. |
boolean |
isSupportsContrastChange()
Indicates if the layer supports contrast changes. |
boolean |
isSupportsInteractive()
Indicates if the layer supports interactive effects changes. |
boolean |
isSupportsTransparency()
Indicates if the layer supports transparency. |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setArrangement(int arrangement)
Legend item arrangement. |
void |
setBrightness(short brightnessValue)
Layer brightness in percent (-100 - 100). |
void |
setColumns(short columns)
Number of columns in the legend item. |
void |
setContrast(short contrastValue)
Layer contrast in percent (-100 - 100). |
void |
setGroupIndex(int index)
Zero-based index of the legend group shown by this item. |
void |
setHeadingSymbol(ITextSymbol symbol)
Text symbol used to draw the heading. |
void |
setKeepTogether(boolean flag)
Indicates if classes must appear in a single column or whether they can be split across multiple columns. |
void |
setLayerByRef(ILayer layer)
Associated layer. |
void |
setLayerNameSymbol(ITextSymbol symbol)
Text symbol used to draw the layer name. |
void |
setLegendClassFormat(ILegendClassFormat format)
Default formatting information for the legend classes. |
void |
setNewColumn(boolean flag)
Indicates if the item starts a new column in the legend. |
void |
setReferenceScaleRatio(double ratio)
The ratio calculated by dividing the map reference scale by the map scale. |
void |
setShowDescriptions(boolean showDescriptions)
Indicates if descriptions are visible. |
void |
setShowHeading(boolean showHeading)
Indicates if heading is visibile. |
void |
setShowLabels(boolean showLabels)
Indicates if labels are visible. |
void |
setShowLayerName(boolean showLayerName)
Indicates if layer name is visibile. |
void |
setSupportsInteractive(boolean supported)
Indicates if the layer supports interactive effects changes. |
void |
setTransparency(short alpha)
Layer transparency in percent (0-100). |
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 HorizontalLegendItem()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public HorizontalLegendItem(Object obj)
throws IOException
HorizontalLegendItem theHorizontalLegendItem = (HorizontalLegendItem) obj;
obj to HorizontalLegendItem.
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 int getArrangement()
throws IOException,
AutomationException
getArrangement in interface IHorizontalLegendItemIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setArrangement(int arrangement)
throws IOException,
AutomationException
setArrangement in interface IHorizontalLegendItemarrangement - A com.esri.arcgis.carto.esriLegendItemArrangement constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getName()
throws IOException,
AutomationException
getName in interface ILegendItemgetName in interface ILegendItem2getName in interface ILegendItem3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanDisplay(ILayer layer)
throws IOException,
AutomationException
isCanDisplay in interface ILegendItemisCanDisplay in interface ILegendItem2isCanDisplay in interface ILegendItem3layer - A reference to a com.esri.arcgis.carto.ILayer (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILayer getLayer()
throws IOException,
AutomationException
getLayer in interface ILegendItemgetLayer in interface ILegendItem2getLayer in interface ILegendItem3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLayerByRef(ILayer layer)
throws IOException,
AutomationException
setLayerByRef in interface ILegendItemsetLayerByRef in interface ILegendItem2setLayerByRef in interface ILegendItem3layer - A reference to a com.esri.arcgis.carto.ILayer (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isNewColumn()
throws IOException,
AutomationException
isNewColumn in interface ILegendItemisNewColumn in interface ILegendItem2isNewColumn in interface ILegendItem3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setNewColumn(boolean flag)
throws IOException,
AutomationException
setNewColumn in interface ILegendItemsetNewColumn in interface ILegendItem2setNewColumn in interface ILegendItem3flag - The flag (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public short getColumns()
throws IOException,
AutomationException
getColumns in interface ILegendItemgetColumns in interface ILegendItem2getColumns in interface ILegendItem3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setColumns(short columns)
throws IOException,
AutomationException
setColumns in interface ILegendItemsetColumns in interface ILegendItem2setColumns in interface ILegendItem3columns - The columns (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isKeepTogether()
throws IOException,
AutomationException
isKeepTogether in interface ILegendItemisKeepTogether in interface ILegendItem2isKeepTogether in interface ILegendItem3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setKeepTogether(boolean flag)
throws IOException,
AutomationException
setKeepTogether in interface ILegendItemsetKeepTogether in interface ILegendItem2setKeepTogether in interface ILegendItem3flag - The flag (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isShowLayerName()
throws IOException,
AutomationException
isShowLayerName in interface ILegendItemisShowLayerName in interface ILegendItem2isShowLayerName in interface ILegendItem3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setShowLayerName(boolean showLayerName)
throws IOException,
AutomationException
setShowLayerName in interface ILegendItemsetShowLayerName in interface ILegendItem2setShowLayerName in interface ILegendItem3showLayerName - The showLayerName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ITextSymbol getLayerNameSymbol()
throws IOException,
AutomationException
getLayerNameSymbol in interface ILegendItemgetLayerNameSymbol in interface ILegendItem2getLayerNameSymbol in interface ILegendItem3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLayerNameSymbol(ITextSymbol symbol)
throws IOException,
AutomationException
setLayerNameSymbol in interface ILegendItemsetLayerNameSymbol in interface ILegendItem2setLayerNameSymbol in interface ILegendItem3symbol - 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 getGroupIndex()
throws IOException,
AutomationException
getGroupIndex in interface ILegendItemgetGroupIndex in interface ILegendItem2getGroupIndex in interface ILegendItem3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setGroupIndex(int index)
throws IOException,
AutomationException
setGroupIndex in interface ILegendItemsetGroupIndex in interface ILegendItem2setGroupIndex in interface ILegendItem3index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isShowHeading()
throws IOException,
AutomationException
isShowHeading in interface ILegendItemisShowHeading in interface ILegendItem2isShowHeading in interface ILegendItem3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setShowHeading(boolean showHeading)
throws IOException,
AutomationException
setShowHeading in interface ILegendItemsetShowHeading in interface ILegendItem2setShowHeading in interface ILegendItem3showHeading - The showHeading (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ITextSymbol getHeadingSymbol()
throws IOException,
AutomationException
getHeadingSymbol in interface ILegendItemgetHeadingSymbol in interface ILegendItem2getHeadingSymbol in interface ILegendItem3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setHeadingSymbol(ITextSymbol symbol)
throws IOException,
AutomationException
setHeadingSymbol in interface ILegendItemsetHeadingSymbol in interface ILegendItem2setHeadingSymbol in interface ILegendItem3symbol - 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 ILegendClassFormat getLegendClassFormat()
throws IOException,
AutomationException
The layer can provide legend class formatting information via ILegendClass.Format. This makes it possible to store legend formatting information with layers in metadata-like fashion. However, layers normally do not provide a LegendClassFormat object. Rather, legend formatting information usually comes from the legend. ILegendItem.LegendClassFormat is used and some patch settings can come from ILegend.LegendFormat .
So, when a legend is created, the code follows this logic:
getLegendClassFormat in interface ILegendItemgetLegendClassFormat in interface ILegendItem2getLegendClassFormat in interface ILegendItem3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLegendClassFormat(ILegendClassFormat format)
throws IOException,
AutomationException
The layer can provide legend class formatting information via ILegendClass.Format. This makes it possible to store legend formatting information with layers in metadata-like fashion. However, layers normally do not provide a LegendClassFormat object. Rather, legend formatting information usually comes from the legend. ILegendItem.LegendClassFormat is used and some patch settings can come from ILegend.LegendFormat .
So, when a legend is created, the code follows this logic:
setLegendClassFormat in interface ILegendItemsetLegendClassFormat in interface ILegendItem2setLegendClassFormat in interface ILegendItem3format - A reference to a com.esri.arcgis.carto.ILegendClassFormat (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isShowLabels()
throws IOException,
AutomationException
isShowLabels in interface ILegendItemisShowLabels in interface ILegendItem2isShowLabels in interface ILegendItem3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setShowLabels(boolean showLabels)
throws IOException,
AutomationException
setShowLabels in interface ILegendItemsetShowLabels in interface ILegendItem2setShowLabels in interface ILegendItem3showLabels - The showLabels (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isShowDescriptions()
throws IOException,
AutomationException
isShowDescriptions in interface ILegendItemisShowDescriptions in interface ILegendItem2isShowDescriptions in interface ILegendItem3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setShowDescriptions(boolean showDescriptions)
throws IOException,
AutomationException
setShowDescriptions in interface ILegendItemsetShowDescriptions in interface ILegendItem2setShowDescriptions in interface ILegendItem3showDescriptions - The showDescriptions (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void createGraphics(IDisplay display,
ILegendFormat legendFormat)
throws IOException,
AutomationException
createGraphics in interface ILegendItemcreateGraphics in interface ILegendItem2createGraphics in interface ILegendItem3display - A reference to a com.esri.arcgis.display.IDisplay (in)legendFormat - A reference to a com.esri.arcgis.carto.ILegendFormat (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getWidth()
throws IOException,
AutomationException
getWidth in interface ILegendItemgetWidth in interface ILegendItem2getWidth in interface ILegendItem3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getHeight()
throws IOException,
AutomationException
getHeight in interface ILegendItemgetHeight in interface ILegendItem2getHeight in interface ILegendItem3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumElement getGraphics()
throws IOException,
AutomationException
Graphics are measured in points. The lower left corner is (0, 0). Put elements in groups to keep the legend from flowing them across columns.
Each element in the graphic list should be flowable, i.e,. can be moved to a new column in the legend if necessary. Implement "keep together" by putting the elements that need to stay together in a group. The top level elements must be put in the list in top to bottom order.
getGraphics in interface ILegendItemgetGraphics in interface ILegendItem2getGraphics in interface ILegendItem3IOException - 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 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 changeFlowDirection(boolean rightToLeft)
throws IOException,
AutomationException
changeFlowDirection in interface ILegendItem2changeFlowDirection in interface ILegendItem3rightToLeft - The rightToLeft (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getReferenceScaleRatio()
throws IOException,
AutomationException
getReferenceScaleRatio in interface ILegendItem3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setReferenceScaleRatio(double ratio)
throws IOException,
AutomationException
setReferenceScaleRatio in interface ILegendItem3ratio - The ratio (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSupportsTransparency()
throws IOException,
AutomationException
isSupportsTransparency in interface ILayerEffectsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSupportsContrastChange()
throws IOException,
AutomationException
isSupportsContrastChange in interface ILayerEffectsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSupportsBrightnessChange()
throws IOException,
AutomationException
isSupportsBrightnessChange in interface ILayerEffectsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSupportsInteractive(boolean supported)
throws IOException,
AutomationException
setSupportsInteractive in interface ILayerEffectssupported - The supported (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSupportsInteractive()
throws IOException,
AutomationException
isSupportsInteractive in interface ILayerEffectsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public short getTransparency()
throws IOException,
AutomationException
When
you set Transparency for a
FeatureLayer, a
TransparencyDisplayFilter is created and applied
to the layer. You can accomplish the same effect by manually
creating a new TransparencyDisplayFilter using IDisplayFilter, and
then assigning it to a layer using
IDisplayFilterManager.
getTransparency in interface ILayerEffectsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTransparency(short alpha)
throws IOException,
AutomationException
setTransparency in interface ILayerEffectsalpha - The alpha (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public short getContrast()
throws IOException,
AutomationException
getContrast in interface ILayerEffectsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setContrast(short contrastValue)
throws IOException,
AutomationException
setContrast in interface ILayerEffectscontrastValue - The contrastValue (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public short getBrightness()
throws IOException,
AutomationException
getBrightness in interface ILayerEffectsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setBrightness(short brightnessValue)
throws IOException,
AutomationException
setBrightness in interface ILayerEffectsbrightnessValue - The brightnessValue (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 | ||||||||