Gridarta Editor
net.sf.gridarta.gui.mapmenu.AutoscrollJTree Class Reference

A JTree that supports auto-scrolling while drag and drop is active. More...

+ Inheritance diagram for net.sf.gridarta.gui.mapmenu.AutoscrollJTree:
+ Collaboration diagram for net.sf.gridarta.gui.mapmenu.AutoscrollJTree:

Public Member Functions

void autoscroll (@NotNull final Point cursorLocn)
 
 AutoscrollJTree (@NotNull final TreeModel treeModel)
 Creates a new instance. More...
 
Insets getAutoscrollInsets ()
 

Private Member Functions

JViewport getViewport ()
 Returns the parent JViewport component. More...
 

Static Private Attributes

static final int BORDER_SIZE = 12
 The active border size. More...
 
static final long serialVersionUID = 1L
 The serial version UID. More...
 

Detailed Description

A JTree that supports auto-scrolling while drag and drop is active.

Author
Andreas Kirschbaum

Definition at line 39 of file AutoscrollJTree.java.

Constructor & Destructor Documentation

◆ AutoscrollJTree()

net.sf.gridarta.gui.mapmenu.AutoscrollJTree.AutoscrollJTree ( @NotNull final TreeModel  treeModel)

Creates a new instance.

Parameters
treeModelthe tree's model

Definition at line 55 of file AutoscrollJTree.java.

Member Function Documentation

◆ autoscroll()

void net.sf.gridarta.gui.mapmenu.AutoscrollJTree.autoscroll ( @NotNull final Point  cursorLocn)

◆ getAutoscrollInsets()

Insets net.sf.gridarta.gui.mapmenu.AutoscrollJTree.getAutoscrollInsets ( )

Definition at line 61 of file AutoscrollJTree.java.

References net.sf.gridarta.gui.mapmenu.AutoscrollJTree.getViewport().

Referenced by net.sf.gridarta.gui.mapmenu.AutoscrollJTree.autoscroll().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getViewport()

JViewport net.sf.gridarta.gui.mapmenu.AutoscrollJTree.getViewport ( )
private

Returns the parent JViewport component.

Returns
the parent or
null

Definition at line 103 of file AutoscrollJTree.java.

Referenced by net.sf.gridarta.gui.mapmenu.AutoscrollJTree.autoscroll(), and net.sf.gridarta.gui.mapmenu.AutoscrollJTree.getAutoscrollInsets().

+ Here is the caller graph for this function:

Member Data Documentation

◆ BORDER_SIZE

final int net.sf.gridarta.gui.mapmenu.AutoscrollJTree.BORDER_SIZE = 12
staticprivate

The active border size.

Definition at line 49 of file AutoscrollJTree.java.

◆ serialVersionUID

final long net.sf.gridarta.gui.mapmenu.AutoscrollJTree.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 44 of file AutoscrollJTree.java.


The documentation for this class was generated from the following file: