|
|||||||||
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.SimpleLineSymbol
public class SimpleLineSymbol
Respresents a symbol for a line feature.
Field Summary | |
---|---|
static String |
DASH
|
static String |
DASH_DOT
|
static String |
DASH_DOT_DOT
|
static String |
DOT
|
static String |
SOLID
|
Constructor Summary | |
---|---|
SimpleLineSymbol()
Constructs an instance of a SimpleLineSymbol object. |
Method Summary | |
---|---|
String |
getCapType()
Returns the SimpleLineSymbol's line end style. |
String |
getColor()
Returns the SimpleLineSymbol's color value. |
String |
getJoinType()
Returns the SimpleLineSymbol's joint type value. |
String |
getLineType()
Returns the SimpleLineSymbol's line type value. |
double |
getTransparency()
Returns the SimpleLineSymbol's transparency value. |
String |
getType()
Abstract method returns the type of symbol that the Symbol object represents. |
long |
getWidth()
Returns the SimpleLineSymbol's width value. |
boolean |
isAntialiasing()
Returns True if the SimpleLineSymbol's antialiasing value is set to True. |
boolean |
isOverlap()
Returns True if SimpleLineSymbol's overlap method is set to True. |
void |
setAntialiasing(boolean value)
Sets the antialiasing value for this SimpleLineSymbol. |
void |
setCapType(String value)
Sets the line end style for this SimpleLineSymbol. |
void |
setColor(String value)
Sets the SimpleLineSymbol's color value. |
void |
setJoinType(String value)
Sets the line join type for this SimpleLineSymbol. |
void |
setLineType(String value)
Sets the SimpleLineSymbol's line type value. |
void |
setOverlap(boolean value)
Sets the SimpleLineSymbol's overlap value. |
void |
setTransparency(double value)
Sets the percentage of transparency for this SimpleLineSymbol. |
void |
setWidth(long value)
Sets the SimpleLineSymbol's width value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SOLID
public static final String DASH
public static final String DOT
public static final String DASH_DOT
public static final String DASH_DOT_DOT
Constructor Detail |
---|
public SimpleLineSymbol()
SimpleLineSymbol simpleLine = new SimpleLineSymbol();
Method Detail |
---|
public String getType()
Symbol
getType
in class Symbol
public void setTransparency(double value)
simpleLine.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)
simpleLine.setAntialiasing(false);
value
- the antialiasing value.isAntialiasing()
public void setColor(String value)
simpleLine.setColor("255,0,0");
value
- the color value.getColor()
public void setLineType(String value)
simpleLine.setLineType("solid");
value
- the line type value.getLineType()
public void setWidth(long value)
simpleLine.setWidth(10);
value
- the width value.public void setCapType(String value)
simpleLine.setCapType("BUTT");
value
- the line end style - BUTT, ROUND, or SQUARE.getCapType()
public void setJoinType(String value)
simpleLine.setJoinType("ROUND");
value
- the line join type - ROUND (Default), MITER, or BEVELgetJoinType()
public String getJoinType()
String joinType = simpleLine.getJoinType();
setJoinType(java.lang.String)
public double getTransparency()
double transparency = simpleLine.getTransparency();
setTransparency(double)
public String getCapType()
String capType = simpleLine.getCapType();
setCapType(java.lang.String)
public long getWidth()
long width = simpleLine.getWidth();
setWidth(long)
public String getLineType()
String lineType = simpleLine.getLineType();
setLineType(java.lang.String)
public String getColor()
String color = simpleLine.getColor();
setColor(java.lang.String)
public boolean isAntialiasing()
if(simpleLine.isAntialiasing() == true){
simpleLine.setAntialiasing(false);
}
setAntialiasing(boolean)
public void setOverlap(boolean value)
simpleLine.setOverlap(false);
value
- the overlap value.isOverlap()
public boolean isOverlap()
if(simpleLine.isOverlap() == false){
simpleLine.setOverlap(true);
}
setOverlap(boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |