|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.ags.data.AGSScaleBarFunctionality
public class AGSScaleBarFunctionality
Field Summary | |
---|---|
static int |
TYPE_ALTERNATINGSCALEBAR
|
static int |
TYPE_DOUBLEALTERNATINGSCALEBAR
|
static int |
TYPE_HOLLOWSCALEBAR
|
static int |
TYPE_SCALELINE
|
static int |
TYPE_SINGLEDIVISIONSCALEBAR
|
static int |
TYPE_STEPPEDSCALELINE
|
Fields inherited from interface com.esri.adf.web.data.ScaleBarFunctionality |
---|
FUNCTIONALITY_NAME |
Constructor Summary | |
---|---|
AGSScaleBarFunctionality()
|
Method Summary | |
---|---|
protected com.esri.arcgis.carto.ImageDisplay |
calculateImageDisplay(com.esri.arcgis.server.IServerContext ctx,
com.esri.arcgis.carto.IScaleBar scaleBar)
Calculates the width and height of scale bar; |
void |
destroyFunctionality()
The cleanup chores (such as releasing held resources) for the functionality must be performed in this method. |
byte[] |
exportImage()
Generates an image of the scale bar based on the given description, and returns the image as a byte array. |
String |
getBackgroundColor()
Gets the background color of the AGSScaleBarFunctionality. |
String |
getBarColor()
Gets the bar color of the AGSScaleBarFunctionality. |
double |
getBarHeight()
Gets the bar height of the AGSScaleBarFunctionality. |
double |
getDivision()
Gets the division of the AGSScaleBarFunctionality. |
short |
getDivisions()
Gets the divisions of the AGSScaleBarFunctionality. |
short |
getDivisionsBeforeZero()
Gets the divisions before zero of the AGSScaleBarFunctionality. |
protected com.esri.arcgis.display.IFillSymbol |
getFillSymbol(com.esri.arcgis.display.IColor color)
Gets the fill symbol. |
String |
getFontColor()
Gets the fontColor of the AGSScaleBarFunctionality. |
String |
getFontFamily()
Gets the fontFamily of the AGSScaleBarFunctionality. |
int |
getFontSize()
Gets the fontSize of the AGSScaleBarFunctionality. |
int |
getImageFormat()
Gets the image format of the AGSScaleBarFunctionality. |
Integer |
getImageHeight()
Gets the image height of the AGSScaleBarFunctionality. |
int |
getImageResolution()
Gets the image resolution (DPI) of the AGSScaleBarFunctionality. |
Integer |
getImageWidth()
Gets the image width of the AGSScaleBarFunctionality. |
int |
getLabelFrequency()
Gets the labelFrequency of the AGSScaleBarFunctionality. |
double |
getLabelGap()
Gets the labelGap of the AGSScaleBarFunctionality. |
int |
getLabelPosition()
Gets the labelPosition of the AGSScaleBarFunctionality. |
int |
getLineSize()
Gets the lineSize of the AGSScaleBarFunctionality. |
protected com.esri.arcgis.display.ILineSymbol |
getLineSymbol()
Gets the line symbol. |
protected com.esri.arcgis.carto.IMapDescription |
getMapDescription()
Gets the mapDescription of the AGSScaleBarFunctionality. |
protected com.esri.arcgis.carto.ImageDisplay |
getMapSize()
Gets the mapDescription of the AGSScaleBarFunctionality. |
protected com.esri.arcgis.display.ICartographicLineSymbol |
getMarkLineSymbol()
Gets the mark symbol. |
protected com.esri.arcgis.system.NumericFormat |
getNumberFormat()
Gets the number Format |
String |
getNumberSeparator()
Gets the numberSeparator of the AGSScaleBarFunctionality. |
int |
getResizeHint()
Gets the resizeHint of the AGSScaleBarFunctionality. |
AGSLocalMapResource |
getResource()
Returns the GISResource associated with this functionality. |
String |
getRightToLeftText()
Gets the rightToLeftText of the AGSScaleBarFunctionality. |
int |
getRoundOption()
Gets the roundOption of the AGSScaleBarFunctionality. |
int |
getRoundValue()
Gets the roundValue of the AGSScaleBarFunctionality. |
String |
getShowPlusSign()
Gets the showPlusSign of the AGSScaleBarFunctionality. |
short |
getSubdivisions()
Gets the subdivisions of the AGSScaleBarFunctionality. |
double |
getTextAngle()
Gets the textAngle of the AGSScaleBarFunctionality. |
protected com.esri.arcgis.display.ITextSymbol |
getTextSymbol()
Gets the text symbol. |
int |
getType()
Gets the type of the AGSScaleBarFunctionality. |
String |
getUnitLabel()
Gets the unitLabel of the AGSScaleBarFunctionality. |
double |
getUnitLabelGap()
Gets the unitLabelGap of the AGSScaleBarFunctionality. |
int |
getUnitLabelPosition()
Gets the unitLabelPosition of the AGSScaleBarFunctionality. |
int |
getUnits()
Gets the units of the AGSScaleBarFunctionality. |
String |
getZeroPad()
Gets the zeroPad of the AGSScaleBarFunctionality. |
void |
initFunctionality(GISResource resource)
The initialization chores for the functionality must be performed in this method. |
boolean |
isDisabled()
|
void |
setBackgroundColor(String backgroundColor)
Sets the background color of the AGSScaleBarFunctionality. |
void |
setBarColor(String barColor)
Sets the bar color of the AGSScaleBarFunctionality. |
void |
setBarHeight(double barHeight)
Sets the bar height of the AGSScaleBarFunctionality. |
void |
setDisabled(boolean disabled)
|
void |
setDivision(double division)
Sets the division of the AGSScaleBarFunctionality. |
void |
setDivisions(short divisions)
Sets the divisions of the AGSScaleBarFunctionality. |
void |
setDivisionsBeforeZero(short divisionsBeforeZero)
Sets the divisionsBeforeZero of the AGSScaleBarFunctionality. |
void |
setFontColor(String fontColor)
Sets the fontColor of the AGSScaleBarFunctionality. |
void |
setFontFamily(String fontFamily)
Sets the fontFamily of the AGSScaleBarFunctionality. |
void |
setFontSize(int fontSize)
Sets the fontSize of the AGSScaleBarFunctionality. |
void |
setImageFormat(int imageFormat)
Sets the image format of the AGSScaleBarFunctionality. |
void |
setImageHeight(Integer imageHeight)
Sets the image height of the AGSScaleBarFunctionality. |
void |
setImageResolution(int imageResolution)
Sets the image resolution (DPI) of the AGSScaleBarFunctionality. |
void |
setImageWidth(Integer imageWidth)
Sets the image width of the AGSScaleBarFunctionality. |
void |
setLabelFrequency(int labelFrequency)
Sets the labelFrequency of the AGSScaleBarFunctionality. |
void |
setLabelGap(double labelGap)
Sets the labelGap of the AGSScaleBarFunctionality. |
void |
setLabelPosition(int labelPosition)
Sets the labelPosition of the AGSScaleBarFunctionality. |
void |
setLineSize(int lineSize)
Sets the lineSize of the AGSScaleBarFunctionality. |
void |
setNumberSeparator(String numberSeparator)
Sets the numberSeparator of the AGSScaleBarFunctionality. |
void |
setResizeHint(int resizeHint)
Sets the resizeHint of the AGSScaleBarFunctionality. |
void |
setRightToLeftText(String leftToRightText)
Sets the rightToLeftText of the AGSScaleBarFunctionality. |
void |
setRoundOption(int round)
Sets the roundOption of the AGSScaleBarFunctionality. |
void |
setRoundValue(int precision)
Sets the roundValue of the AGSScaleBarFunctionality. |
void |
setShowPlusSign(String showPlusSign)
Sets the showPlusSign of the AGSScaleBarFunctionality. |
void |
setSubdivisions(short subdivisions)
Sets the subdivisions of the AGSScaleBarFunctionality. |
void |
setTextAngle(double textAngle)
Sets the textAngle of the AGSScaleBarFunctionality. |
void |
setType(int type)
Sets the type of the AGSScaleBarFunctionality. |
void |
setUnitLabel(String unitLabel)
Sets the unitLabel of the AGSScaleBarFunctionality. |
void |
setUnitLabelGap(double unitLabelGap)
Sets the unitLabelGap of the AGSScaleBarFunctionality. |
void |
setUnitLabelPosition(int unitLabelPosition)
Sets the unitLabelPosition of the AGSScaleBarFunctionality. |
void |
setUnits(int units)
Sets the units of the AGSScaleBarFunctionality. |
void |
setZeroPad(String zeroPad)
Sets the zeroPad of the AGSScaleBarFunctionality. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_DOUBLEALTERNATINGSCALEBAR
public static final int TYPE_ALTERNATINGSCALEBAR
public static final int TYPE_HOLLOWSCALEBAR
public static final int TYPE_SINGLEDIVISIONSCALEBAR
public static final int TYPE_STEPPEDSCALELINE
public static final int TYPE_SCALELINE
Constructor Detail |
---|
public AGSScaleBarFunctionality()
Method Detail |
---|
public void initFunctionality(GISResource resource)
GISFunctionality
The initialization chores for the functionality must be performed in this method. This method is called by the
resource
when the functionality needs to be initialized. This happens either when the resource
itself is being initialized or if users add this functionality to the resource using the
GISResource.addFunctionality(String, GISFunctionality)
method after the resource has already
been initialized.
Classes which implement this method should maintain the resource
as a class instance variable and
return the same in the GISFunctionality.getResource()
method. The functionality is ready for use only after this method has
been called.
initFunctionality
in interface GISFunctionality
resource
- the GISResource
that this functionality supportsGISResource.init(WebContext)
public void destroyFunctionality()
GISFunctionality
The cleanup chores (such as releasing held resources) for the functionality must be performed in this method. This
method is called by the GISResource
when the resource itself is being destroyed.
The functionality is no longer usable after this method has been called.
destroyFunctionality
in interface GISFunctionality
GISResource.destroy()
public AGSLocalMapResource getResource()
GISFunctionality
Returns the GISResource
associated with this functionality.
The resource passed to GISFunctionality.initFunctionality(GISResource)
is maintained as a class variable and is accessible
through this method.
getResource
in interface GISFunctionality
GISResource
associated with this functionalitypublic int getType()
public void setType(int type)
type
- The type to set.protected com.esri.arcgis.carto.IMapDescription getMapDescription() throws com.esri.arcgis.interop.AutomationException, IOException
com.esri.arcgis.interop.AutomationException
IOException
protected com.esri.arcgis.carto.ImageDisplay getMapSize() throws com.esri.arcgis.interop.AutomationException, IOException
com.esri.arcgis.interop.AutomationException
IOException
public boolean isDisabled()
public void setDisabled(boolean disabled)
public int getImageResolution()
public void setImageResolution(int imageResolution)
imageResolution
- The image resolution to set.public Integer getImageHeight()
public void setImageHeight(Integer imageHeight)
imageHeight
- The image height to set.public Integer getImageWidth()
public void setImageWidth(Integer imageWidth)
imageWidth
- The image width to set.public String getBackgroundColor()
public void setBackgroundColor(String backgroundColor)
backgroundColor
- The background color to set.public int getImageFormat()
public void setImageFormat(int imageFormat)
imageFormat
- The image format to set, check esriImageFormat for available values.public String getBarColor()
public void setBarColor(String barColor)
barColor
- The bar color to set.public double getBarHeight()
public void setBarHeight(double barHeight)
barHeight
- The bar height to set.public double getDivision()
public void setDivision(double division)
division
- The division to set.public short getDivisions()
public void setDivisions(short divisions)
divisions
- The divisions to set.public short getDivisionsBeforeZero()
public void setDivisionsBeforeZero(short divisionsBeforeZero)
divisionsBeforeZero
- The divisionsBeforeZero to set.public int getLabelFrequency()
public void setLabelFrequency(int labelFrequency)
labelFrequency
- The labelFrequency to set.public double getLabelGap()
public void setLabelGap(double labelGap)
labelGap
- The labelGap to set.public int getLabelPosition()
public void setLabelPosition(int labelPosition)
labelPosition
- The labelPosition to set.public int getResizeHint()
public void setResizeHint(int resizeHint)
resizeHint
- The resizeHint to set.public short getSubdivisions()
public void setSubdivisions(short subdivisions)
subdivisions
- The subdivisions to set.public String getUnitLabel()
public void setUnitLabel(String unitLabel)
unitLabel
- The unitLabel to set.public double getUnitLabelGap()
public void setUnitLabelGap(double unitLabelGap)
unitLabelGap
- The unitLabelGap to set.public int getUnitLabelPosition()
public void setUnitLabelPosition(int unitLabelPosition)
unitLabelPosition
- The unitLabelPosition to set.public int getUnits()
public void setUnits(int units)
units
- The units to set.public String getNumberSeparator()
public void setNumberSeparator(String numberSeparator)
numberSeparator
- The numberSeparator to set.public String getShowPlusSign()
public void setShowPlusSign(String showPlusSign)
showPlusSign
- The showPlusSign to set.public String getZeroPad()
public void setZeroPad(String zeroPad)
zeroPad
- The zeroPad to set.public String getRightToLeftText()
public void setRightToLeftText(String leftToRightText)
leftToRightText
- The rightToLeftText to set.public double getTextAngle()
public void setTextAngle(double textAngle)
textAngle
- The textAngle to set.protected com.esri.arcgis.carto.ImageDisplay calculateImageDisplay(com.esri.arcgis.server.IServerContext ctx, com.esri.arcgis.carto.IScaleBar scaleBar) throws IOException, com.esri.arcgis.interop.AutomationException
ctx
- scaleBar
-
IOException
com.esri.arcgis.interop.AutomationException
public byte[] exportImage()
ScaleBarFunctionality
exportImage
in interface ScaleBarFunctionality
protected com.esri.arcgis.system.NumericFormat getNumberFormat() throws IOException, com.esri.arcgis.interop.AutomationException
IOException
com.esri.arcgis.interop.AutomationException
protected com.esri.arcgis.display.ITextSymbol getTextSymbol() throws com.esri.arcgis.interop.AutomationException, IOException
com.esri.arcgis.interop.AutomationException
IOException
protected com.esri.arcgis.display.ICartographicLineSymbol getMarkLineSymbol() throws com.esri.arcgis.interop.AutomationException, IOException
com.esri.arcgis.interop.AutomationException
IOException
protected com.esri.arcgis.display.ILineSymbol getLineSymbol() throws com.esri.arcgis.interop.AutomationException, IOException
com.esri.arcgis.interop.AutomationException
IOException
protected com.esri.arcgis.display.IFillSymbol getFillSymbol(com.esri.arcgis.display.IColor color) throws com.esri.arcgis.interop.AutomationException, IOException
color
-
com.esri.arcgis.interop.AutomationException
IOException
public String getFontColor()
public void setFontColor(String fontColor)
fontColor
- The fontColor to set.public String getFontFamily()
public void setFontFamily(String fontFamily)
fontFamily
- The fontFamily to set.public int getFontSize()
public void setFontSize(int fontSize)
fontSize
- The fontSize to set.public int getLineSize()
public void setLineSize(int lineSize)
lineSize
- The lineSize to set.public int getRoundValue()
public void setRoundValue(int precision)
precision
- The roundValue to set.public int getRoundOption()
public void setRoundOption(int round)
round
- The roundOption to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |