|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
at.tuwien.ifs.commons.gui.controls.TitledCollapsiblePanel
at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractViewerControl
at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractSelectionPanel
at.tuwien.ifs.somtoolbox.apps.viewer.controls.GHSOMNavigationPanel
public class GHSOMNavigationPanel
A panel providing drill down and roll up features for a hierarchical growing som.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class at.tuwien.ifs.commons.gui.controls.TitledCollapsiblePanel |
---|
TitledCollapsiblePanel.Orientation |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
private static String |
AC_DRILL_DOWN
The zoom in action command. |
private static String |
AC_ROLL_UP
The zoom out action command. |
private JButton |
btDrillDown
The drill down JButton . |
private JButton |
btRollUp
The roll up JButton . |
private int |
currentLevel
the current viewed level |
private Unit |
currentUnit
The currently selected Unit . |
private static String |
LBL_DRILL_DOWN_BUTTON
The label for the zoom in button. |
private static String |
LBL_ROLL_UP_BUTTON
The label for the zoom out button. |
private Logger |
logger
The logger for this type. |
private Vector<SOMFrame> |
openedFrames
a vector containing all opened sub-frames |
private GHSOMHierarchyRoot |
rootLayer
|
private static long |
serialVersionUID
The serial id. |
private SOMPane |
somPane
Reference to the som pane. |
Fields inherited from class at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractSelectionPanel |
---|
absPathVectors, currentSelectionArea, itemListener, listScrollers, markedUnits, playlistmodels, playlists, selections, unitsInPlaylist |
Fields inherited from class at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractViewerControl |
---|
SMALL_INSETS, smallerFont, smallFont, state |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
GHSOMNavigationPanel(CommonSOMViewerStateData state,
SOMPane mapPane)
Constructor. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent ae)
|
private void |
addLayerFrame(GrowingLayer layer)
|
private void |
drillDown(Unit unit)
Drills down the underlying map of the specified Unit . |
int |
getCurrentLevel()
|
Dimension |
getMinimumSize()
|
private void |
initGUIElements()
Initializes the GUI elements. |
private boolean |
isDrillDownable(Unit unit)
Returns true if the specified unit has an underlying map and is therefore
drill-down-able. |
private boolean |
isRollUpable(GrowingLayer growingLayer)
Returns true if the current map is a child of a Unit . |
private void |
rollUp()
Rolls up to the parent of the current layer. |
void |
setCurrentLevel(int currentLevel)
|
void |
unitSelectionChanged(Object[] selection,
boolean newSelection)
called whenever the selection has changed, the new selection is added to the JList and to the list of the file's absolute pathnames |
Methods inherited from class at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractSelectionPanel |
---|
addListScrollPanels, addSingleListScrollPanel, addToList, addToList, clearList, getItemListener, getSelectedSongs, getSelectedSongs, markUnit, setItemListener, unmarkUnits, valueChanged |
Methods inherited from class at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractViewerControl |
---|
isFullFunctional, setIcon, setSelected, setVisible |
Methods inherited from class at.tuwien.ifs.commons.gui.controls.TitledCollapsiblePanel |
---|
add, add, add, add, add, getContentBackground, getContentBorder, getContentPane, getDecoratorPadding, getHorizontalTitleAlignment, getHorizontalTitleTextPosition, getIcon, getIconTitleGap, getLayout, getOrientation, getPreferredSize, getShowTitleDecoration, getTitle, getTitleBackground, getTitleBorder, isAnimated, isCollapsed, pack, remove, remove, removeAll, setAnimated, setCollapsed, setContentBackground, setContentBorder, setContentPane, setDecoratorPadding, setHorizontalTitleAlignment, setHorizontalTitleTextPosition, setIcon, setIconTitleGap, setLayout, setOrientation, setShowTitleDecoration, setTitle, setTitleBackground, setTitleBorder |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final String AC_DRILL_DOWN
private static final String AC_ROLL_UP
private static final String LBL_DRILL_DOWN_BUTTON
private static final String LBL_ROLL_UP_BUTTON
private static final long serialVersionUID
private JButton btDrillDown
JButton
.
private JButton btRollUp
JButton
.
private int currentLevel
private Unit currentUnit
Unit
.
private Logger logger
private Vector<SOMFrame> openedFrames
private GHSOMHierarchyRoot rootLayer
private SOMPane somPane
Constructor Detail |
---|
public GHSOMNavigationPanel(CommonSOMViewerStateData state, SOMPane mapPane)
state
- state.mapPane
- som map.Method Detail |
---|
public void actionPerformed(ActionEvent ae)
actionPerformed
in interface ActionListener
private void addLayerFrame(GrowingLayer layer)
private void drillDown(Unit unit)
Unit
.
unit
- the node to zoom into.public int getCurrentLevel()
public Dimension getMinimumSize()
getMinimumSize
in class JComponent
private void initGUIElements()
private boolean isDrillDownable(Unit unit)
true
if the specified unit
has an underlying map and is therefore
drill-down-able.
unit
- Unit
to check.
true
if drill-down-able, false
otherwhise.private boolean isRollUpable(GrowingLayer growingLayer)
true
if the current map is a child of a Unit
.
true
if roll up is possible, false
otherwise.private void rollUp()
public void setCurrentLevel(int currentLevel)
public void unitSelectionChanged(Object[] selection, boolean newSelection)
AbstractSelectionPanel
unitSelectionChanged
in interface UnitSelectionListener
unitSelectionChanged
in class AbstractSelectionPanel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |