public class ChooseTrackVisibilityAction extends javax.swing.AbstractAction
Modifier and Type | Class and Description |
---|---|
private static class |
ChooseTrackVisibilityAction.GpxTrackTable |
private static class |
ChooseTrackVisibilityAction.LengthContentComparator
Comparator for TrackLength objects
|
private static class |
ChooseTrackVisibilityAction.TrackLength
Class to format a length according to SystemOfMesurement.
|
Modifier and Type | Field and Description |
---|---|
private DateFilterPanel |
dateFilter |
private GpxLayer |
layer |
private boolean |
noUpdates |
private javax.swing.JTable |
table |
Constructor and Description |
---|
ChooseTrackVisibilityAction(GpxLayer layer)
Constructs a new
ChooseTrackVisibilityAction . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae) |
private static javax.swing.JTable |
buildTable(java.lang.Object[]... content)
Builds an editable table whose 5th column will open a browser when double clicked.
|
private java.lang.Object[][] |
buildTableContents()
Gathers all available data for the tracks and returns them as array of arrays
in the expected column order.
|
private void |
listenToSelectionChanges()
listens to selection changes in the table and redraws the map
|
private void |
selectVisibleTracksInTable()
selects all rows (=tracks) in the table that are currently visible on the layer
|
private void |
showColorDialog(java.util.List<IGpxTrack> tracks) |
private void |
updateVisibilityFromTable() |
private DateFilterPanel dateFilter
private javax.swing.JTable table
private boolean noUpdates
public ChooseTrackVisibilityAction(GpxLayer layer)
ChooseTrackVisibilityAction
.layer
- The associated GPX layerprivate java.lang.Object[][] buildTableContents()
private void showColorDialog(java.util.List<IGpxTrack> tracks)
private static javax.swing.JTable buildTable(java.lang.Object[]... content)
content
- table dataprivate void selectVisibleTracksInTable()
private void listenToSelectionChanges()
private void updateVisibilityFromTable()
public void actionPerformed(java.awt.event.ActionEvent ae)