|
||||||||||
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.JLayeredPane
de.aitools.iv.graphdrawing.Visualization
de.aitools.iv.graphdrawing.nativeboxtree.NativeBoxTreeVisualization
public class NativeBoxTreeVisualization
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.BaselineResizeBehavior |
Field Summary |
---|
Fields inherited from class javax.swing.JLayeredPane |
---|
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER |
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, 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 | |
---|---|
NativeBoxTreeVisualization()
|
|
NativeBoxTreeVisualization(UndirectedGraph graph,
Vertex root)
Invokes the default constructor and performs update(graph, root) |
Method Summary | |
---|---|
void |
addClickHandler(ClickHandler clickHandler)
adds a click handler, that will be notified, if the user left-clicks on a vertex |
void |
addClientPopupHandler(java.awt.event.MouseListener listener)
adds a click handler, that will be notified, if the user left-click on empty space within the visualization panel |
void |
addToLayeredPane(javax.swing.JComponent com,
java.lang.Integer constraint)
|
void |
createDefaultConfiguration()
create and use the default configuration |
AiTreeCellRenderer |
getAiTreeCellRenderer(java.lang.Object value)
asks the current AiTreeCellRendererMapper which Renderer
to use with this value and returns the answer. |
AiTreeCellRendererMapper |
getAiTreeCellRendererMapper()
gets the Mapper that decides which Renderer to use. |
VisualizationConfig |
getConfiguration()
|
ConfigurationPanel |
getConfigurationPanel()
|
UndirectedGraph |
getGraph()
|
java.awt.Dimension |
getLayoutSize()
returns the size of the tree in pixel |
java.lang.String |
getPreferredGraphType()
currently not used. |
Vertex |
getRoot()
|
void |
removeClickHandler(ClickHandler clickHandler)
|
void |
removeClientPopupHandler(java.awt.event.MouseListener listener)
|
void |
removeFromLayeredPane(javax.swing.JComponent com)
|
void |
setAiTreeCellRenderMapper(AiTreeCellRendererMapper value)
sets the mapper, which tells the visualization which Renderer to use for which vertex. |
void |
setConfiguration(VisualizationConfig config)
sets the Configuration to the specified one |
void |
setParameters(java.lang.String params)
just calls configuration.setParameters(params); . |
void |
setPopupClickHandler(PopupClickHandler pch)
sets a click handler, that pops up, if the user right-clicks on a vertex |
void |
setShade(Vertex vertex,
double shade)
Sets the shade value of the specified vertex. |
void |
skipAnimation()
|
void |
startAnimation()
|
void |
update(UndirectedGraph graph,
Vertex root)
show the specified graph, with its root vertex. |
void |
updateDisplayConfiguration()
calculate new positions for every vertex of the graph. |
void |
validate()
make shure, the panel is painted correctly. |
Methods inherited from class de.aitools.iv.graphdrawing.Visualization |
---|
getAttachmentId, setAttachmentID, toString |
Methods inherited from class javax.swing.JLayeredPane |
---|
getAccessibleContext, getComponentCountInLayer, getComponentsInLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getPosition, highestLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, putLayer, remove, removeAll, setLayer, setLayer, setPosition |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, 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, remove, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, hide, 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, 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, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NativeBoxTreeVisualization()
public NativeBoxTreeVisualization(UndirectedGraph graph, Vertex root)
Method Detail |
---|
public void update(UndirectedGraph graph, Vertex root)
Visualization
0
to n-1
,
where n
is the number of vertices in the graph.
update
in class Visualization
graph
- - UndirectedGraph to be shownroot
- - the root vertex of the graphVisualization.update(de.aitools.iv.graphdrawing.datastructures.graph.UndirectedGraph, de.aitools.iv.graphdrawing.datastructures.graph.Vertex)
public void updateDisplayConfiguration()
Visualization
updateDisplayConfiguration
in class Visualization
public java.awt.Dimension getLayoutSize()
public void validate()
Visualization
validate
in class Visualization
public void setAiTreeCellRenderMapper(AiTreeCellRendererMapper value)
value
- - the mapper to usepublic AiTreeCellRendererMapper getAiTreeCellRendererMapper()
AiTreeCellRendererMapper
currently in usepublic AiTreeCellRenderer getAiTreeCellRenderer(java.lang.Object value)
AiTreeCellRendererMapper
which Renderer
to use with this value
and returns the answer.
value
- - the hint to the Mapper.
AiTreeCellRenderer
public UndirectedGraph getGraph()
getGraph
in class Visualization
null
.Visualization.getGraph()
public Vertex getRoot()
getRoot
in class Visualization
null
.Visualization.getRoot()
public void addToLayeredPane(javax.swing.JComponent com, java.lang.Integer constraint)
public void removeFromLayeredPane(javax.swing.JComponent com)
public void setPopupClickHandler(PopupClickHandler pch)
Visualization
setPopupClickHandler
in class Visualization
de.aitools.iv.graphdrawing.Visualization#setPopupClickHandler(de.aitools.common.datastructures.ui.PopupClickHandler)
public void addClickHandler(ClickHandler clickHandler)
Visualization
addClickHandler
in class Visualization
Visualization.addClickHandler(de.aitools.iv.graphdrawing.ClickHandler)
public void removeClickHandler(ClickHandler clickHandler)
removeClickHandler
in class Visualization
Visualization.removeClickHandler(de.aitools.iv.graphdrawing.ClickHandler)
public void addClientPopupHandler(java.awt.event.MouseListener listener)
Visualization
addClientPopupHandler
in class Visualization
Visualization.addClientPopupHandler(java.awt.event.MouseListener)
public void removeClientPopupHandler(java.awt.event.MouseListener listener)
removeClientPopupHandler
in class Visualization
Visualization.removeClientPopupHandler(java.awt.event.MouseListener)
public void setParameters(java.lang.String params)
configuration.setParameters(params);
.
setParameters
in class Visualization
Visualization.setParameters(java.lang.String)
public void setShade(Vertex vertex, double shade)
Visualization
setShade
in class Visualization
vertex
- - the vertex, where to set the shade valueshade
- - double value between zero and oneVisualization.setShade(de.aitools.iv.graphdrawing.datastructures.graph.Vertex, double)
public void createDefaultConfiguration()
Visualization
createDefaultConfiguration
in class Visualization
Visualization.createDefaultConfiguration()
public void setConfiguration(VisualizationConfig config)
Visualization
setConfiguration
in class Visualization
Visualization.setConfiguration(de.aitools.iv.graphdrawing.VisualizationConfig)
public VisualizationConfig getConfiguration()
getConfiguration
in class Visualization
Visualization.getConfiguration()
public ConfigurationPanel getConfigurationPanel()
getConfigurationPanel
in interface ProvidesConfigurationPanel
getConfigurationPanel
in class Visualization
ProvidesConfigurationPanel.getConfigurationPanel()
public java.lang.String getPreferredGraphType()
Visualization
getPreferredGraphType
in class Visualization
public void skipAnimation()
public void startAnimation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |