Class Viewport
- java.lang.Object
-
- adams.gui.visualization.container.datacontainerpanel.AbstractPopupCustomizer<T,M,C>
-
- adams.gui.visualization.container.datacontainerpanel.plotpopup.AbstractPlotPopupCustomizer<SpreadSheetRow,SpreadSheetRowContainerManager,SpreadSheetRowContainer>
-
- adams.gui.visualization.spreadsheet.plotpopup.Viewport
-
- All Implemented Interfaces:
Serializable
public class Viewport extends AbstractPlotPopupCustomizer<SpreadSheetRow,SpreadSheetRowContainerManager,SpreadSheetRowContainer>
Allows the user to perform operations on the rows visible in the current viewport.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Viewport()
-
Method Summary
-
-
-
Method Detail
-
getName
public String getName()
The name.- Specified by:
getName
in classAbstractPopupCustomizer<SpreadSheetRow,SpreadSheetRowContainerManager,SpreadSheetRowContainer>
- Returns:
- the name
-
getGroup
public String getGroup()
The group this customizer belongs to.- Specified by:
getGroup
in classAbstractPopupCustomizer<SpreadSheetRow,SpreadSheetRowContainerManager,SpreadSheetRowContainer>
- Returns:
- the group
-
handles
public boolean handles(DataContainerPanelWithContainerList<SpreadSheetRow,SpreadSheetRowContainerManager,SpreadSheetRowContainer> panel)
Checks whether this action can handle the panel.- Specified by:
handles
in classAbstractPopupCustomizer<SpreadSheetRow,SpreadSheetRowContainerManager,SpreadSheetRowContainer>
- Parameters:
panel
- the panel to check- Returns:
- true if handled
-
containersInViewport
protected List<SpreadSheetRowContainer> containersInViewport(DataContainerPanelWithContainerList<SpreadSheetRow,SpreadSheetRowContainerManager,SpreadSheetRowContainer> panel)
Locates the visible rows that are on display in the current viewport.- Parameters:
panel
- the panel to use- Returns:
- the list of rows
-
display
protected void display(DataContainerPanelWithContainerList<SpreadSheetRow,SpreadSheetRowContainerManager,SpreadSheetRowContainer> panel, List<SpreadSheetRowContainer> conts)
Displays the IDs etc of the rows.- Parameters:
panel
- the affected panelconts
- the containers to display
-
chooseColor
protected void chooseColor(DataContainerPanelWithContainerList<SpreadSheetRow,SpreadSheetRowContainerManager,SpreadSheetRowContainer> panel, List<SpreadSheetRowContainer> conts)
Allows the user to choose the color for all the rows.- Parameters:
panel
- the affected panelconts
- the containers to modify
-
hide
protected void hide(DataContainerPanelWithContainerList<SpreadSheetRow,SpreadSheetRowContainerManager,SpreadSheetRowContainer> panel, List<SpreadSheetRowContainer> conts)
Allows the user to hide the rows.- Parameters:
panel
- the affected panelconts
- the containers to hide
-
hideOthers
protected void hideOthers(DataContainerPanelWithContainerList<SpreadSheetRow,SpreadSheetRowContainerManager,SpreadSheetRowContainer> panel, List<SpreadSheetRowContainer> conts)
Allows the user to hide all other rows.- Parameters:
panel
- the affected panelconts
- the containers to keep
-
customize
public void customize(DataContainerPanelWithContainerList<SpreadSheetRow,SpreadSheetRowContainerManager,SpreadSheetRowContainer> panel, MouseEvent e, JPopupMenu menu)
Returns a popup menu for the table of the container list.- Specified by:
customize
in classAbstractPlotPopupCustomizer<SpreadSheetRow,SpreadSheetRowContainerManager,SpreadSheetRowContainer>
- Parameters:
panel
- the affected panele
- the mouse eventmenu
- the popup menu to customize
-
-