|
|||||||||
| 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
com.touchgraph.graphlayout.GLPanel
public class GLPanel
GLPanel contains code for adding scrollbars and interfaces to the TGPanel The "GL" prefix indicates that this class is GraphLayout specific, and will probably need to be rewritten for other applications.
| Nested Class Summary |
|---|
| 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.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
JPopupMenu |
glPopup
|
HVScroll |
hvScroll
|
HyperScroll |
hyperScroll
|
String |
localityLabel
|
LocalityScroll |
localityScroll
|
String |
rotateLabel
|
RotateScroll |
rotateScroll
|
Hashtable |
scrollBarHash
|
protected TGLensSet |
tgLensSet
|
protected TGPanel |
tgPanel
|
protected TGUIManager |
tgUIManager
|
String |
zoomLabel
|
ZoomScroll |
zoomScroll
|
| 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 | |
|---|---|
GLPanel()
Default constructor. |
|
GLPanel(Color color)
Constructor with a Color to be used for UI background. |
|
| Method Summary | |
|---|---|
void |
addUIs()
|
void |
buildLens()
|
void |
buildPanel()
|
JPopupMenu |
getGLPopup()
Deprecated. use getPopupMenu() instead. |
HVScroll |
getHVScroll()
Return the HVScroll used with this GLPanel. |
int |
getHyperbolicDistortion()
Return the hyperbolic (aka "fisheye") distortion of this TGScrollPane. |
HyperScroll |
getHyperScroll()
Return the HyperScroll used with this GLPanel. |
int |
getLocalityRadius()
Return the locality radius of this GLPanel. |
LocalityScroll |
getLocalityScroll()
Return the LocalityScroll used with this GLPanel. |
Point |
getOffset()
Return the horizontal and vertical offset position as a Point. |
JPopupMenu |
getPopupMenu()
Return the JPopupMenu used to toggle display of the controls. |
RotateScroll |
getRotateScroll()
Return the RotateScroll used with this GLPanel. |
int |
getRotationAngle()
Return the rotation angle of this GLPanel. |
TGPanel |
getTGPanel()
Return the TGPanel used with this GLPanel. |
ZoomScroll |
getZoomScroll()
Return the ZoomScroll used with this GLPanel. |
int |
getZoomValue()
Return the zoom value of this GLPanel. |
void |
initialize()
Initialize panel, lens, and establish a random graph as a demonstration. |
void |
keyPressed(KeyEvent event)
An action method indicating a key event has occurred. |
static void |
main(String[] args)
|
void |
nodeClicked(Node node,
MouseEvent e)
An action method that indicates that the Node node has been clicked. |
void |
nodeDoubleClicked(Node node,
MouseEvent e)
An action method that indicates that the Node node has been double-clicked. |
void |
randomGraph()
|
protected JPanel |
scrollSelectPanel(String[] scrollBarNames)
|
void |
setHyperbolicDistortion(int value)
Set the hyperbolic (aka "fisheye") distortion of this TGScrollPane (allowable values between 0 to 108). |
void |
setLocalityRadius(int radius)
Set the locality radius of this TGScrollPane (allowable values between 0 to 4, or LocalityUtils.INFINITE_LOCALITY_RADIUS). |
void |
setOffset(Point p)
Sets the horizontal offset to p.x, and the vertical offset to p.y given a Point p. |
void |
setRotationAngle(int angle)
Set the rotation angle of this GLPanel (allowable values between 0 to 359). |
void |
setZoomValue(int zoomValue)
Set the zoom value of this GLPanel (allowable values between -100 to 100). |
| 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 |
|---|
public String zoomLabel
public String rotateLabel
public String localityLabel
public HVScroll hvScroll
public ZoomScroll zoomScroll
public HyperScroll hyperScroll
public RotateScroll rotateScroll
public LocalityScroll localityScroll
public JPopupMenu glPopup
public Hashtable scrollBarHash
protected TGPanel tgPanel
protected TGLensSet tgLensSet
protected TGUIManager tgUIManager
| Constructor Detail |
|---|
public GLPanel()
public GLPanel(Color color)
| Method Detail |
|---|
public void initialize()
public TGPanel getTGPanel()
getTGPanel in interface TGScrollPanepublic void keyPressed(KeyEvent event)
keyPressed in interface TGScrollPane
public void nodeClicked(Node node,
MouseEvent e)
nodeClicked in interface TGScrollPane
public void nodeDoubleClicked(Node node,
MouseEvent e)
nodeDoubleClicked in interface TGScrollPanepublic HVScroll getHVScroll()
getHVScroll in interface TGScrollPanepublic void setOffset(Point p)
setOffset in interface TGScrollPanepublic Point getOffset()
getOffset in interface TGScrollPanepublic ZoomScroll getZoomScroll()
getZoomScroll in interface TGScrollPanepublic void setZoomValue(int zoomValue)
setZoomValue in interface TGScrollPanepublic int getZoomValue()
getZoomValue in interface TGScrollPanepublic RotateScroll getRotateScroll()
getRotateScroll in interface TGScrollPanepublic void setRotationAngle(int angle)
setRotationAngle in interface TGScrollPanepublic int getRotationAngle()
getRotationAngle in interface TGScrollPanepublic LocalityScroll getLocalityScroll()
getLocalityScroll in interface TGScrollPanepublic void setLocalityRadius(int radius)
setLocalityRadius in interface TGScrollPanepublic int getLocalityRadius()
getLocalityRadius in interface TGScrollPanepublic HyperScroll getHyperScroll()
getHyperScroll in interface TGScrollPanepublic void setHyperbolicDistortion(int value)
setHyperbolicDistortion in interface TGScrollPanepublic int getHyperbolicDistortion()
getHyperbolicDistortion in interface TGScrollPanepublic JPopupMenu getPopupMenu()
getPopupMenu in interface TGScrollPanepublic JPopupMenu getGLPopup()
public void buildLens()
public void buildPanel()
protected JPanel scrollSelectPanel(String[] scrollBarNames)
public void addUIs()
public void randomGraph()
throws TGException
TGExceptionpublic static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||