Class SwappableTableOneClickMap
java.lang.Object
com.illumon.iris.db.plot.util.tables.SwappableTable<String,Set<Object>>
com.illumon.iris.db.plot.util.tables.SwappableTableOneClickAbstract
com.illumon.iris.db.plot.util.tables.SwappableTableOneClickMap
- All Implemented Interfaces:
LinkableChartPanel.LinkTargetListener,SwappableTableMap,OneClickListener,Workspace,Serializable
Holds a handle on a one click table that may get swapped out for another table. A TableMap is used to compute the OneClick.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.illumon.iris.db.plot.util.tables.SwappableTableOneClickAbstract
SwappableTableOneClickAbstract.OneClickTypeMismatchException, SwappableTableOneClickAbstract.SwappableTablePreemptiveUpdatesQueryNested classes/interfaces inherited from class com.illumon.iris.db.plot.util.tables.SwappableTable
SwappableTable.LocalTableUpdateListenerNested classes/interfaces inherited from interface com.illumon.iris.gui.util.oneclick.OneClickListener
OneClickListener.OneClickUpdateType -
Field Summary
Fields inherited from class com.illumon.iris.db.plot.util.tables.SwappableTableOneClickAbstract
ATTR_SERIES_NAME, byColumns, columnTypes, NODE_NAME, requireAllFiltersToDisplay, tableMapHandle, updateInterval -
Constructor Summary
ConstructorsConstructorDescriptionSwappableTableOneClickMap(Comparable seriesName, long updateInterval, TableMapHandle tableMapHandle, Function<Table, Table> transform, boolean requireAllFiltersToDisplay, String... byColumns) SwappableTableOneClickMap(Comparable seriesName, long updateInterval, TableMapHandle tableMapHandle, Function<Table, Table> transform, String... byColumns) SwappableTableOneClickMap(Comparable seriesName, long updateInterval, TableMapHandle tableMapHandle, Function<Table, Table> transform, Function<Table, Table> emptySetTransform, boolean requireAllFiltersToDisplay, String... byColumns) -
Method Summary
Modifier and TypeMethodDescriptionvoidRequests the the one click listener clear all of it's filters.protected TableComputes the remote table.convertColumnSelections(String column) getCurrentOneClicks(String column) Get the current set of OneClick values for the specified columns.getSelectionsForColumn(String column) Provide limited access to this data for subclasses.org.jdom2.ElementSerialize the class into an element to be stored in the workspaceprotected voidvoidsetWorkspaceInfo(org.jdom2.Element workspaceInfo) Restore the class to the state defined by the data persisted in workspaceInfoprotected booleanupdateState(String column, Set<Object> item) Update the state for a given column selection.Methods inherited from class com.illumon.iris.db.plot.util.tables.SwappableTableOneClickAbstract
addColumn, getBaseOneClick, getFriendlyName, getSeriesName, getTableMapHandle, handleOneClickItem, handleOneClickList, isRequireAllFiltersToDisplay, localRecomputeComplete, setChartRenderingState, updateMethods inherited from class com.illumon.iris.db.plot.util.tables.SwappableTable
addDataChangeListener, addLocalTableUpdateListener, beginBatchUpdate, endBatchUpdate, freezeSnapshots, getManager, getReplicatedTableSnapshot, getSnapshotData, getTableDefinition, maybeInitializeTransient, removeLocalTableUpdateListener, setManager, tableCalculationChanged, thawSnapshots, unsubscribeLocalTableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.gui.workspace.Workspace
isGlobalSetting
-
Constructor Details
-
SwappableTableOneClickMap
public SwappableTableOneClickMap(Comparable seriesName, long updateInterval, TableMapHandle tableMapHandle, Function<Table, Table> transform, String... byColumns) -
SwappableTableOneClickMap
public SwappableTableOneClickMap(Comparable seriesName, long updateInterval, TableMapHandle tableMapHandle, Function<Table, Table> transform, boolean requireAllFiltersToDisplay, String... byColumns) -
SwappableTableOneClickMap
public SwappableTableOneClickMap(Comparable seriesName, long updateInterval, TableMapHandle tableMapHandle, Function<Table, Table> transform, Function<Table, Table> emptySetTransform, boolean requireAllFiltersToDisplay, String... byColumns)
-
-
Method Details
-
updateState
Description copied from class:SwappableTableUpdate the state for a given column selection.- Specified by:
updateStatein classSwappableTable<String,Set<Object>> - Parameters:
column- key for table calculationitem- value for table calculation- Returns:
- whether this table should recompute
-
getCurrentOneClicks
Description copied from class:SwappableTableOneClickAbstractGet the current set of OneClick values for the specified columns.- Specified by:
getCurrentOneClicksin classSwappableTableOneClickAbstract- Parameters:
column- the column- Returns:
- the set of one clicked values.
-
invokeRecompute
protected void invokeRecompute()- Overrides:
invokeRecomputein classSwappableTableOneClickAbstract
-
getTransform
-
getByColumns
- Specified by:
getByColumnsin classSwappableTableOneClickAbstract
-
getWorkspaceInfo
public org.jdom2.Element getWorkspaceInfo()Description copied from interface:WorkspaceSerialize the class into an element to be stored in the workspace- Returns:
- An
Elementcontaining the data to persist.
-
setWorkspaceInfo
public void setWorkspaceInfo(org.jdom2.Element workspaceInfo) Description copied from interface:WorkspaceRestore the class to the state defined by the data persisted in workspaceInfo- Parameters:
workspaceInfo- AnElementcontaining the persisted state.
-
clearAllFilters
public void clearAllFilters()Description copied from interface:OneClickListenerRequests the the one click listener clear all of it's filters. -
computeRemoteTable
Description copied from class:SwappableTableComputes the remote table.- Specified by:
computeRemoteTablein classSwappableTable<String,Set<Object>> - Returns:
- computed remote table
-
getSelectionsForColumn
Provide limited access to this data for subclasses.- Parameters:
column- key for thevaluescollection- Returns:
- the selected values
-
convertColumnSelections
-