|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel edu.uci.ics.jung.visualization.BasicVisualizationServer<V,E> edu.uci.ics.jung.visualization.VisualizationViewer<State<T>,Step<T>> cz.cuni.mff.ksi.jinfer.autoeditor.automatonvisualizer.Visualizer<T>
public class Visualizer<T>
Base class for visualization of Automaton
extending JUNG
VisualizationViewer
with support of saving as images.
This class does not handle layout of vertices. It is provided by Layout
,
instance of which has to be specified in construction.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.uci.ics.jung.visualization.VisualizationViewer |
---|
edu.uci.ics.jung.visualization.VisualizationViewer.GraphMouse |
Nested classes/interfaces inherited from class edu.uci.ics.jung.visualization.BasicVisualizationServer |
---|
edu.uci.ics.jung.visualization.BasicVisualizationServer.VisualizationListener |
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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Nested classes/interfaces inherited from interface edu.uci.ics.jung.visualization.VisualizationServer |
---|
edu.uci.ics.jung.visualization.VisualizationServer.Paintable |
Field Summary |
---|
Fields inherited from class edu.uci.ics.jung.visualization.VisualizationViewer |
---|
edgeToolTipTransformer, graphMouse, mouseEventToolTipTransformer, requestFocusListener, vertexToolTipTransformer |
Fields inherited from class edu.uci.ics.jung.visualization.BasicVisualizationServer |
---|
changeSupport, doubleBuffered, model, offscreen, offscreenG2d, pickedEdgeState, pickedVertexState, pickEventListener, postRenderers, preRenderers, renderContext, renderer, renderingHints |
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 | |
---|---|
Visualizer(edu.uci.ics.jung.algorithms.layout.Layout<State<T>,Step<T>> layout)
Constructs instance with specified Layout . |
Method Summary | |
---|---|
Set<String> |
getSupportedImageFormatNames()
Retrieves set of all image format names supported by saveImage(java.io.File, java.lang.String) . |
void |
saveImage(File file,
String formatName)
Saves this visual representation as image and store it in file. |
Methods inherited from class edu.uci.ics.jung.visualization.VisualizationViewer |
---|
addGraphMouseListener, addKeyListener, getGraphMouse, getToolTipText, setEdgeToolTipTransformer, setGraphMouse, setMouseEventToolTipTransformer, setVertexToolTipTransformer |
Methods inherited from class edu.uci.ics.jung.visualization.BasicVisualizationServer |
---|
addChangeListener, addPostRenderPaintable, addPreRenderPaintable, checkOffscreenImage, fireStateChanged, getCenter, getChangeListeners, getGraphLayout, getModel, getPickedEdgeState, getPickedVertexState, getPickSupport, getRenderContext, getRenderer, getRenderingHints, getSize, isDoubleBuffered, paintComponent, prependPostRenderPaintable, prependPreRenderPaintable, removeChangeListener, removePostRenderPaintable, removePreRenderPaintable, renderGraph, scaleToLayout, setDoubleBuffered, setGraphLayout, setModel, setPickedEdgeState, setPickedVertexState, setPickSupport, setRenderContext, setRenderer, setRenderingHints, setVisible, stateChanged |
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 |
Methods inherited from interface edu.uci.ics.jung.visualization.VisualizationServer |
---|
repaint |
Constructor Detail |
---|
public Visualizer(edu.uci.ics.jung.algorithms.layout.Layout<State<T>,Step<T>> layout)
Layout
.
layout
- Layout instance.Method Detail |
---|
public void saveImage(File file, String formatName) throws IOException
file
- File to store the image.formatName
- Name of format of the image. See getSupportedImageFormatNames()
.
IOException
- Saving to file failed.public Set<String> getSupportedImageFormatNames()
saveImage(java.io.File, java.lang.String)
.
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |