com.touchgraph.graphlayout.interaction
Class HVScroll
java.lang.Object
com.touchgraph.graphlayout.interaction.HVScroll
- All Implemented Interfaces:
- java.util.EventListener, GraphListener
- public class HVScroll
- extends java.lang.Object
- implements GraphListener
HVScroll: Allows for scrolling horizontaly+vertically. This can be
done in all sorts of ways, for instance by using the scrollbars, or by
dragging.
This code is more complex then it would seem it should be, because scrolling
has to be independent of the screen being warped by lenses. HVScroll needs
to use the tgLensSet object because the offset is recorded in real coordinates, while
the user interacts with the drawn coordinates.
- Version:
- 1.21 $Id: HVScroll.java,v 1.1.1.1 2004/02/06 08:44:07 keesj Exp $
- Author:
- Alexander Shapiro
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scrolling
public boolean scrolling
HVScroll
public HVScroll(TGPanel tgp,
TGLensSet tgls)
- Constructor with a TGPanel tgp and TGLensSet tgls.
getHorizontalSB
public javax.swing.JScrollBar getHorizontalSB()
getVerticalSB
public javax.swing.JScrollBar getVerticalSB()
getHVDragUI
public com.touchgraph.graphlayout.interaction.HVScroll.HVDragUI getHVDragUI()
getLens
public com.touchgraph.graphlayout.interaction.HVScroll.HVLens getLens()
getHVScrollToCenterUI
public TGAbstractClickUI getHVScrollToCenterUI()
getTopLeftDraw
public TGPoint2D getTopLeftDraw()
getBottomRightDraw
public TGPoint2D getBottomRightDraw()
getDrawCenter
public TGPoint2D getDrawCenter()
graphMoved
public void graphMoved()
- Specified by:
graphMoved
in interface GraphListener
graphReset
public void graphReset()
- Specified by:
graphReset
in interface GraphListener
setOffset
public void setOffset(java.awt.Point p)
getOffset
public java.awt.Point getOffset()
scrollAtoB
public void scrollAtoB(TGPoint2D drawFrom,
TGPoint2D drawTo)
scrollToCenter
public void scrollToCenter(Node n)
slowScrollToCenter
public void slowScrollToCenter(Node n)
Copyright © 2003-2004 SourceForge. All Rights Reserved.