|
|||||||||
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.Renderer com.esri.aims.mtier.model.map.layer.renderer.ValueMapLabelRenderer
public class ValueMapLabelRenderer
Implements a ValueMapLabelRenderer
that allows different label symbols to
be set for different features on the map. The differences are set with
the Exact, Other, and Range objects. The ValueMapLabelRenderer object extends the Renderer object.
Field Summary | |
---|---|
static String |
HIGH_WEIGHT
Defines that the feature has high importance and cannot be labeled over. |
static String |
MED_WEIGHT
Defines that the feature has medium importance. |
static String |
NO_WEIGHT
Defines that the feature has no importance and can be labeled over. |
static String |
ONE_LABEL_PER_NAME
Labels once per feature name. |
static String |
ONE_LABEL_PER_PART
Labels all parts of a feature in the case of multipart features. |
static String |
ONE_LABEL_PER_SHAPE
Labels once per feature even if there are multiple segments. |
static String |
PLACE_ABOVE
Determines the label be placed above the line. |
static String |
PLACE_ABOVE_BELOW
Determines the label be placed above or below the line. |
static String |
PLACE_BELOW
Determines the label be placed below the line. |
static String |
PLACE_IN_LINE
Determines the label be placed anywhere on the line. |
static String |
PLACE_LEFT
Determines the label be placed to the left of the line. |
static String |
PLACE_LEFT_RIGHT
Determines the label be placed to the right or left of the line. |
static String |
PLACE_ON_TOP
Determines the label be placed on top of the line. |
static String |
PLACE_ON_TOP_HORIZONTAL
Determines the label be placed on top of the line but always horizontal. |
static String |
PLACE_PARALLEL
Determines the label be placed parallel to the line. |
static String |
PLACE_RIGHT
Determines the label be placed to the right of the line. |
Constructor Summary | |
---|---|
ValueMapLabelRenderer()
Constructs an instance of a ValueMapLabelRenderer object. |
Method Summary | |
---|---|
boolean |
addObject(Object object)
Adds the given object to the ValueMapLabelRenderer Object. |
void |
clear()
Clears all ValueMapLabelRenderer from the collection. |
int |
getCount()
Returns a count of ValueMapLabelRenderer objects. |
String |
getFeatureWeight()
Returns the feature weight property associated with this ValueMapLabelRenderer . |
String |
getHowManyLabels()
Returns the value associated with the 'how many labels' attribute. |
double |
getLabelBufferRatio()
Returns the label buffer ratio value for the ValueMapLabelRenderer . |
String |
getLabelField()
Returns the label field value for this ValueMapLabelRenderer . |
String |
getLabelPriorities()
Returns the label priority set for this ValueMapLabelRenderer . |
String |
getLabelWeight()
Returns the label weight associated with this ValueMapLabelRenderer . |
String |
getLineLabelPosition()
Returns the line label position set for this ValueMapLabelRenderer . |
String |
getLookupField()
Returns the lookup field value for the ValueMapLabelRenderer . |
ValueMap |
getObject(int index)
Returns the ValueMapLabelRenderer at given index from the
ValueMapLabelRenderer collection. |
String |
getRotationalAngles()
Returns the rotational angles associated with this ValueMapLabelRenderer . |
String |
getType()
Returns the name string that defines the renderer type. |
Object |
remove(int index)
Removes the ValueMapLabelRenderer at given index from the collection. |
Object |
Remove(int index)
Deprecated. As of ArcIMS 9.3 Java Connector, replaced by remove(int) . |
Object |
replace(int index,
Object obj)
Replaces the ValueMapLabelRenderer at given index with the specified
object. |
Object |
Replace(int index,
Object obj)
Deprecated. As of ArcIMS 9.3 Java Connector, replaced by replace(int, java.lang.Object) . |
void |
setFeatureWeight(String value)
When set, the feature weight property prioritizes the importance of features. |
void |
setHowManyLabels(String value)
When set, this property determines how often a feature is labeled. |
void |
setLabelBufferRatio(double value)
Sets the label buffer ratio for this ValueMapLabelRenderer . |
void |
setLabelField(String value)
Sets the label field value for the ValueMapLabelRenderer. |
void |
setLabelPriorities(String value)
Sets the label priority for this ValueMapLabelRenderer . |
void |
setLabelWeight(String value)
Sets the label weight to prioritize the importance of this ValueMapLabelRenderer . |
void |
setLineLabelPosition(String value)
When set, this property determines where on the line to place the label. |
void |
setLookupField(String value)
Sets the lookup field for this ValueMapLabelRenderer . |
void |
setRotationalAngles(String value)
Sets the given value as the rotational angle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NO_WEIGHT
public static final String MED_WEIGHT
public static final String HIGH_WEIGHT
public static final String ONE_LABEL_PER_NAME
public static final String ONE_LABEL_PER_SHAPE
public static final String ONE_LABEL_PER_PART
public static final String PLACE_ABOVE
public static final String PLACE_BELOW
public static final String PLACE_ON_TOP
public static final String PLACE_LEFT
public static final String PLACE_RIGHT
public static final String PLACE_ABOVE_BELOW
public static final String PLACE_LEFT_RIGHT
public static final String PLACE_IN_LINE
public static final String PLACE_PARALLEL
public static final String PLACE_ON_TOP_HORIZONTAL
Constructor Detail |
---|
public ValueMapLabelRenderer()
ValueMapLabelRenderer
object.
Example: ValueMapLabelRenderer valueMapLabel = new ValueMapLabelRenderer();
Method Detail |
---|
public String getType()
getType
in class Renderer
public boolean addObject(Object object)
ValueMapLabelRenderer
Object.
Example:
ValueMap valueMap = new ValueMap();
TextSymbol textSymbol = new TextSymbol();
textSymbol.setFont("arial");
valueMap.setSymbol(textSymbol);
valueMap.addObject(textSymbol);
object
- the symbol object.
remove(int)
,
clear()
,
getObject(int)
public ValueMap getObject(int index)
ValueMapLabelRenderer
at given index from the
ValueMapLabelRenderer
collection.
Example:
ValueMap valueMap = valueMapLabel.getObject(1);
index
- the item in the collection.
ValueMapLabelRenderer
object.addObject(java.lang.Object)
public void setLookupField(String value)
ValueMapLabelRenderer
.
Example:
valueMapLabel.setLookupField("trout");
value
- the name of field used to specify ranges for Range
or exact values for Exact
.getLookupField()
public String getLookupField()
ValueMapLabelRenderer
.
Example:
String lookupField = valueMap.getLookUpField();
setLookupField(java.lang.String)
public void setLabelField(String value)
valueMapLabel.setLabelField("Brown");
value
- the labelfield value.getLabelField()
public String getLabelField()
ValueMapLabelRenderer
.
The label field specifies text for labeling features. The field can be in
a layer table or in a joined table.
Example:
String labelField = valueMapLabel.getLabelField();
public void setFeatureWeight(String value)
valueMapLabel.setFeatureWeight("HIGH_WEIGHT");
value
- the feature weight value.getFeatureWeight()
public String getFeatureWeight()
ValueMapLabelRenderer
.
Example:
String fWeight = valueMapLabel.getFeatureWeight();
setFeatureWeight(java.lang.String)
public void setLineLabelPosition(String value)
valueMapLabel.setLineLabelPosition("PLACE_PARALLEL");
value
- the line label position.getLineLabelPosition()
public String getLineLabelPosition()
ValueMapLabelRenderer
.
Example:
String LLPosition = valueMapLabel.getLineLabelPosition();
setLineLabelPosition(java.lang.String)
public void setLabelWeight(String value)
ValueMapLabelRenderer
.
The label weight is usually set to HIGH_WEIGHT since the labels are most important.
This priority can be set lower if the labels are not as important as the features.
Example:
valueMapLabel.setLabelWeight("HIGH_WEIGHT");
value
- the label weight.getLabelWeight()
public String getLabelWeight()
ValueMapLabelRenderer
.
Example:
String labelWeight = valueMapLabel.getLabelWeight();
setLabelWeight(java.lang.String)
public void setHowManyLabels(String value)
valueMapLabel.setHowManyLabels("ONE_LABEL_PER_SHAPE");
value
- defines the property as ONE_LABEL_PER_NAME/ONE_LABEL_PER_PART/ONE_LABEL_PER_SHAPEgetHowManyLabels()
public String getHowManyLabels()
String HMLabels = valueMapLabel.getHowManyLabels();
setHowManyLabels(java.lang.String)
public void setLabelPriorities(String value)
ValueMapLabelRenderer
.
When set, this property determines where to place the label around the point.
1 2 3
8 X 4
7 6 5
In each position, the user can prioritize the importance of that position
from 0 upwards. 0 signifies that the label should not be placed in that
position. 1 means that this is an acceptable position for the label, and
all higher numbers represent lesser priorities for that position. For
example, "1,0,1,0,0,0,0,0" means that only the first and third label
positions will be taken into account when labeling. In another
example, "1,2,3,0,1,0,0,0" means try to label at the first and fifth
position; if not, then put the label at the second position; if not, then
put it at the third position; if this is not possible, then don't label it.
valueMapLabel.setLabelPriorities("0,0,0,0,0,0,0,0");
value
- the label priorities value.getLabelPriorities()
public String getLabelPriorities()
ValueMapLabelRenderer
.
Example:
String lPriorities = valueMapLabel.getLabelPriorities();
setLabelPriorities(java.lang.String)
public void setRotationalAngles(String value)
valueMapLabel.setRotationalAngles("45");
value
- the rotational angles value.getRotationalAngles()
public String getRotationalAngles()
ValueMapLabelRenderer
.
Example: String rAngles = valueMapLabel.getRotationalAngles();
setRotationalAngles(java.lang.String)
public int getCount()
ValueMapLabelRenderer
objects.
Example: int count = valueMap.getCount();
public void clear()
ValueMapLabelRenderer
from the collection.
Example: valueMapLabel.clear();
remove(int)
,
addObject(java.lang.Object)
public Object Remove(int index)
remove(int)
.
ValueMapLabelRenderer
at given index from the collection.
Example:
valueMapLabel.remove(1);
index
- the object to remove
clear()
,
addObject(java.lang.Object)
public Object remove(int index)
ValueMapLabelRenderer
at given index from the collection.
Example:
valueMapLabel.remove(1);
index
- the object to remove
clear()
,
addObject(java.lang.Object)
public Object Replace(int index, Object obj)
replace(int, java.lang.Object)
.
ValueMapLabelRenderer
at given index with the specified
object.
Example:
ValueMap value = (ValueMap)valueMapLabel.getObject(2);
valueMapLabel.replace(3, value);
index
- the object at this index to replace.obj
- the replacement object.
public Object replace(int index, Object obj)
ValueMapLabelRenderer
at given index with the specified
object.
Example:
ValueMap value = (ValueMap)valueMapLabel.getObject(2);
valueMapLabel.replace(3, value);
index
- the object at this index to replace.obj
- the replacement object.
public void setLabelBufferRatio(double value)
ValueMapLabelRenderer
. This property
sets the buffer around the label. when this is set, no labels overlap within the buffer range.
value
- the label buffer ratio value. The ratio is a fraction of the height or
width of the rectangle (whichever is smaller) compared to the width of the buffer. For example,
a ratio of 0.0 means no buffer, and a ratio of 1.0 means the buffer is twice the size of the
label (the label width equals the buffer width). A negative ratio causes the buffer to be smaller
than the label. This can be used to allow labels to overlap.
Example:
valueMapLabel.setLabelBufferRatio(2.0);
getLabelBufferRatio()
,
getLabelBufferRatio()
public double getLabelBufferRatio()
ValueMapLabelRenderer
.
Example:
double lbRatio = valueMapLabel.getLabelBufferRatio();
setLabelBufferRatio(double)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |