public class View
extends javax.swing.JPanel
implements java.awt.print.Printable
Modifier and Type | Class and Description |
---|---|
static class |
View.LayerType |
static class |
View.LensType
Lens type
|
static class |
View.NodeMode
Node modes
|
(package private) static class |
View.PickWithIconListener
Selected node marker
|
private static class |
View.ToDos
Status class used as list of things to do
|
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
java.awt.Image |
backImage
Background image
|
private EdgeIndexOffsetFunctionsImpl<GNode,GEdge> |
edgeFunctions
Edge index + offset functions
|
static boolean |
enhancedIconPaintingForVertex
Render with enhanced icons for vertices
|
private IMutableFilter<HasId> |
filter
Filter
|
static boolean |
frameView
Tooltip with score tags
|
private static java.awt.Color |
frameViewColor
Frame colors
|
private static java.awt.Color |
frameViewColor1 |
private static java.awt.Color |
frameViewColor2 |
private edu.uci.ics.jung.visualization.GraphZoomScrollPane |
graphZoomScrollPane
Scroll pane, if any
|
private edu.uci.ics.jung.visualization.transform.AbstractLensSupport<GNode,GEdge> |
lensSupport
Lens support
|
private Model |
model
Data model
|
private java.util.HashMap<GNode,javax.swing.Icon> |
nodeIconCache
Node to icon map cache
|
java.awt.Image |
nodeImage
Node default image
|
static boolean |
outlineVertexIcons
Outline vertex shapes
|
private IPalette<HasId> |
palette
Palette
|
private SubGraph.PartitionMode |
partitionMode
Partition modes
|
private static java.awt.Color |
selectedColor
Selected color
|
private static long |
serialVersionUID |
protected Settings |
settings
Settings
|
static boolean |
tooltipWithScores
Tooltip with score tags
|
private edu.uci.ics.jung.visualization.VisualizationViewer<GNode,GEdge> |
visualizationViewer
Visualization viewer
|
private static double |
zoominFactor
Zoomin/out factors
|
private static double |
zoomoutFactor |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
View(Settings settings,
IMutableFilter<HasId> filter,
IPalette<HasId> palette)
Construct
|
Modifier and Type | Method and Description |
---|---|
void |
addMenuToCorner(javax.swing.JMenu menu)
Add menu to GraphZoomScrollPane if any
|
void |
animateToNewLayout(edu.uci.ics.jung.algorithms.layout.Layout<GNode,GEdge> layout0,
edu.uci.ics.jung.algorithms.layout.Layout<GNode,GEdge> layout1)
Animate from that layout to this
|
void |
applyEdgeFilterEnable(boolean flag)
Apply filtering
|
void |
applyEdgeShape(java.lang.Class<? extends edu.uci.ics.jung.visualization.decorators.AbstractEdgeShapeTransformer<GNode,GEdge>> edgeShapeClass) |
void |
applyFilter(IMutableFilter<HasId> relationFilter)
Apply grammatical relation filter
|
void |
applyFilter(java.lang.String id,
java.lang.Boolean value)
Apply filter name-value pair
|
private void |
applyLayout(boolean layout1,
boolean layout2)
Apply layout as per settings values
|
void |
applyLayout(java.lang.Class<? extends edu.uci.ics.jung.algorithms.layout.Layout> layoutClass) |
void |
applyLens(View.LensType lensType)
Apply lens
|
void |
applyModel()
Apply model
|
void |
applyMouseMode(edu.uci.ics.jung.visualization.control.ModalGraphMouse.Mode mode)
Apply mouse mode
|
void |
applyNodeMode(View.NodeMode mode)
Apply node mode
|
void |
applyPartitionMode(SubGraph.PartitionMode mode0) |
void |
applyResetTransforms(edu.uci.ics.jung.visualization.Layer layer,
boolean scaleDown) |
void |
applySetting(Settings.Setting setting,
java.lang.Object value)
Apply setting
|
void |
applySettings(java.util.HashMap<Settings.Setting,java.lang.Object> diffs)
Apply settings
|
void |
applySubLayouts(java.lang.Class<? extends edu.uci.ics.jung.algorithms.layout.Layout> layoutClass1,
java.lang.Class<? extends edu.uci.ics.jung.algorithms.layout.Layout> layoutClass2) |
private void |
applySubLayouts(edu.uci.ics.jung.graph.util.Pair<edu.uci.ics.jung.graph.Graph<GNode,GEdge>> subGraphs,
java.lang.Class<? extends edu.uci.ics.jung.algorithms.layout.Layout> layoutClass1,
java.lang.Class<? extends edu.uci.ics.jung.algorithms.layout.Layout> layoutClass2)
Apply sub layouts to subgraphs
|
private boolean |
changeSetting(Settings.Setting setting,
java.lang.Object value,
View.ToDos toDos)
Change setting
|
private static java.net.URL |
getBase(java.lang.String base0)
Get document base Url
|
private java.awt.image.BufferedImage |
getBufferedImage()
Get empty buffered image of viewer's dimension
|
IMutableFilter<HasId> |
getFilter()
Get grammatical relation filter
|
edu.uci.ics.jung.algorithms.layout.Layout<GNode,GEdge> |
getGraphLayout()
Get graph layout
|
java.awt.image.BufferedImage |
getImage()
Get image of viewer
|
private static java.awt.Image |
getImage(java.lang.String urlString)
Make image from Url
|
static java.net.URL |
getImagesBase(java.lang.String imageBase0,
java.lang.String base0)
Get image base Url
|
Model |
getModel()
Get data model
|
java.util.Set<GEdge> |
getSelectedEdges()
Get selected edges
|
java.util.Set<GNode> |
getSelectedNodes()
Get selected nodes
|
Settings |
getSettings()
Get settings
|
protected static double |
getTextWidth(java.lang.String text,
java.awt.Font font)
Get text dimensions
|
edu.uci.ics.jung.visualization.VisualizationViewer<GNode,GEdge> |
getVisualizationViewer()
Get visualization viewer
|
private void |
initialize()
Initialize view
|
void |
lockLayout(boolean flag)
Lock or unlock layout
|
protected javax.swing.JComponent |
make()
Make view component
|
protected edu.uci.ics.jung.algorithms.layout.AggregateLayout<GNode,GEdge> |
makeAggregateLayout(edu.uci.ics.jung.graph.util.Pair<edu.uci.ics.jung.graph.Graph<GNode,GEdge>> subGraphs,
edu.uci.ics.jung.graph.util.Pair<java.awt.Rectangle> spaces,
edu.uci.ics.jung.algorithms.layout.Layout<GNode,GEdge> delegateLayout)
Make aggregate layout
|
protected edu.uci.ics.jung.algorithms.layout.AggregateLayout<GNode,GEdge> |
makeAggregateLayout(edu.uci.ics.jung.graph.util.Pair<edu.uci.ics.jung.graph.Graph<GNode,GEdge>> subGraphs,
edu.uci.ics.jung.graph.util.Pair<java.awt.Rectangle> spaces,
edu.uci.ics.jung.algorithms.layout.Layout<GNode,GEdge> layout0,
java.lang.Class<? extends edu.uci.ics.jung.algorithms.layout.Layout> layoutClass01,
java.lang.Class<? extends edu.uci.ics.jung.algorithms.layout.Layout> layoutClass02)
Make aggregate layout
|
protected java.awt.image.BufferedImage |
makeBufferedImage(GNode node)
Make buffered image to represent this node
|
protected org.apache.commons.collections15.Predicate<edu.uci.ics.jung.graph.util.Context<edu.uci.ics.jung.graph.Graph<GNode,GEdge>,GEdge>> |
makeEdgeIncludePredicate()
Make edge include predicate
|
protected edu.uci.ics.jung.visualization.decorators.AbstractEdgeShapeTransformer<GNode,GEdge> |
makeEdgeShapeInstance(java.lang.Class<? extends edu.uci.ics.jung.visualization.decorators.AbstractEdgeShapeTransformer> edgeShapeClass)
Make edge shape dynamically
|
protected edu.uci.ics.jung.algorithms.layout.Layout<GNode,GEdge> |
makeLayout(Model model,
java.awt.Dimension layoutDimension)
Make layout from model
|
protected edu.uci.ics.jung.algorithms.layout.AbstractLayout<GNode,GEdge> |
makeLayoutInstance(java.lang.Class<? extends edu.uci.ics.jung.algorithms.layout.Layout> layoutClass,
edu.uci.ics.jung.graph.Graph<GNode,GEdge> graph)
Dynamically create layout instance
|
protected edu.uci.ics.jung.visualization.transform.AbstractLensSupport<GNode,GEdge> |
makeLensSupport(View.LensType lensType)
Make lens support
|
private static java.lang.String |
makeToolTipText()
Make tooltip text
|
protected VertexWeightFunction<GNode> |
makeVertexWeightFunction()
Make vertex weight function
|
protected edu.uci.ics.jung.visualization.VisualizationViewer<GNode,GEdge> |
makeViewer()
Make viewer
|
protected edu.uci.ics.jung.visualization.VisualizationModel<GNode,GEdge> |
makeViewModel(Model model,
java.awt.Dimension layoutDimension)
Make view model
|
void |
pick(GEdge edge)
Pick edge
|
void |
pick(GNode node)
Pick node
|
int |
print(java.awt.Graphics graphics,
java.awt.print.PageFormat pageFormat,
int pageIndex) |
private void |
refresh(View.ToDos toDos)
Refresh
|
protected void |
resized(java.awt.Dimension viewSize)
Resize layout
|
protected void |
resizeLayout(java.awt.Dimension size)
Resize layout
|
protected void |
resizeLayout(double scaleX,
double scaleY)
Resize layout
|
void |
resizeToView()
Resize layout to view
|
void |
scaleDownLayout()
Scale down layout to avoid laying out of nodes on borders
|
void |
set(Graph<GraphNode,GraphEdge> graph,
GraphDecorator<GNode,GEdge> graphDecorator,
boolean lemmatize)
Set data model
|
void |
setEdgeShape(java.lang.Class<? extends edu.uci.ics.jung.visualization.decorators.AbstractEdgeShapeTransformer> edgeShapeClass)
Set edge shape
|
private static void |
setSettingsExternal(Settings settings)
Set settings
|
void |
test() |
private static java.lang.String |
toString(java.awt.geom.AffineTransform transform)
Stringify affine transform
|
private static java.lang.String |
toString(edu.uci.ics.jung.visualization.MultiLayerTransformer multiLayerTransformer)
Stringify multilayer transformer
|
private java.lang.String |
transformsToString()
Multilayer transformer to string
|
void |
unpickEdge()
Unpick currently picked edge
|
void |
unpickNode()
Unpick currently picked node
|
void |
zoomIn()
Zoom in layout
|
void |
zoomOut()
Zoom out layout
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
private static final long serialVersionUID
private Model model
private IMutableFilter<HasId> filter
protected final Settings settings
private edu.uci.ics.jung.visualization.VisualizationViewer<GNode,GEdge> visualizationViewer
private edu.uci.ics.jung.visualization.GraphZoomScrollPane graphZoomScrollPane
public java.awt.Image backImage
public java.awt.Image nodeImage
private final java.util.HashMap<GNode,javax.swing.Icon> nodeIconCache
private final EdgeIndexOffsetFunctionsImpl<GNode,GEdge> edgeFunctions
private edu.uci.ics.jung.visualization.transform.AbstractLensSupport<GNode,GEdge> lensSupport
private SubGraph.PartitionMode partitionMode
public static final boolean enhancedIconPaintingForVertex
public static boolean outlineVertexIcons
public static boolean tooltipWithScores
public static boolean frameView
private static final java.awt.Color selectedColor
private static final java.awt.Color frameViewColor
private static final java.awt.Color frameViewColor1
private static final java.awt.Color frameViewColor2
private static final double zoominFactor
private static final double zoomoutFactor
public View(Settings settings, IMutableFilter<HasId> filter, IPalette<HasId> palette)
settings
- settingsfilter
- filterpalette
- paletteprivate void initialize()
protected javax.swing.JComponent make()
public void set(Graph<GraphNode,GraphEdge> graph, GraphDecorator<GNode,GEdge> graphDecorator, boolean lemmatize)
graph
- semantic graphgraphDecorator
- graph decoratorlemmatize
- whether to lemmatize nodespublic Model getModel()
private static java.awt.Image getImage(java.lang.String urlString)
urlString
- url stringpublic static java.net.URL getImagesBase(java.lang.String imageBase0, java.lang.String base0)
imageBase0
- image base Url stringbase0
- document base Url stringprivate static java.net.URL getBase(java.lang.String base0)
base0
- document base Url stringpublic Settings getSettings()
public void applyModel()
public void applyLayout(java.lang.Class<? extends edu.uci.ics.jung.algorithms.layout.Layout> layoutClass)
private void applyLayout(boolean layout1, boolean layout2)
layout1
- whether to apply sublayout1layout2
- whether to apply sublayout1public edu.uci.ics.jung.algorithms.layout.Layout<GNode,GEdge> getGraphLayout()
protected edu.uci.ics.jung.algorithms.layout.Layout<GNode,GEdge> makeLayout(Model model, java.awt.Dimension layoutDimension)
model
- modellayoutDimension
- layout dimensionprotected edu.uci.ics.jung.algorithms.layout.AbstractLayout<GNode,GEdge> makeLayoutInstance(java.lang.Class<? extends edu.uci.ics.jung.algorithms.layout.Layout> layoutClass, edu.uci.ics.jung.graph.Graph<GNode,GEdge> graph)
layoutClass
- layout classgraph
- graphpublic void animateToNewLayout(edu.uci.ics.jung.algorithms.layout.Layout<GNode,GEdge> layout0, edu.uci.ics.jung.algorithms.layout.Layout<GNode,GEdge> layout1)
layout0
- old layoutlayout1
- new layoutpublic void lockLayout(boolean flag)
flag
- whether to lock or unlockpublic void applySubLayouts(java.lang.Class<? extends edu.uci.ics.jung.algorithms.layout.Layout> layoutClass1, java.lang.Class<? extends edu.uci.ics.jung.algorithms.layout.Layout> layoutClass2)
private void applySubLayouts(edu.uci.ics.jung.graph.util.Pair<edu.uci.ics.jung.graph.Graph<GNode,GEdge>> subGraphs, java.lang.Class<? extends edu.uci.ics.jung.algorithms.layout.Layout> layoutClass1, java.lang.Class<? extends edu.uci.ics.jung.algorithms.layout.Layout> layoutClass2)
subGraphs
- pair of subgraphslayoutClass1
- sublayout1 classlayoutClass2
- sublayout2 classprotected edu.uci.ics.jung.algorithms.layout.AggregateLayout<GNode,GEdge> makeAggregateLayout(edu.uci.ics.jung.graph.util.Pair<edu.uci.ics.jung.graph.Graph<GNode,GEdge>> subGraphs, edu.uci.ics.jung.graph.util.Pair<java.awt.Rectangle> spaces, edu.uci.ics.jung.algorithms.layout.Layout<GNode,GEdge> delegateLayout)
subGraphs
- subgraphsspaces
- subspacesdelegateLayout
- delegate layoutprotected edu.uci.ics.jung.algorithms.layout.AggregateLayout<GNode,GEdge> makeAggregateLayout(edu.uci.ics.jung.graph.util.Pair<edu.uci.ics.jung.graph.Graph<GNode,GEdge>> subGraphs, edu.uci.ics.jung.graph.util.Pair<java.awt.Rectangle> spaces, edu.uci.ics.jung.algorithms.layout.Layout<GNode,GEdge> layout0, java.lang.Class<? extends edu.uci.ics.jung.algorithms.layout.Layout> layoutClass01, java.lang.Class<? extends edu.uci.ics.jung.algorithms.layout.Layout> layoutClass02)
subGraphs
- subgraphsspaces
- subspaceslayout0
- current layoutlayoutClass01
- layout class for subgraph 1 (may be null: preserve existing)layoutClass02
- layout class for subgraph 2 (may be null: preserve existing)public void applyPartitionMode(SubGraph.PartitionMode mode0)
protected edu.uci.ics.jung.visualization.VisualizationModel<GNode,GEdge> makeViewModel(Model model, java.awt.Dimension layoutDimension)
model
- modellayoutDimension
- layout dimensionprotected edu.uci.ics.jung.visualization.VisualizationViewer<GNode,GEdge> makeViewer()
public edu.uci.ics.jung.visualization.VisualizationViewer<GNode,GEdge> getVisualizationViewer()
protected void resizeLayout(java.awt.Dimension size)
size
- sizeprotected void resizeLayout(double scaleX, double scaleY)
scaleX
- X scale factorscaleY
- Y scale factorprotected void resized(java.awt.Dimension viewSize)
viewSize
- sizepublic void resizeToView()
public void zoomIn()
public void zoomOut()
public void applyResetTransforms(edu.uci.ics.jung.visualization.Layer layer, boolean scaleDown)
public void scaleDownLayout()
public void pick(GNode node)
node
- nodepublic void unpickNode()
public void pick(GEdge edge)
edge
- edgepublic void unpickEdge()
public java.util.Set<GNode> getSelectedNodes()
public java.util.Set<GEdge> getSelectedEdges()
protected java.awt.image.BufferedImage makeBufferedImage(GNode node)
node
- nodeprotected VertexWeightFunction<GNode> makeVertexWeightFunction()
protected static double getTextWidth(java.lang.String text, java.awt.Font font)
text
- label textfont
- fontprotected org.apache.commons.collections15.Predicate<edu.uci.ics.jung.graph.util.Context<edu.uci.ics.jung.graph.Graph<GNode,GEdge>,GEdge>> makeEdgeIncludePredicate()
protected edu.uci.ics.jung.visualization.decorators.AbstractEdgeShapeTransformer<GNode,GEdge> makeEdgeShapeInstance(java.lang.Class<? extends edu.uci.ics.jung.visualization.decorators.AbstractEdgeShapeTransformer> edgeShapeClass)
edgeShapeClass
- edge shape classprotected edu.uci.ics.jung.visualization.transform.AbstractLensSupport<GNode,GEdge> makeLensSupport(View.LensType lensType)
lensType
- lens typeprivate void refresh(View.ToDos toDos)
toDos
- todosprivate boolean changeSetting(Settings.Setting setting, java.lang.Object value, View.ToDos toDos)
setting
- setting keyvalue
- setting valuetoDos
- to do things to perform adjustedpublic void applySetting(Settings.Setting setting, java.lang.Object value)
setting
- setting keyvalue
- setting valuepublic void applySettings(java.util.HashMap<Settings.Setting,java.lang.Object> diffs)
diffs
- settings diffprivate static void setSettingsExternal(Settings settings)
settings
- settingspublic void setEdgeShape(java.lang.Class<? extends edu.uci.ics.jung.visualization.decorators.AbstractEdgeShapeTransformer> edgeShapeClass)
edgeShapeClass
- edge shapepublic void applyEdgeShape(java.lang.Class<? extends edu.uci.ics.jung.visualization.decorators.AbstractEdgeShapeTransformer<GNode,GEdge>> edgeShapeClass)
public void applyEdgeFilterEnable(boolean flag)
flag
- whether filtering is onpublic IMutableFilter<HasId> getFilter()
public void applyFilter(IMutableFilter<HasId> relationFilter)
relationFilter
- relation filterpublic void applyFilter(java.lang.String id, java.lang.Boolean value)
id
- idvalue
- valuepublic void applyNodeMode(View.NodeMode mode)
mode
- node modepublic void applyMouseMode(edu.uci.ics.jung.visualization.control.ModalGraphMouse.Mode mode)
mode
- mouse modepublic void applyLens(View.LensType lensType)
lensType
- lens typeprivate java.awt.image.BufferedImage getBufferedImage()
public java.awt.image.BufferedImage getImage()
public int print(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int pageIndex)
print
in interface java.awt.print.Printable
public void addMenuToCorner(javax.swing.JMenu menu)
menu
- menuprivate static java.lang.String makeToolTipText()
private static java.lang.String toString(java.awt.geom.AffineTransform transform)
transform
- affine transformprivate static java.lang.String toString(edu.uci.ics.jung.visualization.MultiLayerTransformer multiLayerTransformer)
multiLayerTransformer
- multilayer transformerprivate java.lang.String transformsToString()
public void test()