|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
schmitzm.geotools.gui.FeatureCollectionTableModel
skrueger.geotools.StyledFeatureCollectionTableModel
public class StyledFeatureCollectionTableModel
This class extends the the FeatureCollectionTableModel
with the
functionalities of the AttributeMetadata
.
AttributeMetadata.getTitle()
AttributeMetaData#isVisible()()
StyledFeaturesInterface
will be
applied.
Field Summary | |
---|---|
protected AttributeMetadataMap |
amdMap
Contains the complete AttributeMetadata -Map of the styled layer. |
protected List<AttributeMetadata> |
amdMapVisibleOnly
A cache for the #sortedValuesVisibleOnly() |
protected Envelope |
bounds
Holds the Bounds for all features. |
protected String[] |
colTooltips
Tooltips für die Spaltennamen. |
protected Filter |
filter
Holds the current filter on the table |
Fields inherited from class schmitzm.geotools.gui.FeatureCollectionTableModel |
---|
attrFilter, attrIdxForCol, attrTypes, colClass, colNames, featureArray, featureIdx, featureTable |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
StyledFeatureCollectionTableModel(StyledFeaturesInterface<?> styledFeatures)
Creates a new table model for a styled layer. |
Method Summary | |
---|---|
Envelope |
getBounds()
|
Object |
getValueAt(int row,
int col)
This overwritten method filters the values for NODATA-values defined in the AttributeMetadata |
protected void |
reorganize(boolean fireTableStructureChanged)
After calling super.reorganize(.) this method replaced the column
descriptions with the titles of the AttributeMetaData . |
protected void |
setFeatureSource(
Sets a new data source for the table. |
void |
setStyledFeatures(StyledFeaturesInterface<?> styledFeatures)
Converts the StyledFeatureCollection to a FeatureSource
and sets this as the new data source for the table. |
Methods inherited from class schmitzm.geotools.gui.FeatureCollectionTableModel |
---|
findFeature, getAttributeFilter, getColumnClass, getColumnCount, getColumnName, getFeature, getFeatureCollection, getFeaturesAsArray, getFeaturesAsCollection, getRowCount, reorganize, setAttributeFilter, setFeatureCollection |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AttributeMetadataMap amdMap
AttributeMetadata
-Map of the styled layer.
protected Filter filter
protected Envelope bounds
protected String[] colTooltips
reorganize(boolean)
befuellt.
protected List<AttributeMetadata> amdMapVisibleOnly
Constructor Detail |
---|
public StyledFeatureCollectionTableModel(StyledFeaturesInterface<?> styledFeatures)
styledFeatures
- the styled layerfilter
- filter applied to the tableMethod Detail |
---|
public Object getValueAt(int row, int col)
AttributeMetadata
getValueAt
in interface TableModel
getValueAt
in class FeatureCollectionTableModel
row
- Zeilennummer (SimpleFeature), beginnend bei 0col
- Spaltennummer (Attribut), beginnen bei 0protected void setFeatureSource(fs, AttributeMetadataMap amdm, Filter filter) throws Exception
fs
- the feature sourceamdm
- AttributeMetadata
-Map to define the visible attributes
and translation
Exception
public void setStyledFeatures(StyledFeaturesInterface<?> styledFeatures)
StyledFeatureCollection
to a FeatureSource
and sets this as the new data source for the table.
fs
- the feature sourceamd
- AttributeMetadata
-Map to define the visible attributes
and translationprotected void reorganize(boolean fireTableStructureChanged)
super.reorganize(.)
this method replaced the column
descriptions with the titles of the AttributeMetaData
.
reorganize
in class FeatureCollectionTableModel
fireTableStructureChanged
- indicates whether a table event is initiated after reorganizepublic Envelope getBounds()
null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |