|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.aims.mtier.model.map.layer.renderer.symbol.Symbol com.esri.aims.mtier.model.map.layer.renderer.symbol.TextSymbol
public class TextSymbol
This object is used to label point, line, and polygon layers.
Field Summary | |
---|---|
static String |
ALLLOWER
|
static String |
ALLUPPER
|
static String |
BOLD
|
static String |
BOLDITALIC
|
static String |
ITALIC
|
static String |
NONE
|
static String |
OUTLINE
|
static String |
REGULAR
|
static String |
TITLECAPS
|
static String |
UNDERLINE
|
Constructor Summary | |
---|---|
TextSymbol()
Constructs an instance of a TextSymbol object. |
Method Summary | |
---|---|
String |
getBlockout()
Returns the TextSymbols blockout color value. |
String |
getFont()
Returns the TextSymbol's font value. |
String |
getFontColor()
Returns the TextSymbol's font color value. |
long |
getFontSize()
Returns the TextSymbol's font size value. |
String |
getFontStyle()
Returns the TextSymbol's fontstyle value. |
String |
getGlowing()
Returns the TextSymbols glowing color value. |
long |
getInterval()
Returns the TextSymbol's interval value. |
String |
getOutline()
Returns the TextSymbol's outline color value. |
String |
getPrintMode()
Returns the TextSymbol's print mode value. |
String |
getShadow()
Returns the TextSymbols shadow color value. |
double |
getTransparency()
Returns the TextSymbol's transparency value. |
String |
getType()
Abstract method returns the type of symbol that the Symbol object represents. |
boolean |
isAntialiasing()
Returns True if TextSymbol's antialiasing value is set to True. |
void |
setAntialiasing(boolean value)
Sets the TextSymbol's antialiasing value. |
void |
setBlockout(String value)
Sets the TextSymbol's blockout color value. |
void |
setFont(String value)
Sets the TextSymbol's font value. |
void |
setFontColor(String value)
Sets the TextSymbol's font color value. |
void |
setFontSize(long value)
Sets the TextSymbol's font size value. |
void |
setFontStyle(String value)
Sets the TextSymbol's fontstyle value. |
void |
setGlowing(String value)
Sets the TextSymbol's glowing color value. |
void |
setInterval(long value)
Sets the TextSymbol's distance in pixels from point 0. |
void |
setOutline(String value)
Sets the TextSymbol's outline color value. |
void |
setPrintMode(String value)
Sets the TextSymbol's print mode, which determines how labels are printed. |
void |
setShadow(String value)
Sets the TextSymbol's shadow color value. |
void |
setTransparency(double value)
Sets the percentage of transparency of this TextSymbol. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
public static final String TITLECAPS
public static final String ALLUPPER
public static final String ALLLOWER
public static final String NONE
Constructor Detail |
---|
public TextSymbol()
TextSymbol text = new TextSymbol();
Method Detail |
---|
public String getType()
Symbol
getType
in class Symbol
public void setTransparency(double value)
text.setTransparency(1.0);
value
- the transparency value. 1.0 is 0 percent transparent.
0.0 is 100 percent transparent.getTransparency()
public void setAntialiasing(boolean value)
text.setAntialiasing(false);
value
- the antialiasing value that is used to make edges of labels
and symbols smoother. When set to True, antialiasing is active.isAntialiasing()
public void setFont(String value)
text.setFont("arial");
value
- the font value.getFont()
public void setFontSize(long value)
text.setFontSize(15);
value
- the font size value.getFontSize()
public void setFontColor(String value)
text.setFontColor("255,0,0");
value
- the font color value.getFontColor()
public void setOutline(String value)
text.setOutline("100,0,0");
value
- the outline color value.getOutline()
public void setGlowing(String value)
text.setGlowing("50,0,0");
value
- the glowing color value.getGlowing()
public void setShadow(String value)
text.setShadow("45,0,0");
value
- the shadow color value.getShadow()
public void setBlockout(String value)
text.setBlockout("78,0,0");
value
- the blockout color value.getBlockout()
public void setInterval(long value)
text.setInterval(5);
value
- the interval.getInterval()
public void setPrintMode(String value)
text.setPrintMode("allupper");
value
- the print mode - 'none', 'alllower', 'llupper', 'itlecase'. For
example, if 'none' is used, no change is made to the label: Welcome to ArcIMS.getPrintMode()
public void setFontStyle(String value)
text.setFontStyle("BOLD");
value
- the fontstyle value.getFontStyle()
public double getTransparency()
double transparency = text.getTransparency();
setTransparency(double)
public boolean isAntialiasing()
if(text.isAntialiasing() == true){
text.setAntialiasing(false);
}
setAntialiasing(boolean)
public String getFont()
String font = text.getFont();
setFont(java.lang.String)
public long getFontSize()
long fontSize = text.getFontSize();
setFontSize(long)
public String getFontColor()
String fontColor = text.getFontColor();
setFontColor(java.lang.String)
public String getOutline()
String outline = text.getOutline();
setOutline(java.lang.String)
public String getGlowing()
String glowing = text.getGlowing();
setGlowing(java.lang.String)
public String getShadow()
String shadow = text.getShadow();
setShadow(java.lang.String)
public String getBlockout()
String blockout = text.getBlockout();
setBlockout(java.lang.String)
public long getInterval()
long interval = text.getInterval();
setInterval(long)
public String getPrintMode()
String printmode = text.getPrintMode();
setPrintMode(java.lang.String)
public String getFontStyle()
String fontStyle = text.getFontStyle();
setFontStyle(java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |