|
|||||||||
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.ChartSymbol
public class ChartSymbol
Used to symbolize features with bar or pie diagrams. The properties supported by this object matches the attributes of the ArcXML ChartSymbol element. The ChartSymbol extends the Symbol object.
Field Summary | |
---|---|
static String |
BAR
|
static String |
PIE
|
Constructor Summary | |
---|---|
ChartSymbol()
Constructs an instance of a CharSymbol. |
Method Summary | |
---|---|
void |
addChartValue(ChartValue object)
Adds a ChartValue object to the chartvalues collection. |
void |
clearChartValues()
Clears all ChartValue objects from the chartvalues collection. |
ChartValue |
getChartValue(int index)
Returns a ChartValue object by index. |
int |
getChartValuesCount()
Returns the count of all ChartValues in the chartvalues collection. |
long |
getMaxSize()
Returns the maximum size of chart associated with this ChartSymbol. |
long |
getMaxValue()
Returns the ChartSymbol's maxvalue. |
long |
getMinSize()
Returns the ChartSymbol's minsize value. |
long |
getMinValue()
Returns the ChartSymbols minvalue. |
String |
getMode()
Returns the type of chart associated with this ChartSymbol. |
String |
getOutline()
Returns the ChartSymbol's outline color value. |
String |
getShadow()
Returns the ChartSymbol's shadow color value. |
long |
getSize()
Returns the ChartSymbol's size value. |
String |
getSizeField()
Returns the ChartSymbol's sizefield value. |
double |
getTransparency()
Returns the ChartSymbol's transparency value. |
String |
getType()
Returns the type of Symbol, "Chart". |
boolean |
isAntialiasing()
Determines if the ChartSymbol's antialiasing method is set. |
Object |
removeChartValue(int index)
Removes a ChartValue object by index from the ChartVvalues collection. |
void |
setAntialiasing(boolean value)
Sets the antialiasing property as active. |
void |
setMaxSize(long value)
Sets the maximum size of chart, if size or sizefield is not used. |
void |
setMaxValue(long value)
Sets the maximum value that corresponds to the minimum chartsize in minsize. |
void |
setMinSize(long value)
Sets the minimum size of chart, if size or sizefield is not used. |
void |
setMinValue(long value)
Sets the minimum value that corresponds to the minimum chartsize in minsize. |
void |
setMode(String value)
Sets the mode of the ChartSymbol as Pie or Chart. |
void |
setOutline(String value)
Sets the ChartSymbol's outline color value. |
void |
setShadow(String value)
Sets the ChartSymbol's shadow color value. |
void |
setSize(long value)
Sets the size of charts with given value. |
void |
setSizeField(String value)
Sets the value of ChartSymbol's size field, which corresponds to the field in the database containing the size of the chart. |
void |
setTransparency(double value)
Sets the ChartSymbol's percentage of transparency 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 PIE
public static final String BAR
Constructor Detail |
---|
public ChartSymbol()
ChartSymbol chartSymbol = new ChartSymbol();
Method Detail |
---|
public String getType()
getType
in class Symbol
public boolean isAntialiasing()
antialiasing
method is set.
if(chartSymbol.isAntialiasing() == true){
chartSymbol.setAntialiasing(false);
}
setAntialiasing(boolean)
public void setAntialiasing(boolean value)
chartSymbol.setAntialiasing(true);
value
- the antialiasing value.isAntialiasing()
public void setMaxSize(long value)
chartSymbol.setMaxSize(2);
value
- the maxsize valuegetMaxSize()
public long getMaxSize()
long maxSize = chartSymbol.getMaxSize();
setMaxSize(long)
public void setMaxValue(long value)
chartSymbol.setMaxValue(25);
value
- the maximum value .getMaxValue()
public long getMaxValue()
long maxValue = chartSymbol.getMaxValue();
setMaxValue(long)
public void setMinSize(long value)
chartSymbol.setMinSize(15);
value
- the minsize value.getMinSize()
public long getMinSize()
long minSize = chartSymbol.getMinSize();
setMinSize(long)
public void setMinValue(long value)
chartSymbol.setMinValue(15);
value
- the minimum value.getMinValue()
public long getMinValue()
String minValue = chartSymbol.getMinValue();
setMinValue(long)
public void setMode(String value)
chartSymbol.setMode("Pie");
value
- the type of chart - Pie or Chart.getMode()
public String getMode()
String mode = chartSymbol.getMode();
setMode(java.lang.String)
public void setOutline(String value)
chartSymbol.setOutline("100,0,0");
value
- the outline color value.getOutline()
public String getOutline()
String outline = chartSymbol.getOutline();
setOutline(java.lang.String)
public void setShadow(String value)
chartSymbol.setShadow("250,0,0");
value
- the shadow color value.getShadow()
public String getShadow()
String shadow = chartSymbol.getShadow();
setShadow(java.lang.String)
public void setSize(long value)
chartSymbol.setSize(25);
value
- the chart size.getSize()
public long getSize()
long size = chartSymbol.getSize();
setSize(long)
public void setSizeField(String value)
chartSymbol.setSizeField("lakes");
Refer to the ArcXML Programmer's Reference Guide for more information.
value
- the sizefield valuegetSizeField()
public String getSizeField()
String field = chartSymbol.getSizeField();
setSizeField(java.lang.String)
public void setTransparency(double value)
chartSymbol.setTransparency(25.0);
value
- the transparency value of chart symbol. 1.0 is 0 percent
transparent and 0.0 is 100 percent transparent.getTransparency()
public double getTransparency()
double transparency = chartSymbol.getTransparency();
setTransparency(double)
public void addChartValue(ChartValue object)
ChartValue chartValue = new ChartValue();
chartValue.setLookUpField("world");
chartValue.setColor("100,100,100");
chartSymbol.addChartValue(chartValue);
object
- the ChartValue object.getChartValue(int)
,
removeChartValue(int)
,
clearChartValues()
,
getChartValuesCount()
public ChartValue getChartValue(int index)
ChartValue chartValue = chartSymbol.getChartValue(0);
index
- the ChartValue item to be returned.
addChartValue(com.esri.aims.mtier.model.map.layer.renderer.symbol.ChartValue)
,
removeChartValue(int)
,
clearChartValues()
,
getChartValuesCount()
public Object removeChartValue(int index)
ChartValue chartValue = (ChartValue)chartSymbol.removeChartValue(0);
index
- the ChartValue by index.
addChartValue(com.esri.aims.mtier.model.map.layer.renderer.symbol.ChartValue)
,
getChartValue(int)
,
clearChartValues()
,
getChartValuesCount()
public void clearChartValues()
chartSymbol.clearChartValues();
addChartValue(com.esri.aims.mtier.model.map.layer.renderer.symbol.ChartValue)
,
getChartValue(int)
,
removeChartValue(int)
,
getChartValuesCount()
public int getChartValuesCount()
int chartValuesCount = chartSymbol.getChartValuesCount();
addChartValue(com.esri.aims.mtier.model.map.layer.renderer.symbol.ChartValue)
,
getChartValue(int)
,
removeChartValue(int)
,
clearChartValues()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |