|
|||||||||
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.GradientFillSymbol
public class GradientFillSymbol
This object assigns color gradients as symbols to FeatureLayers. It fills the polygon with a gradual variation of colors ranging from startcolor to finishcolor. The GradientFillSymbol object extends the Symbol object.
Field Summary | |
---|---|
static String |
BDIAGONAL
|
static String |
FDIAGONAL
|
static String |
HORIZONTAL
|
static String |
VERTICAL
|
Constructor Summary | |
---|---|
GradientFillSymbol()
Constructs an instance of the GradientFillSymbol object. |
Method Summary | |
---|---|
String |
getFillType()
Returns the GradientFillSymbol's fill type as string. |
String |
getFinishColor()
Returns the GradientFillSymbol's finish color value. |
String |
getStartColor()
Returns the GradientFillSymbol's start color value. |
double |
getTransparency()
Returns the GradientFillSymbol's transparency value. |
String |
getType()
Returns name string defining the type of symbol. |
boolean |
isAntialiasing()
Determines if the GradientFillSymbol's antialiasing method is set. |
boolean |
isOverlap()
Determines if this GradientFillSymbol's overlap method is set. |
void |
setAntialiasing(boolean value)
Sets the antialiasing value for the GradientFillSymbol. |
void |
setFillType(String value)
Sets the fill type for this GradientFillSymbol object. |
void |
setFinishColor(String value)
Sets the GradientFillSymbol's end color as a RGB value. |
void |
setOverlap(boolean value)
Sets the overlap value, which determines if labels can overlap this symbol. |
void |
setStartColor(String value)
Sets the GradientFillSymbol's start color as a RGB value. |
void |
setTransparency(double value)
Sets the percentage of transparency for this GradientFillSymbol. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BDIAGONAL
public static final String FDIAGONAL
public static final String HORIZONTAL
public static final String VERTICAL
Constructor Detail |
---|
public GradientFillSymbol()
GradientFillSymbol gradientFill = new GradientFillSymbol();
Method Detail |
---|
public String getType()
getType
in class Symbol
public void setTransparency(double value)
gradientFill.setTransparency(100.0);
value
- the transparency value. 1.0 is 0 percent transparent, and
0.0 is 100 percent transparent.getTransparency()
public double getTransparency()
double transparency = gradientFill.getTransparency();
setTransparency(double)
public void setAntialiasing(boolean value)
gradientFill.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(gradientFill.isAntialiasing() == true){
gradientFill.setAntialiasing(false);
}
setAntialiasing(boolean)
public void setFillType(String value)
gradientFill.setFillType(gradientFill.BDIAGONAL);
value
- the type value.getFillType()
public String getFillType()
String type = gradientFill.getFillType();
setFillType(java.lang.String)
public void setStartColor(String value)
gradientFill.setStartColor("100,100,100");
value
- the start color value.getStartColor()
public String getStartColor()
String startColor = gradientFill.getStartColor();
setStartColor(java.lang.String)
public void setFinishColor(String value)
gradientFill.setFinishColor("100,100,100");
value
- the end color value.getFinishColor()
public String getFinishColor()
String finishColor = gradientFill.getFinishColor();
setFinishColor(java.lang.String)
public void setOverlap(boolean value)
gradientFill.setOverlap(true);
value
- the overlap value.isOverlap()
public boolean isOverlap()
if(gradientFill.isOverlap() == true){
gradientFill.setOverlap(false);
}
setOverlap(boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |