public class DbfHandler.Rule extends OMComponent
Modifier and Type | Field and Description |
---|---|
protected DrawingAttributes |
da |
protected DbfFile |
dbf |
protected float |
displayMaxScale |
protected float |
displayMinScale |
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 float |
labelMaxScale |
protected float |
labelMinScale |
protected DbfHandler.Op |
op |
protected int[] |
tooltipIndicies |
protected java.lang.Object |
val
The value that the query runs the operation against.
|
i18n, propertyPrefix
beanContextChildSupport, isolated
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
DbfHandler.Rule(DbfFile dbfFile) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(java.lang.Object val)
Asks the Op class to evaluate the provided value against the Rules
value.
|
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.
|
DrawingAttributes |
getDa() |
float |
getDisplayMaxScale() |
float |
getDisplayMinScale() |
int[] |
getIndicies(java.lang.String actionProperty,
java.util.Properties props)
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() |
float |
getLabelMaxScale() |
float |
getLabelMinScale() |
DbfHandler.Op |
getOp() |
java.util.Properties |
getProperties(java.util.Properties props)
PropertyConsumer method, to fill in a Properties object, reflecting the
current values of the OMComponent.
|
int[] |
getTooltipIndicies() |
java.lang.Object |
getVal() |
void |
setDa(DrawingAttributes da) |
void |
setDisplayMaxScale(float displayMaxScale) |
void |
setDisplayMinScale(float displayMinScale) |
void |
setInfolineIndicies(int[] infolineIndicies) |
void |
setKeyIndex(int keyIndex) |
void |
setLabelIndicies(int[] labelIndicies) |
void |
setLabelMaxScale(float labelMaxScale) |
void |
setLabelMinScale(float labelMinScale) |
void |
setOp(DbfHandler.Op op) |
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Sets the properties for the OMComponent.
|
void |
setTooltipIndicies(int[] tooltipIndicies) |
void |
setVal(java.lang.Object val) |
getPropertyInfo, getPropertyPrefix, setProperties, setPropertyPrefix
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, findAndInit, findAndUndo, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated
protected DbfFile dbf
protected int keyIndex
protected java.lang.Object val
protected DbfHandler.Op op
protected DrawingAttributes da
protected int[] tooltipIndicies
protected int[] infolineIndicies
protected int[] labelIndicies
protected float displayMinScale
protected float displayMaxScale
protected float labelMinScale
protected float labelMaxScale
public DbfHandler.Rule(DbfFile dbfFile)
public void setProperties(java.lang.String prefix, java.util.Properties props)
OMComponent
setProperties
in interface PropertyConsumer
setProperties
in class OMComponent
prefix
- the token to prefix the property namesprops
- the Properties
objectpublic java.util.Properties getProperties(java.util.Properties props)
OMComponent
getProperties
in interface PropertyConsumer
getProperties
in class OMComponent
props
- a Properties object to load the PropertyConsumer properties
into. If props equals null, then a new Properties object should be
created.public boolean evaluate(java.lang.Object val)
val
- public int[] getIndicies(java.lang.String actionProperty, java.util.Properties props)
actionProperty
- prefix + ActionPropertyprops
- 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 DrawingAttributes getDa()
public void setDa(DrawingAttributes da)
public float getDisplayMaxScale()
public void setDisplayMaxScale(float displayMaxScale)
public float getDisplayMinScale()
public void setDisplayMinScale(float displayMinScale)
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 float getLabelMaxScale()
public void setLabelMaxScale(float labelMaxScale)
public float getLabelMinScale()
public void setLabelMinScale(float labelMinScale)
public DbfHandler.Op getOp()
public void setOp(DbfHandler.Op op)
public int[] getTooltipIndicies()
public void setTooltipIndicies(int[] tooltipIndicies)
public java.lang.Object getVal()
public void setVal(java.lang.Object val)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details