|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.aims.mtier.model.acetate.Object com.esri.aims.mtier.model.acetate.ScaleBar
public class ScaleBar
Defines a ScaleBar object to be drawn as an acetate layer. The ScaleBarObject extends the Object class from the acetate package.
Field Summary | |
---|---|
static String |
BOLD
|
static String |
BOLDITALIC
|
static String |
CARTESIAN
|
static String |
DEGREES
|
static String |
FEET
|
static String |
GEODESIC
|
static String |
ITALIC
|
static String |
KILOMETERS
|
static String |
METERS
|
static String |
MILES
|
static String |
OUTLINE
|
static String |
REGULAR
|
static String |
UNDERLINE
|
Constructor Summary | |
---|---|
ScaleBar()
Constructs a new ScaleBar object. |
Method Summary | |
---|---|
String |
getBarColor()
Returns the bar color value for this ScaleBar object. |
double |
getBarTransparency()
Returns the transparency value for this ScaleBar object.. |
int |
getBarWidth()
Returns the width of this ScaleBar object. |
double |
getDistance()
Returns the distance value associated with this ScaleBar object. |
String |
getFont()
Returns the font value for the ScaleBar object. |
String |
getFontColor()
Returns the font color value for this ScaleBar object. |
int |
getFontSize()
Returns the font size of this ScaleBar object. |
String |
getFontStyle()
Returns the font style associated with this Scalebar object. |
String |
getID()
Returns the value of the ScaleBar identifier. |
String |
getMapUnits()
Returns the map units associated with this ScaleBar object. |
String |
getMode()
Returns the mode value. |
String |
getOutline()
Returns the outline color for this ScaleBar object. |
int |
getPrecision()
Returns the precision value associated with this ScaleBar object. |
double |
getRound()
Returns the round value associated with this ScaleBar object. |
String |
getScaleUnits()
Returns the scale units for this ScaleBar object. |
int |
getScreenLength()
Returns the screen length value for this ScaleBar object. |
double |
getTextTransparency()
Returns the text transparency value associated with this ScaleBar object. |
String |
getType()
Returns the type of acetate object. |
double |
getX()
Returns the X- coordinate value for this ScaleBar object. |
double |
getY()
Returns the Y- coordinate value of this ScaleBar object. |
boolean |
isAntialiasing()
Returns true if the antialiasing value is set to true. |
boolean |
isOverlap()
Returns true if the ScaleBar object's overlap value is set to true. |
void |
setAntialiasing(boolean value)
Sets the antialiasing value for this ScaleBar object. |
void |
setBarColor(String value)
Sets the bar color value for this ScaleBar object. |
void |
setBarTransparency(double value)
Sets the value of transparency for this ScaleBar object. |
void |
setBarWidth(int value)
Sets the given value as width of this ScaleBar object. |
void |
setDistance(double value)
Sets the distance value for this ScaleBar object. |
void |
setFont(String value)
Sets the font value for this ScaleBar object. |
void |
setFontColor(String value)
Sets the font color for this ScaleBar object. |
void |
setFontSize(int value)
Sets the font size of this ScaleBar object. |
void |
setFontStyle(String value)
Sets the given font style for this Scalebar object. |
void |
setID(String value)
Sets the value of the ScaleBar identifier with given string. |
void |
setMapUnits(String value)
Sets the map units value for this ScaleBar object. |
void |
setMode(String value)
Sets the mode value when the map units are in decimal degrees. |
void |
setOutline(String value)
Sets the outline color for this ScaleBar object. |
void |
setOverlap(boolean value)
Sets the overlap value for this Scalebar object. |
void |
setPrecision(int value)
Sets precision value for this ScaleBar object. |
void |
setRound(double value)
Sets the number of digits to round. |
void |
setScaleUnits(String value)
Sets the scale units for this ScaleBar object. |
void |
setScreenLength(int value)
Sets the screen length value for this ScaleBar object. |
void |
setTextTransparency(double value)
Sets the text transparency value for this ScaleBar object. |
void |
setX(double value)
Sets the X- coordinate value of this ScaleBar object. |
void |
setY(double value)
Sets the Y- coordinate value for this ScaleBar object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MILES
public static final String FEET
public static final String METERS
public static final String KILOMETERS
public static final String DEGREES
public static final String CARTESIAN
public static final String GEODESIC
public static final String REGULAR
public static final String BOLD
public static final String ITALIC
public static final String UNDERLINE
public static final String OUTLINE
public static final String BOLDITALIC
Constructor Detail |
---|
public ScaleBar()
Example:
ScaleBar scalebar = new ScaleBar();
Method Detail |
---|
public String getType()
getType
in interface MapSurroundings
getType
in class Object
public void setID(String value)
ScaleBar
identifier with given string.
Example: scalebar.setID("ScaleBar-1");
value
- the value of the identifiergetID()
public String getID()
Example: String id = scalebar.getID();
setID(java.lang.String)
public void setX(double value)
scalebar.setX(-125.0);
value
- the x coordinate value.getX()
public double getX()
Example:
double x = scalebar.getX();
setX(double)
public void setY(double value)
Example:
scalebar.setY(45.0);
value
- they Y coordinate value.getY()
public double getY()
Example:
int y = scalebar.getY();
setY(double)
public void setBarWidth(int value)
Example:
scalebar.setBarWidth(15);
value
- the width value.getBarWidth()
public int getBarWidth()
Example:
int barwidth = scalebar.getBarWidth();
setBarWidth(int)
public void setFontSize(int value)
Example: scalebar.setFontSize(15);
value
- the font size value.getFontSize()
public int getFontSize()
int fontSize = scalebar.getFontSize();
setFontSize(int)
public void setBarTransparency(double value)
Example: scalebar.setBarTransparency(1.0);
value
- the transparency value.getBarTransparency()
public double getBarTransparency()
Example: double barTransparency = scalebar.getBarTransparency();
setBarTransparency(double)
public void setTextTransparency(double value)
Example: scalebar.setTextTransparency(1.0);
value
- the text transparency value.getTextTransparency()
public double getTextTransparency()
Example: double textTransparency = scalebar.getTextTransparency();
setTextTransparency(double)
public void setAntialiasing(boolean value)
Example: scalebar.setAntialiasing(true)
value
- the antialiasing value.isAntialiasing()
public boolean isAntialiasing()
Example:
if(scalebar.isAntialiasing() == true){
scalebar.setAntialiasing(false);
}
setAntialiasing(boolean)
public void setFontColor(String value)
Example:
scalebar.setFontColor("255,0,0");
value
- the font color value.getFontColor()
public String getFontColor()
Example:
String fontColor = scalebar.getFontColor();
setFontColor(java.lang.String)
public void setBarColor(String value)
Example:
scalebar.setBarColor("255,0,0");
value
- the bar color value.getBarColor()
public String getBarColor()
Example:
String barColor = scalebar.getBarColor();
setBarColor(java.lang.String)
public void setFont(String value)
Example:
scalebar.setFont("Tahoma");
value
- the font value.getFont()
public String getFont()
Example:
String font = scalebar.getFont();
setFont(java.lang.String)
public void setDistance(double value)
Example:
scalebar.setDistance(25.0);
value
- the distance value.getDistance()
public double getDistance()
Example:
double distance = scalebar.getDistance();
setDistance(double)
public void setScreenLength(int value)
Example:
scalebar.setScreenLength(15);
value
- the screen length value.getScreenLength()
public int getScreenLength()
Example:
int screenLength = scalebar.getScreenLength();
setScreenLength(int)
public void setPrecision(int value)
Example:
scalebar.setPrecision(2);
value
- the precision value.getPrecision()
public int getPrecision()
Example:
int precision = scalebar.getPrecision();
setPrecision(int)
public void setMapUnits(String value)
Example:
scalebar.setMapUnits(scalebar.FEET);
value
- the mapUnits value.getMapUnits()
public String getMapUnits()
Example:
String mapunits = scalebar.getMapUnits();
setMapUnits(java.lang.String)
public void setScaleUnits(String value)
Example:
scalebar.setScaleUnits(scalebar.KILOMETERS);
value
- the scale units value.getScaleUnits()
public String getScaleUnits()
Example:
String scaleUnits = scalebar.getScaleUnits();
setScaleUnits(java.lang.String)
public void setRound(double value)
Example:
scalebar.setRound(25.0);
value
- the round value.getRound()
public double getRound()
Example:
double round = scalebar.getRound();
setRound(double)
public void setMode(String value)
Example:
scalebar.setMode(scalebar.GEODESIC);
value
- the mode value.getMode()
public String getMode()
Example:
String mode = scalebar.getMode();
setMode(java.lang.String)
public void setFontStyle(String value)
Example:
scalebar.setFontStyle(scalebar.BOLD);
value
- the font style value.getFontStyle()
public String getFontStyle()
Example:
String fontstyle = scalebar.getFontStyle();
setFontStyle(java.lang.String)
public void setOverlap(boolean value)
Example:
scalebar.setOverlap(true);
value
- the overlap value.isOverlap()
public boolean isOverlap()
Example:
if(scalebar.isOverlap() == true){
scalebar.setOverlap(false);
}
setOverlap(boolean)
public void setOutline(String value)
Example:
scalebar.setOutline("125,0,0");
value
- the outline color value.getOutline()
public String getOutline()
Example:
String outline = scalebar.getOutline();
setOutline(java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |