public class FeatureDrawingAttributes extends DrawingAttributes
Modifier and Type | Class and Description |
---|---|
class |
FeatureDrawingAttributes.DisplayTypeChoice |
class |
FeatureDrawingAttributes.FCIChoice |
DrawingAttributes.Builder, DrawingAttributes.DrawingAttributesGUIButton
Modifier and Type | Field and Description |
---|---|
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.
|
alwaysSetTextToBlack, baseScale, baseScaleProperty, bse, capProperty, dashPatternProperty, dashPhaseProperty, DEFAULT, defaultDashLength, defaultDashPhase, defaultFillPaintString, defaultLinePaintString, defaultLineWidth, defaultMattingPaintString, defaultSelectPaintString, enableFillPaintChoice, FillColorCommand, fillColorItem, fillPaint, fillPaintProperty, fillPattern, fillPatternProperty, fPattern, i18n, icon_height, icon_width, joinProperty, LineColorCommand, lineColorItem, lineMenuAdditions, linePaint, linePaintProperty, lineWidthProperty, logger, matted, MattedCommand, mattedEnabledItem, mattedProperty, MattingColorCommand, mattingColorItem, mattingPaint, mattingPaintProperty, miterLimitProperty, NONE, orientation, pointOval, PointOvalProperty, pointRadius, PointRadiusProperty, propertyChangeSupport, propertyPrefix, SelectColorCommand, selectColorItem, selectPaint, selectPaintProperty, stroke
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
FeatureDrawingAttributes()
Default creation of the FeatureDrawingAttributes.
|
FeatureDrawingAttributes(java.util.Properties props) |
FeatureDrawingAttributes(java.lang.String prefix,
java.util.Properties props) |
Modifier and Type | Method and Description |
---|---|
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() |
actionPerformed, calculateTextColor, clone, cloneBasicStroke, equals, getALineButton, getBaseScale, getBasicStrokeEditor, getColorAndLineMenu, getColorMenu, getDefaultClone, getDrawingAttributesIcon, getFillPaint, getFillPaintForScale, getFillPattern, getGradientPaintForShape, getIconForPaint, getInitPropertiesOrder, getLineMenuAdditions, getLinePaint, getLock, getMattedIcon, getMattingIconForPaint, getMattingPaint, getNewPaint, getOrientation, getPaletteIcon, getPointRadius, getPropertyChangeSupport, getPropertyPrefix, getSelectPaint, getStroke, getStrokeForScale, hashCode, init, init, isClear, isEnableFillPaintChoice, isMatted, isPointOval, normalizeOn128, propertyChange, releaseLock, render, render, resetGUI, setBaseScale, setEnableFillPaintChoice, setFillPaint, setFillPattern, setFrom, setFrom, setLineMenuAdditions, setLinePaint, setMatted, setMattingPaint, setOMGraphicAttributesForScale, setOMGraphicEdgeAttributes, setOMGraphicEdgeAttributesForScale, setOrientation, setPointOval, setPointRadius, setPostStrokeMenuOptions, setPreStrokeMenuOptions, setProperties, setPropertyChangeSupport, setPropertyPrefix, setSelectPaint, setStroke, setStrokeMenuOptions, setTo, setTo, setTo, sTransfer, toString, transfer
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
public FeatureDrawingAttributes()
public FeatureDrawingAttributes(java.util.Properties props)
props
- public FeatureDrawingAttributes(java.lang.String prefix, java.util.Properties props)
prefix
- props
- 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.Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details