|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.omGraphics.DrawingAttributes com.bbn.openmap.layer.vpf.FeatureDrawingAttributes
public class FeatureDrawingAttributes
The FeatureDrawingAttributes class is used by the VPFFeatureGraphicWarehouse to control the fetching and display of feature attributes out of the feature attribute file, controlled by the FeatureClassInfo class.
Nested Class Summary | |
---|---|
class |
FeatureDrawingAttributes.DisplayTypeChoice
|
class |
FeatureDrawingAttributes.FCIChoice
|
Nested classes/interfaces inherited from class com.bbn.openmap.omGraphics.DrawingAttributes |
---|
DrawingAttributes.Builder, DrawingAttributes.DrawingAttributesGUIButton |
Field Summary | |
---|---|
protected int |
attributeCol
The chosen attribute column index in the FCI file. |
protected java.lang.String |
attributeColName
The desired attribute column name as specified in properties. |
protected javax.swing.JComboBox |
attributeJCB
The GUI combo box for attribute choices. |
protected javax.swing.JPanel |
attributePanel
The GUI panel containing the attribute fetching choices. |
static java.lang.String |
AttributeProperty
|
protected java.lang.String |
displayType
The chosen display type, which gets set as a property in each OMGraphic for retrieval by the layer. |
protected javax.swing.JComboBox |
displayTypeJCB
The GUI combo box for choices on how to display the attributes. |
static java.lang.String |
DisplayTypeProperty
|
protected FeatureClassInfo |
fci
A handle to the FeatureClassInfo class containing the attribute information. |
protected javax.swing.JPanel |
guiPanel
The main GUI panel containing the superclass GUI and attribute-fetching GUI. |
Fields inherited from interface com.bbn.openmap.PropertyConsumer |
---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
Constructor Summary | |
---|---|
FeatureDrawingAttributes()
Default creation of the FeatureDrawingAttributes. |
|
FeatureDrawingAttributes(java.util.Properties props)
|
|
FeatureDrawingAttributes(java.lang.String prefix,
java.util.Properties props)
|
Method Summary | |
---|---|
protected int |
getAttributeCol()
Retrieve the column index number out of the feature class info file that is being used/displayed. |
java.lang.String |
getAttributeColName()
|
java.lang.String |
getDisplayType()
|
FeatureClassInfo |
getFci()
|
java.awt.Component |
getGUI()
Return the GUI controls for this feature = the basic DrawingAttributes GUI from the superclass, plus the other attribute display controls. |
java.util.Properties |
getProperties(java.util.Properties props)
PropertyConsumer method that retrieves the current values of settable properties. |
java.util.Properties |
getPropertyInfo(java.util.Properties props)
PropertyConsumer method that gathers information about the settable properties. |
protected void |
setAttributeCol(int col)
Set the column index number in the feature class info file that will be used/displayed. |
void |
setAttributeColName(java.lang.String attributeColName)
|
void |
setDisplayType(java.lang.String displayType)
|
void |
setFci(FeatureClassInfo fci)
|
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Sets the properties for the DrawingAttributes . |
void |
setTo(OMGraphic omg,
int id)
Set the attributes chosen in the GUI on the OMGraphic. |
protected void |
updateAttributeGUI()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JPanel guiPanel
protected javax.swing.JPanel attributePanel
protected FeatureClassInfo fci
protected javax.swing.JComboBox attributeJCB
protected javax.swing.JComboBox displayTypeJCB
protected java.lang.String displayType
protected int attributeCol
protected java.lang.String attributeColName
public static final java.lang.String DisplayTypeProperty
public static final java.lang.String AttributeProperty
Constructor Detail |
---|
public FeatureDrawingAttributes()
public FeatureDrawingAttributes(java.util.Properties props)
props
- public FeatureDrawingAttributes(java.lang.String prefix, java.util.Properties props)
prefix
- props
- Method Detail |
---|
public void setProperties(java.lang.String prefix, java.util.Properties props)
DrawingAttributes
DrawingAttributes
. Part of the
PropertyConsumer interface. DrawingAttributess which override this method
should do something like:
public void setProperties(String prefix, Properties props) { super.setProperties(prefix, props); // do local stuff }If the addToBeanContext property is not defined, it is set to false here.
setProperties
in interface PropertyConsumer
setProperties
in class DrawingAttributes
prefix
- the token to prefix the property namesprops
- the Properties
objectpublic java.util.Properties getProperties(java.util.Properties props)
getProperties
in interface PropertyConsumer
getProperties
in class DrawingAttributes
props
- a Properties object to load the PropertyConsumer properties
into. If props equals null, then a new Properties object should be
created.
public java.util.Properties getPropertyInfo(java.util.Properties props)
getPropertyInfo
in interface PropertyConsumer
getPropertyInfo
in class DrawingAttributes
props
- a Properties object to load the PropertyConsumer properties
into. If getList equals null, then a new Properties object should
be created.
public void setTo(OMGraphic omg, int id)
omg
- the OMGraphic to set the attribute information on.id
- The ID number of the map feature that the OMGraphic represents.protected int getAttributeCol()
protected void setAttributeCol(int col)
public java.awt.Component getGUI()
getGUI
in class DrawingAttributes
protected void updateAttributeGUI()
public java.lang.String getDisplayType()
public void setDisplayType(java.lang.String displayType)
displayType
- The displayType to set.public FeatureClassInfo getFci()
public void setFci(FeatureClassInfo fci)
fci
- The fci to set.public java.lang.String getAttributeColName()
public void setAttributeColName(java.lang.String attributeColName)
attributeColName
- The attributeColName to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |