|
|||||||||
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.HashLineSymbol
public class HashLineSymbol
This is a Line object used for drawing railroad symbols. The HashLineSymbol extends the Symbol object.
Field Summary | |
---|---|
static String |
BACKGROUND
|
static String |
FOREGROUND
|
Constructor Summary | |
---|---|
HashLineSymbol()
Constructs an instance of a HashLineSymbol. |
Method Summary | |
---|---|
String |
getColor()
Returns the HashLineSymbol's color value. |
String |
getHashType()
Returns the HashLineSymbol's type value. |
long |
getInterval()
Returns the distance between railroad cross hashes in pixels. |
long |
getLineThickness()
Returns the HashLineSymbol's line thickness as pixels. |
long |
getTickThickness()
Returns the HashLineSymbol's tick thickness as pixels. |
double |
getTransparency()
Returns the HashLineSymbol's transparency value. |
String |
getType()
Returns the type of symbol, "HashLine". |
long |
getWidth()
Returns the width of the crosshash in pixels. |
boolean |
isAntialiasing()
Returns true, if the HashLineSymbol's antialiasing value is true. |
boolean |
isOverlap()
Determines if the HashLineSymbol's overlap value is set. |
void |
setAntialiasing(boolean value)
Sets the HashLineSymbol's antialiasing value. |
void |
setColor(String value)
Sets the HashLineSymbol's color value. |
void |
setHashType(String value)
Sets the HashLineSymbol's type value. |
void |
setInterval(long value)
Sets the distance between railroad crosshashes in pixels. |
void |
setLineThickness(long value)
Sets the HashLineSymbol's line thickness in pixels. |
void |
setOverlap(boolean value)
Sets the overlap value, which determines if labels can overlap this symbol. |
void |
setTickThickness(long value)
Sets the HashLineSymbol's tick thickness in pixels. |
void |
setTransparency(double value)
Sets the HashLineSymbol's transparency value. |
void |
setWidth(long value)
Sets the width of the crosshash in pixels. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FOREGROUND
public static final String BACKGROUND
Constructor Detail |
---|
public HashLineSymbol()
HashLineSymbol hashLine = new HashLineSymbol();
Method Detail |
---|
public String getType()
getType
in class Symbol
public void setTransparency(double value)
hashline.setTransparency(1.0);
value
- the transparency value.getTransparency()
public double getTransparency()
double transparency = hashLine.getTransparency();
setTransparency(double)
public void setAntialiasing(boolean value)
hashLine.setAntialiasing(true);
value
- the antialiasing value that is used to make edges of labels
and symbols smoother. When set to True, antialiasing is active.isAntialiasing()
public boolean isAntialiasing()
if(hashLine.isAntialiasing() == true){
hashLine.setAntialiasing(false);
}
setAntialiasing(boolean)
public void setColor(String value)
hashLine.setColor("255,255,255");
value
- the color value.getColor()
public String getColor()
String color = hashLine.getColor();
setColor(java.lang.String)
public void setHashType(String value)
hashLine.setHashType(hashLine.BACKGROUND);
value
- the type value - foreground or background.getHashType()
public String getHashType()
String hashType = hashLine.getHashType();
setHashType(java.lang.String)
public void setWidth(long value)
hashLine.setWidth(10);
value
- the width value.getWidth()
public long getWidth()
long width = hashLine.getWidth();
setWidth(long)
public void setInterval(long value)
hashLine.setInterval(2);
value
- the interval value.getInterval()
public long getInterval()
long interval = hashLine.getInterval();
public void setLineThickness(long value)
hashLine.setLineThickness(2);
value
- the line thickness value.getLineThickness()
public long getLineThickness()
long lineThickness = hashLine.getLineThickness();
setLineThickness(long)
public void setTickThickness(long value)
hashLine.setTickThickness(25);
value
- the tick thickness value.getTickThickness()
public long getTickThickness()
long tickThickness = hashLine.getTickThickness();
getTickThickness()
public void setOverlap(boolean value)
hashLine.setOverlap(true);
value
- the overlap value.isOverlap()
public boolean isOverlap()
if(hashLine.isOverlap() == true){
hashLine.setOverlap(false);
}
setOverlap(boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |