|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.treemap.DefaultTreeMapController<N>
public class DefaultTreeMapController<N>
Default controller mediating user interactions with a TreeMapView. It currently supports selection, zooming, panning and drilling.
| Nested Class Summary | |
|---|---|
static class |
DefaultTreeMapController.Mode
Interaction mode. |
| Field Summary | |
|---|---|
protected TreeMapView<N> |
_view
|
| Constructor Summary | |
|---|---|
DefaultTreeMapController()
|
|
DefaultTreeMapController(TreeMapView<N> view)
|
|
| Method Summary | |
|---|---|
protected Component |
createPopupMenuEntry(N node,
int c)
|
JPopupMenu |
getPopupMenu()
|
boolean |
isImprovedBorderZooming()
|
boolean |
isMultipleSelectionEnabled()
|
boolean |
isSelectOnPopupTrigger()
|
void |
setImprovedBorderZooming(boolean improvedBorderZooming)
Enabling it will make use of the DefaultTreeMapController.zoomingCenterFunction() to correct the focus point of the zoom. |
void |
setMultipleSelectionEnabled(boolean multipleSelectionEnabled)
|
void |
setPopupMenu(JPopupMenu popupMenu)
|
void |
setSelectOnPopupTrigger(boolean selectOnPopupTrigger)
Defines whether selection will occur prior to the display of the context menu. |
void |
setView(TreeMapView<N> view)
Replace the view currently under control. |
protected double |
zoomingCenterFunction(double center)
Currently returns Math.tanh(x * 3). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TreeMapView<N> _view
| Constructor Detail |
|---|
public DefaultTreeMapController()
public DefaultTreeMapController(TreeMapView<N> view)
| Method Detail |
|---|
protected double zoomingCenterFunction(double center)
Math.tanh(x * 3). Can be overridden to use other (e.g. logistic) function.
center - the center within a normalized (-1..1) range
public void setView(TreeMapView<N> view)
setView in interface TreeMapController<N>view - the TreeMapView to use
protected Component createPopupMenuEntry(N node,
int c)
public boolean isMultipleSelectionEnabled()
public void setMultipleSelectionEnabled(boolean multipleSelectionEnabled)
public boolean isSelectOnPopupTrigger()
public void setSelectOnPopupTrigger(boolean selectOnPopupTrigger)
selectOnPopupTrigger - true if selection should occur, false otherwisepublic JPopupMenu getPopupMenu()
public void setPopupMenu(JPopupMenu popupMenu)
public boolean isImprovedBorderZooming()
public void setImprovedBorderZooming(boolean improvedBorderZooming)
improvedBorderZooming - true to enable customized zooming function, false otherwise.
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||