|
|||||||||
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
of
styled objects.
AttributeMetaData.getTitle()
AttributeMetaData.isVisible()()
Field Summary | |
---|---|
protected Envelope |
bounds
Holds the Bounds for all features. |
protected FeatureSource |
featureSource
Holds the data source for the table as FeatureSource . |
protected Filter |
filter
Holds the current filter on the table |
protected StyledLayerInterface<?> |
layer
Holds the data source as styled layer. |
protected Map<Integer,AttributeMetaData> |
origAMD
Contains the complete AttributeMetaData -Map of the styled layer. |
protected Map<Integer,AttributeMetaData> |
visibleAMD
Contains only the visible elements of the AttributeMetaData -Map |
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(StyledFeatureCollectionInterface layer)
Creates a new table model for a styled layer. |
|
StyledFeatureCollectionTableModel(StyledFeatureCollectionInterface layer,
Filter filter)
Creates a new table model for a styled layer. |
|
StyledFeatureCollectionTableModel(StyledFeaturesInterface layer)
Creates a new table model for a styled layer. |
|
StyledFeatureCollectionTableModel(StyledFeaturesInterface layer,
Filter filter)
Creates a new table model for a styled layer. |
Method Summary | |
---|---|
Envelope |
getBounds()
|
Filter |
getFilter()
|
protected void |
reorganize(boolean fireTableStructureChanged)
After calling super.reorganize(.) this method replaced the column
descriptions with the titles of the AttributeMetaData . |
void |
setFeatureCollection(StyledFeaturesInterface layer,
Filter filter)
Converts the StyledFeatureCollection to a FeatureSource
and sets this as the new data source for the table. |
void |
setFeatureCollection(StyledFeatureSourceInterface layer,
Filter filter)
Sets the StyledFeatureCollection as new data source for the
table. |
protected void |
setFeatureSource(FeatureSource fs,
Map<Integer,AttributeMetaData> amd,
Filter filter)
Sets a new data source for the table. |
void |
setFilter(Filter filter)
Resets the filter for the table. |
Methods inherited from class schmitzm.geotools.gui.FeatureCollectionTableModel |
---|
findFeature, getAttributeFilter, getColumnClass, getColumnCount, getColumnName, getFeature, getFeatureCollection, getFeaturesAsArray, getFeaturesAsCollection, getRowCount, getValueAt, 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 StyledLayerInterface<?> layer
protected Map<Integer,AttributeMetaData> visibleAMD
AttributeMetaData
-Map
protected FeatureSource featureSource
FeatureSource
.
protected Map<Integer,AttributeMetaData> origAMD
AttributeMetaData
-Map of the styled layer.
protected Filter filter
protected Envelope bounds
Constructor Detail |
---|
public StyledFeatureCollectionTableModel(StyledFeatureCollectionInterface layer)
layer
- the styled layerpublic StyledFeatureCollectionTableModel(StyledFeatureCollectionInterface layer, Filter filter)
layer
- the styled layerfilter
- filter applied to the tablepublic StyledFeatureCollectionTableModel(StyledFeaturesInterface layer)
layer
- the styled layerpublic StyledFeatureCollectionTableModel(StyledFeaturesInterface layer, Filter filter)
layer
- the styled layerfilter
- filter applied to the tableMethod Detail |
---|
protected void setFeatureSource(FeatureSource fs, Map<Integer,AttributeMetaData> amd, Filter filter) throws Exception
fs
- the feature sourceamd
- AttributeMetaData
-Map to define the visible attributes
and translation
Exception
public void setFeatureCollection(StyledFeaturesInterface layer, Filter filter)
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 translationpublic void setFeatureCollection(StyledFeatureSourceInterface layer, Filter filter)
StyledFeatureCollection
as new data source for the
table.
fs
- the feature sourceamd
- AttributeMetaData
-Map to define the visible attributes
and translationpublic void setFilter(Filter filter)
filter
- a filterpublic Filter getFilter()
Filter.INCLUDE
or the Filter
applied to the
Featuresprotected 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 |