com.hp.hpl.guess.tg
Class TGDisplay

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bycom.touchgraph.graphlayout.GLPanel
                  extended bycom.hp.hpl.guess.tg.TGDisplay
All Implemented Interfaces:
Accessible, FrameListener, ImageObserver, MenuContainer, Serializable

public class TGDisplay
extends com.touchgraph.graphlayout.GLPanel
implements FrameListener

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.touchgraph.graphlayout.GLPanel
glPopup, hvScroll, hyperLabel, hyperScroll, localityLabel, localityScroll, rotateLabel, rotateScroll, scrollBarHash, zoomLabel, zoomScroll
 
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
TGDisplay()
          Default constructor.
 
Method Summary
 void center()
           
 void center(Object o)
           
 void exportCGM(String filename)
           
 void exportEMF(String filename)
           
 void exportEPS(String filename)
           
 void exportGIF(String filename)
           
 void exportJAVA(String filename)
           
 void exportJPG(String filename)
           
 void exportPDF(String filename)
           
 void exportPNG(String filename)
           
 void exportPS(String filename)
           
 void exportSVG(String filename)
           
 void exportSWF(String filename)
           
 Color getDisplayBackground()
           
 BufferedImage getFullImage()
           
 void randomGraph()
           
 void removeBackgroundImage()
           
 void repaint()
           
 void setBackgroundImage(String filename)
           
 void setBackgroundImage(String filename, double x, double y)
           
 void setDisplayBackground(Color c)
           
 void setFrozen(boolean state)
           
 
Methods inherited from class com.touchgraph.graphlayout.GLPanel
addUIs, buildLens, buildPanel, getGLPopup, getHVScroll, getHyperScroll, getLocalityRadius, getLocalityScroll, getOffset, getRotateScroll, getRotationAngle, getTGPanel, getZoomScroll, getZoomValue, initialize, main, setLocalityRadius, setOffset, setRotationAngle, setZoomValue
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TGDisplay

public TGDisplay()
Default constructor.

Method Detail

randomGraph

public void randomGraph()
                 throws com.touchgraph.graphlayout.TGException
Throws:
com.touchgraph.graphlayout.TGException

center

public void center()
Specified by:
center in interface FrameListener

center

public void center(Object o)
Specified by:
center in interface FrameListener

repaint

public void repaint()
Specified by:
repaint in interface FrameListener

setFrozen

public void setFrozen(boolean state)
Specified by:
setFrozen in interface FrameListener

exportGIF

public void exportGIF(String filename)
Specified by:
exportGIF in interface FrameListener

exportJPG

public void exportJPG(String filename)
Specified by:
exportJPG in interface FrameListener

exportPDF

public void exportPDF(String filename)
Specified by:
exportPDF in interface FrameListener

exportPS

public void exportPS(String filename)
Specified by:
exportPS in interface FrameListener

exportEPS

public void exportEPS(String filename)
Specified by:
exportEPS in interface FrameListener

exportSVG

public void exportSVG(String filename)
Specified by:
exportSVG in interface FrameListener

exportSWF

public void exportSWF(String filename)
Specified by:
exportSWF in interface FrameListener

exportJAVA

public void exportJAVA(String filename)
Specified by:
exportJAVA in interface FrameListener

exportCGM

public void exportCGM(String filename)
Specified by:
exportCGM in interface FrameListener

exportEMF

public void exportEMF(String filename)
Specified by:
exportEMF in interface FrameListener

exportPNG

public void exportPNG(String filename)
Specified by:
exportPNG in interface FrameListener

getDisplayBackground

public Color getDisplayBackground()
Specified by:
getDisplayBackground in interface FrameListener

setDisplayBackground

public void setDisplayBackground(Color c)
Specified by:
setDisplayBackground in interface FrameListener

setBackgroundImage

public void setBackgroundImage(String filename)
Specified by:
setBackgroundImage in interface FrameListener

setBackgroundImage

public void setBackgroundImage(String filename,
                               double x,
                               double y)
Specified by:
setBackgroundImage in interface FrameListener

removeBackgroundImage

public void removeBackgroundImage()
Specified by:
removeBackgroundImage in interface FrameListener

getFullImage

public BufferedImage getFullImage()
Specified by:
getFullImage in interface FrameListener