java.awt.image.ImageObserver
, java.awt.MenuContainer
, java.io.Serializable
public class mxGraphOutline
extends javax.swing.JComponent
Modifier and Type | Class | Description |
---|---|---|
class |
mxGraphOutline.MouseTracker |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
Modifier and Type | Field | Description |
---|---|---|
protected java.awt.event.AdjustmentListener |
adjustmentHandler |
|
protected boolean |
antiAlias |
|
protected java.awt.event.ComponentListener |
componentHandler |
|
static java.awt.Color |
DEFAULT_ZOOMHANDLE_FILL |
|
protected boolean |
drawLabels |
|
protected java.awt.Rectangle |
finderBounds |
|
protected boolean |
finderVisible |
|
protected boolean |
fitPage |
Specifies if the outline should be zoomed to the page if the graph
component is in page layout mode.
|
protected mxGraphComponent |
graphComponent |
|
protected int |
outlineBorder |
Not yet implemented.
|
protected boolean |
repaintBuffer |
True if the triple buffer needs a full repaint.
|
protected mxRectangle |
repaintClip |
Clip of the triple buffer to be repainted.
|
protected mxEventSource.mxIEventListener |
repaintHandler |
|
protected double |
scale |
|
protected mxGraphOutline.MouseTracker |
tracker |
|
protected java.awt.Point |
translate |
|
protected java.awt.image.BufferedImage |
tripleBuffer |
TODO: Not yet implemented.
|
protected boolean |
tripleBuffered |
|
protected java.awt.Graphics2D |
tripleBufferGraphics |
Holds the graphics of the triple buffer.
|
protected boolean |
useScaledInstance |
|
protected boolean |
zoomGesture |
|
protected java.awt.Point |
zoomHandleLocation |
|
protected boolean |
zoomHandleVisible |
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor | Description |
---|---|
mxGraphOutline(mxGraphComponent graphComponent) |
Modifier and Type | Method | Description |
---|---|---|
void |
checkTripleBuffer() |
Checks if the triple buffer exists and creates a new one if
it does not.
|
protected void |
createTripleBuffer(int width,
int height) |
Creates the tripleBufferGraphics and tripleBuffer for the given
dimension and draws the complete graph onto the triplebuffer.
|
void |
destroyTripleBuffer() |
Destroys the tripleBuffer and tripleBufferGraphics objects.
|
mxGraphComponent |
getGraphComponent() |
|
boolean |
isAntiAlias() |
|
boolean |
isDrawLabels() |
|
boolean |
isFitPage() |
|
boolean |
isTripleBuffered() |
|
protected void |
paintBackground(java.awt.Graphics g) |
Paints the background.
|
void |
paintComponent(java.awt.Graphics g) |
|
protected void |
paintForeground(java.awt.Graphics g) |
Paints the foreground.
|
void |
paintGraph(java.awt.Graphics g) |
Paints the graph outline.
|
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.
|
void |
setAntiAlias(boolean antiAlias) |
Fires a property change event for
antiAlias . |
void |
setDrawLabels(boolean drawLabels) |
Fires a property change event for
drawLabels . |
void |
setFinderVisible(boolean visible) |
|
void |
setFitPage(boolean fitPage) |
Fires a property change event for
fitPage . |
void |
setGraphComponent(mxGraphComponent graphComponent) |
Fires a property change event for
graphComponent . |
void |
setTripleBuffered(boolean tripleBuffered) |
Fires a property change event for
tripleBuffered . |
void |
setVisible(boolean visible) |
|
void |
setZoomHandleVisible(boolean visible) |
|
void |
updateFinder(boolean repaint) |
|
void |
updateFinderBounds(java.awt.Rectangle bounds,
boolean repaint) |
|
boolean |
updateScaleAndTranslate() |
Returns true if the scale or translate has changed.
|
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, 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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
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
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, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, 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, unregisterKeyboardAction, update, updateUI
public static java.awt.Color DEFAULT_ZOOMHANDLE_FILL
protected mxGraphComponent graphComponent
protected java.awt.image.BufferedImage tripleBuffer
protected java.awt.Graphics2D tripleBufferGraphics
protected boolean repaintBuffer
protected mxRectangle repaintClip
protected boolean tripleBuffered
protected java.awt.Rectangle finderBounds
protected java.awt.Point zoomHandleLocation
protected boolean finderVisible
protected boolean zoomHandleVisible
protected boolean useScaledInstance
protected boolean antiAlias
protected boolean drawLabels
protected boolean fitPage
protected int outlineBorder
protected mxGraphOutline.MouseTracker tracker
protected double scale
protected java.awt.Point translate
protected transient boolean zoomGesture
protected mxEventSource.mxIEventListener repaintHandler
protected java.awt.event.ComponentListener componentHandler
protected java.awt.event.AdjustmentListener adjustmentHandler
public mxGraphOutline(mxGraphComponent graphComponent)
public void setTripleBuffered(boolean tripleBuffered)
tripleBuffered
.tripleBuffered
- the tripleBuffered to setpublic boolean isTripleBuffered()
public void setDrawLabels(boolean drawLabels)
drawLabels
.drawLabels
- the drawLabels to setpublic boolean isDrawLabels()
public void setAntiAlias(boolean antiAlias)
antiAlias
.antiAlias
- the antiAlias to setpublic boolean isAntiAlias()
public void setVisible(boolean visible)
setVisible
in class javax.swing.JComponent
public void setFinderVisible(boolean visible)
public void setZoomHandleVisible(boolean visible)
public void setFitPage(boolean fitPage)
fitPage
.fitPage
- the fitPage to setpublic boolean isFitPage()
public mxGraphComponent getGraphComponent()
public void setGraphComponent(mxGraphComponent graphComponent)
graphComponent
.graphComponent
- the graphComponent to setpublic void checkTripleBuffer()
protected void createTripleBuffer(int width, int height)
width
- height
- public void destroyTripleBuffer()
public void repaintTripleBuffer(java.awt.Rectangle clip)
clip
- public void updateFinder(boolean repaint)
public void updateFinderBounds(java.awt.Rectangle bounds, boolean repaint)
public void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
protected void paintBackground(java.awt.Graphics g)
public void paintGraph(java.awt.Graphics g)
protected void paintForeground(java.awt.Graphics g)
public boolean updateScaleAndTranslate()
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.