|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.MapHandlerChild
com.bbn.openmap.OMComponent
com.bbn.openmap.omGraphics.rule.Rule<java.util.List<?>>
com.bbn.openmap.omGraphics.rule.IndexRule
public abstract class IndexRule
A Rule is an attribute inspector that makes decisions about rendering attributes, information line contents, tooltips and visibility based on scale.
| Field Summary | |
|---|---|
protected int[] |
infolineIndicies
|
protected int |
keyIndex
The column index where the testing value can be found for the rule to compare against the value. |
protected int[] |
labelIndicies
|
protected int[] |
tooltipIndicies
|
| Fields inherited from class com.bbn.openmap.omGraphics.rule.Rule |
|---|
displayMaxScale, displayMinScale, drawingAttributes, infolineFields, keyField, labelFields, labelMaxScale, labelMinScale, op, RuleActionInfoline, RuleActionLabel, RuleActionMaxScale, RuleActionMinScale, RuleActionRender, RuleActionTooltip, RuleKeyProperty, RuleListProperty, RuleOperatorProperty, RuleValueProperty, tooltipFields, val |
| Fields inherited from class com.bbn.openmap.OMComponent |
|---|
i18n, propertyPrefix |
| Fields inherited from class com.bbn.openmap.MapHandlerChild |
|---|
beanContextChildSupport, isolated |
| Fields inherited from interface com.bbn.openmap.PropertyConsumer |
|---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
| Constructor Summary | |
|---|---|
IndexRule()
|
|
| Method Summary | |
|---|---|
boolean |
evaluate(java.util.List<?> record)
Asks the Op class to evaluate the provided value against the Rules value. |
OMGraphic |
evaluate(java.util.List<?> record,
OMGraphic omg,
Projection proj)
Evaluate the record against this rule. |
java.lang.String |
getColumnNamesFromIndicies(int[] indicies)
Given a prefix + ActionProperty, get the column names listed as the property value and figure out what the indexes of the columns are. |
java.lang.String |
getContent(java.util.List<java.lang.String> fieldNames,
java.util.List<?> record)
Returns a String of concatenated record values. |
java.lang.String |
getContentFromIndicies(int[] indicies,
java.util.List<?> record)
Returns a String of concatenated record values. |
int[] |
getIndicies(java.util.List<java.lang.String> fieldNames)
Given a prefix + ActionProperty, get the column names listed as the property value and figure out what the indexes of the columns are. |
int[] |
getInfolineIndicies()
|
int |
getKeyIndex()
|
int[] |
getLabelIndicies()
|
abstract int |
getRecordColumnIndexForName(java.lang.String columnName)
A record List for the attributes of an OMGraphic might have a name for each entry. |
abstract java.lang.String |
getRecordColumnName(int index)
Provide the title of the attribute at a specific entry. |
int[] |
getTooltipIndicies()
|
void |
setInfolineIndicies(int[] infolineIndicies)
|
void |
setKeyIndex(int keyIndex)
|
void |
setLabelIndicies(int[] labelIndicies)
|
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Sets the properties for the OMComponent. |
void |
setTooltipIndicies(int[] tooltipIndicies)
|
| Methods inherited from class com.bbn.openmap.omGraphics.rule.Rule |
|---|
getDisplayMaxScale, getDisplayMinScale, getDrawingAttribtues, getFieldsAsString, getInfolineFields, getKeyName, getLabelFields, getLabelMaxScale, getLabelMinScale, getOp, getProperties, getStringFromFields, getTooltipFields, getVal, setDisplayMaxScale, setDisplayMinScale, setDrawingAttributes, setInfolineFields, setKeyName, setLabelFields, setLabelMaxScale, setLabelMinScale, setOp, setTooltipFields, setVal |
| Methods inherited from class com.bbn.openmap.OMComponent |
|---|
getPropertyInfo, getPropertyPrefix, setProperties, setPropertyPrefix |
| Methods inherited from class com.bbn.openmap.MapHandlerChild |
|---|
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, findAndInit, findAndUndo, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int keyIndex
protected int[] tooltipIndicies
protected int[] infolineIndicies
protected int[] labelIndicies
| Constructor Detail |
|---|
public IndexRule()
| Method Detail |
|---|
public abstract int getRecordColumnIndexForName(java.lang.String columnName)
columnName - name of a attribute in a List, like a column name of a
list of lists.
public abstract java.lang.String getRecordColumnName(int index)
index - into the record List.
public boolean evaluate(java.util.List<?> record)
evaluate in class Rule<java.util.List<?>>record - list of objects to evaluate, the keyIndex will be used to
fetch the appropriate object from the List.
public java.lang.String getContent(java.util.List<java.lang.String> fieldNames,
java.util.List<?> record)
getContent in class Rule<java.util.List<?>>fieldNames - name of columnsrecord - List to use for return value
public void setProperties(java.lang.String prefix,
java.util.Properties props)
OMComponent
setProperties in interface PropertyConsumersetProperties in class Rule<java.util.List<?>>prefix - the token to prefix the property namesprops - the Properties object
public OMGraphic evaluate(java.util.List<?> record,
OMGraphic omg,
Projection proj)
evaluate in class Rule<java.util.List<?>>record - A List of attributes for a particular OMGraphic/map object.
The indices for the rule are indexes into this record.omg - The OMGraphic to evaluate.proj - The current map projection.
public java.lang.String getContentFromIndicies(int[] indicies,
java.util.List<?> record)
indicies - column indexes of values to be concatenated in return
valuerecord - List to use for return value
public int[] getIndicies(java.util.List<java.lang.String> fieldNames)
fieldNames - a List of Strings for property title
public java.lang.String getColumnNamesFromIndicies(int[] indicies)
indicies - int[] of column indexes in the dbf file reflecting the
order and number of column names to be listed as a property
value.
public int[] getInfolineIndicies()
public void setInfolineIndicies(int[] infolineIndicies)
public int getKeyIndex()
public void setKeyIndex(int keyIndex)
public int[] getLabelIndicies()
public void setLabelIndicies(int[] labelIndicies)
public int[] getTooltipIndicies()
public void setTooltipIndicies(int[] tooltipIndicies)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||