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
public class SwappableTableOneClickMap extends SwappableTableOneClickAbstract
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:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class com.illumon.iris.db.plot.util.tables.SwappableTableOneClickAbstract
SwappableTableOneClickAbstract.OneClickTypeMismatchException, SwappableTableOneClickAbstract.SwappableTablePreemptiveUpdatesQuery
Nested classes/interfaces inherited from class com.illumon.iris.db.plot.util.tables.SwappableTable
SwappableTable.LocalTableUpdateListener
Nested 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
Constructors Constructor Description SwappableTableOneClickMap(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 Type Method Description void
clearAllFilters()
Requests the the one click listener clear all of it's filters.protected Table
computeRemoteTable()
Computes the remote table.protected Predicate<Object>
convertColumnSelections(String column)
List<String>
getByColumns()
Set<Object>
getCurrentOneClicks(String column)
Get the current set of OneClick values for the specified columns.protected Set<Object>
getSelectionsForColumn(String column)
Provide limited access to this data for subclasses.Function<Table,Table>
getTransform()
org.jdom2.Element
getWorkspaceInfo()
Serialize the class into an element to be stored in the workspaceprotected void
invokeRecompute()
void
setWorkspaceInfo(org.jdom2.Element workspaceInfo)
Restore the class to the state defined by the data persisted in workspaceInfoprotected boolean
updateState(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, update
Methods 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, unsubscribeLocalTable
-
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:SwappableTable
Update the state for a given column selection.- Specified by:
updateState
in 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:SwappableTableOneClickAbstract
Get the current set of OneClick values for the specified columns.- Specified by:
getCurrentOneClicks
in classSwappableTableOneClickAbstract
- Parameters:
column
- the column- Returns:
- the set of one clicked values.
-
invokeRecompute
protected void invokeRecompute()- Overrides:
invokeRecompute
in classSwappableTableOneClickAbstract
-
getTransform
-
getByColumns
- Specified by:
getByColumns
in classSwappableTableOneClickAbstract
-
getWorkspaceInfo
public org.jdom2.Element getWorkspaceInfo()Description copied from interface:Workspace
Serialize the class into an element to be stored in the workspace- Returns:
- An
Element
containing the data to persist.
-
setWorkspaceInfo
public void setWorkspaceInfo(org.jdom2.Element workspaceInfo)Description copied from interface:Workspace
Restore the class to the state defined by the data persisted in workspaceInfo- Parameters:
workspaceInfo
- AnElement
containing the persisted state.
-
clearAllFilters
public void clearAllFilters()Description copied from interface:OneClickListener
Requests the the one click listener clear all of it's filters. -
computeRemoteTable
Description copied from class:SwappableTable
Computes the remote table.- Specified by:
computeRemoteTable
in classSwappableTable<String,Set<Object>>
- Returns:
- computed remote table
-
getSelectionsForColumn
Provide limited access to this data for subclasses.- Parameters:
column
- key for thevalues
collection- Returns:
- the selected values
-
convertColumnSelections
-