com.mxgraph.swing
Class mxGraphOutline
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- com.mxgraph.swing.mxGraphOutline
-
- All Implemented Interfaces:
- java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
public class mxGraphOutline extends javax.swing.JComponentAn outline view for a specific graph component.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description classmxGraphOutline.MouseTracker
-
Field Summary
Fields Modifier and Type Field and Description static java.awt.ColorDEFAULT_ZOOMHANDLE_FILL-
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor and Description mxGraphOutline(mxGraphComponent graphComponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcheckTripleBuffer()Checks if the triple buffer exists and creates a new one if it does not.voiddestroyTripleBuffer()Destroys the tripleBuffer and tripleBufferGraphics objects.mxGraphComponentgetGraphComponent()booleanisAntiAlias()booleanisDrawLabels()booleanisFitPage()booleanisTripleBuffered()voidpaintComponent(java.awt.Graphics g)voidpaintGraph(java.awt.Graphics g)Paints the graph outline.voidrepaintTripleBuffer(java.awt.Rectangle clip)Clears and repaints the triple buffer at the given rectangle or repaints the complete buffer if no rectangle is specified.voidsetAntiAlias(boolean antiAlias)Fires a property change event forantiAlias.voidsetDrawLabels(boolean drawLabels)Fires a property change event fordrawLabels.voidsetFinderVisible(boolean visible)voidsetFitPage(boolean fitPage)Fires a property change event forfitPage.voidsetGraphComponent(mxGraphComponent graphComponent)Fires a property change event forgraphComponent.voidsetTripleBuffered(boolean tripleBuffered)Fires a property change event fortripleBuffered.voidsetVisible(boolean visible)voidsetZoomHandleVisible(boolean visible)voidupdateFinder(boolean repaint)voidupdateFinderBounds(java.awt.Rectangle bounds, boolean repaint)booleanupdateScaleAndTranslate()Returns true if the scale or translate has changed.-
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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, 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, 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, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
-
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, getAccessibleContext, 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, 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
-
-
-
-
Constructor Detail
-
mxGraphOutline
public mxGraphOutline(mxGraphComponent graphComponent)
-
-
Method Detail
-
setTripleBuffered
public void setTripleBuffered(boolean tripleBuffered)
Fires a property change event fortripleBuffered.- Parameters:
tripleBuffered- the tripleBuffered to set
-
isTripleBuffered
public boolean isTripleBuffered()
-
setDrawLabels
public void setDrawLabels(boolean drawLabels)
Fires a property change event fordrawLabels.- Parameters:
drawLabels- the drawLabels to set
-
isDrawLabels
public boolean isDrawLabels()
-
setAntiAlias
public void setAntiAlias(boolean antiAlias)
Fires a property change event forantiAlias.- Parameters:
antiAlias- the antiAlias to set
-
isAntiAlias
public boolean isAntiAlias()
- Returns:
- the antiAlias
-
setVisible
public void setVisible(boolean visible)
- Overrides:
setVisiblein classjavax.swing.JComponent
-
setFinderVisible
public void setFinderVisible(boolean visible)
-
setZoomHandleVisible
public void setZoomHandleVisible(boolean visible)
-
setFitPage
public void setFitPage(boolean fitPage)
Fires a property change event forfitPage.- Parameters:
fitPage- the fitPage to set
-
isFitPage
public boolean isFitPage()
-
getGraphComponent
public mxGraphComponent getGraphComponent()
-
setGraphComponent
public void setGraphComponent(mxGraphComponent graphComponent)
Fires a property change event forgraphComponent.- Parameters:
graphComponent- the graphComponent to set
-
checkTripleBuffer
public void checkTripleBuffer()
Checks if the triple buffer exists and creates a new one if it does not. Also compares the size of the buffer with the size of the graph and drops the buffer if it has a different size.
-
destroyTripleBuffer
public void destroyTripleBuffer()
Destroys the tripleBuffer and tripleBufferGraphics objects.
-
repaintTripleBuffer
public void repaintTripleBuffer(java.awt.Rectangle clip)
Clears and repaints the triple buffer at the given rectangle or repaints the complete buffer if no rectangle is specified.- Parameters:
clip-
-
updateFinder
public void updateFinder(boolean repaint)
-
updateFinderBounds
public void updateFinderBounds(java.awt.Rectangle bounds, boolean repaint)
-
paintComponent
public void paintComponent(java.awt.Graphics g)
- Overrides:
paintComponentin classjavax.swing.JComponent
-
paintGraph
public void paintGraph(java.awt.Graphics g)
Paints the graph outline.
-
updateScaleAndTranslate
public boolean updateScaleAndTranslate()
Returns true if the scale or translate has changed.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG