maxGraph/java/docs/com/mxgraph/swing/mxGraphComponent.mxGraphCon...

675 lines
32 KiB
HTML
Raw Normal View History

2012-05-21 20:32:26 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2014-04-01 11:30:48 +00:00
<!-- NewPage -->
<html lang="en">
<head>
2014-11-10 09:02:21 +00:00
<!-- Generated by javadoc (version 1.7.0_51) on Mon Nov 10 04:00:02 EST 2014 -->
<title>mxGraphComponent.mxGraphControl (mxGraph 3.1.1.1 API Specification)</title>
<meta name="date" content="2014-11-10">
2014-04-01 11:30:48 +00:00
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
2012-05-21 20:32:26 +00:00
if (location.href.indexOf('is-external=true') == -1) {
2014-11-10 09:02:21 +00:00
parent.document.title="mxGraphComponent.mxGraphControl (mxGraph 3.1.1.1 API Specification)";
2012-05-21 20:32:26 +00:00
}
2014-04-01 11:30:48 +00:00
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
2012-05-21 20:32:26 +00:00
<!-- ========= START OF TOP NAVBAR ======= -->
2014-04-01 11:30:48 +00:00
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/mxGraphComponent.mxGraphControl.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
2014-11-10 09:02:21 +00:00
<div class="aboutLanguage"><em><p><b>mxGraph 3.1.1.1</b></p></em></div>
2014-04-01 11:30:48 +00:00
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../com/mxgraph/swing/mxGraphComponent.html" title="class in com.mxgraph.swing"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../com/mxgraph/swing/mxGraphComponent.mxMouseRedirector.html" title="class in com.mxgraph.swing"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/mxgraph/swing/mxGraphComponent.mxGraphControl.html" target="_top">Frames</a></li>
<li><a href="mxGraphComponent.mxGraphControl.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
2012-05-21 20:32:26 +00:00
if(window==top) {
2014-04-01 11:30:48 +00:00
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
2012-05-21 20:32:26 +00:00
}
//-->
2014-04-01 11:30:48 +00:00
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_classes_inherited_from_class_javax.swing.JComponent">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
2012-05-21 20:32:26 +00:00
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
2014-04-01 11:30:48 +00:00
<div class="header">
<div class="subTitle">com.mxgraph.swing</div>
<h2 title="Class mxGraphComponent.mxGraphControl" class="title">Class mxGraphComponent.mxGraphControl</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
2014-11-10 09:02:21 +00:00
<li>java.lang.Object</li>
2014-04-01 11:30:48 +00:00
<li>
<ul class="inheritance">
2014-11-10 09:02:21 +00:00
<li>java.awt.Component</li>
2014-04-01 11:30:48 +00:00
<li>
<ul class="inheritance">
2014-11-10 09:02:21 +00:00
<li>java.awt.Container</li>
2014-04-01 11:30:48 +00:00
<li>
<ul class="inheritance">
2014-11-10 09:02:21 +00:00
<li>javax.swing.JComponent</li>
2014-04-01 11:30:48 +00:00
<li>
<ul class="inheritance">
<li>com.mxgraph.swing.mxGraphComponent.mxGraphControl</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
2014-11-10 09:02:21 +00:00
<dd>java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable</dd>
2014-04-01 11:30:48 +00:00
</dl>
<dl>
<dt>Enclosing class:</dt>
<dd><a href="../../../com/mxgraph/swing/mxGraphComponent.html" title="class in com.mxgraph.swing">mxGraphComponent</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">mxGraphComponent.mxGraphControl</span>
2014-11-10 09:02:21 +00:00
extends javax.swing.JComponent</pre>
2014-04-01 11:30:48 +00:00
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../serialized-form.html#com.mxgraph.swing.mxGraphComponent.mxGraphControl">Serialized Form</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
2012-05-21 20:32:26 +00:00
<!-- ======== NESTED CLASS SUMMARY ======== -->
2014-04-01 11:30:48 +00:00
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="nested_classes_inherited_from_class_javax.swing.JComponent">
<!-- -->
</a>
2014-11-10 09:02:21 +00:00
<h3>Nested classes/interfaces inherited from class&nbsp;javax.swing.JComponent</h3>
<code>javax.swing.JComponent.AccessibleJComponent</code></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="blockList">
<li class="blockList"><a name="nested_classes_inherited_from_class_java.awt.Container">
<!-- -->
</a>
2014-11-10 09:02:21 +00:00
<h3>Nested classes/interfaces inherited from class&nbsp;java.awt.Container</h3>
<code>java.awt.Container.AccessibleAWTContainer</code></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="blockList">
<li class="blockList"><a name="nested_classes_inherited_from_class_java.awt.Component">
<!-- -->
</a>
2014-11-10 09:02:21 +00:00
<h3>Nested classes/interfaces inherited from class&nbsp;java.awt.Component</h3>
<code>java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy</code></li>
2014-04-01 11:30:48 +00:00
</ul>
</li>
</ul>
2012-05-21 20:32:26 +00:00
<!-- =========== FIELD SUMMARY =========== -->
2014-04-01 11:30:48 +00:00
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
2014-11-10 09:02:21 +00:00
<td class="colFirst"><code>protected java.awt.Point</code></td>
2014-04-01 11:30:48 +00:00
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#translate">translate</a></strong></code>
<div class="block">Specifies a translation for painting.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_javax.swing.JComponent">
<!-- -->
</a>
2014-11-10 09:02:21 +00:00
<h3>Fields inherited from class&nbsp;javax.swing.JComponent</h3>
<code>accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW</code></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_java.awt.Component">
<!-- -->
</a>
2014-11-10 09:02:21 +00:00
<h3>Fields inherited from class&nbsp;java.awt.Component</h3>
<code>BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT</code></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_java.awt.image.ImageObserver">
<!-- -->
</a>
2014-11-10 09:02:21 +00:00
<h3>Fields inherited from interface&nbsp;java.awt.image.ImageObserver</h3>
<code>ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH</code></li>
2014-04-01 11:30:48 +00:00
</ul>
</li>
</ul>
2012-05-21 20:32:26 +00:00
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
2014-04-01 11:30:48 +00:00
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#mxGraphComponent.mxGraphControl()">mxGraphComponent.mxGraphControl</a></strong>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
2012-05-21 20:32:26 +00:00
<!-- ========== METHOD SUMMARY =========== -->
2014-04-01 11:30:48 +00:00
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#cellDrawn(com.mxgraph.canvas.mxICanvas, com.mxgraph.view.mxCellState)">cellDrawn</a></strong>(<a href="../../../com/mxgraph/canvas/mxICanvas.html" title="interface in com.mxgraph.canvas">mxICanvas</a>&nbsp;canvas,
<a href="../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#drawCell(com.mxgraph.canvas.mxICanvas, java.lang.Object)">drawCell</a></strong>(<a href="../../../com/mxgraph/canvas/mxICanvas.html" title="interface in com.mxgraph.canvas">mxICanvas</a>&nbsp;canvas,
2014-11-10 09:02:21 +00:00
java.lang.Object&nbsp;cell)</code>
2014-04-01 11:30:48 +00:00
<div class="block">Draws the given cell onto the specified canvas.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
2014-11-10 09:02:21 +00:00
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#drawChildren(java.lang.Object, boolean, boolean)">drawChildren</a></strong>(java.lang.Object&nbsp;cell,
2014-04-01 11:30:48 +00:00
boolean&nbsp;edges,
boolean&nbsp;others)</code>
<div class="block">Draws the child edges and/or all other children in the given cell
depending on the boolean arguments.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#drawFromRootCell()">drawFromRootCell</a></strong>()</code>
<div class="block">Hook to draw the root cell into the canvas.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
2014-11-10 09:02:21 +00:00
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#drawGraph(java.awt.Graphics2D, boolean)">drawGraph</a></strong>(java.awt.Graphics2D&nbsp;g,
2014-04-01 11:30:48 +00:00
boolean&nbsp;drawLabels)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
2014-11-10 09:02:21 +00:00
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#extendComponent(java.awt.Rectangle)">extendComponent</a></strong>(java.awt.Rectangle&nbsp;rect)</code>
2014-04-01 11:30:48 +00:00
<div class="block">Implements extension of the component in all directions.</div>
</td>
</tr>
<tr class="altColor">
2014-11-10 09:02:21 +00:00
<td class="colFirst"><code>protected java.awt.Rectangle</code></td>
2014-04-01 11:30:48 +00:00
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#getExtendedCellBounds(com.mxgraph.view.mxCellState)">getExtendedCellBounds</a></strong>(<a href="../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../com/mxgraph/swing/mxGraphComponent.html" title="class in com.mxgraph.swing">mxGraphComponent</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#getGraphContainer()">getGraphContainer</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
2014-11-10 09:02:21 +00:00
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#getToolTipText(java.awt.event.MouseEvent)">getToolTipText</a></strong>(java.awt.event.MouseEvent&nbsp;e)</code>&nbsp;</td>
2014-04-01 11:30:48 +00:00
</tr>
<tr class="rowColor">
2014-11-10 09:02:21 +00:00
<td class="colFirst"><code>java.awt.Point</code></td>
2014-04-01 11:30:48 +00:00
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#getTranslate()">getTranslate</a></strong>()</code>
<div class="block">Returns the translate.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#hitClip(com.mxgraph.canvas.mxGraphics2DCanvas, com.mxgraph.view.mxCellState)">hitClip</a></strong>(<a href="../../../com/mxgraph/canvas/mxGraphics2DCanvas.html" title="class in com.mxgraph.canvas">mxGraphics2DCanvas</a>&nbsp;canvas,
<a href="../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
2014-11-10 09:02:21 +00:00
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#isCellDisplayable(java.lang.Object)">isCellDisplayable</a></strong>(java.lang.Object&nbsp;cell)</code>
2014-04-01 11:30:48 +00:00
<div class="block">Returns true if the given cell is not the current root or the root in
the model.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
2014-11-10 09:02:21 +00:00
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#paint(java.awt.Graphics)">paint</a></strong>(java.awt.Graphics&nbsp;g)</code>&nbsp;</td>
2014-04-01 11:30:48 +00:00
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
2014-11-10 09:02:21 +00:00
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#paintComponent(java.awt.Graphics)">paintComponent</a></strong>(java.awt.Graphics&nbsp;g)</code>&nbsp;</td>
2014-04-01 11:30:48 +00:00
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
2014-11-10 09:02:21 +00:00
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#scrollRectToVisible(java.awt.Rectangle, boolean)">scrollRectToVisible</a></strong>(java.awt.Rectangle&nbsp;aRect,
2014-04-01 11:30:48 +00:00
boolean&nbsp;extend)</code>
<div class="block">Overrides parent method to add extend flag for making the control
larger during previews.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
2014-11-10 09:02:21 +00:00
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#setTranslate(java.awt.Point)">setTranslate</a></strong>(java.awt.Point&nbsp;value)</code>
2014-04-01 11:30:48 +00:00
<div class="block">Sets the translate.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/mxgraph/swing/mxGraphComponent.mxGraphControl.html#updatePreferredSize()">updatePreferredSize</a></strong>()</code>
<div class="block">Updates the preferred size for the given scale if the page size
should be preferred or the page is visible.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_javax.swing.JComponent">
<!-- -->
</a>
2014-11-10 09:02:21 +00:00
<h3>Methods inherited from class&nbsp;javax.swing.JComponent</h3>
<code>addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, 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, setVisible, unregisterKeyboardAction, update, updateUI</code></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.awt.Container">
<!-- -->
</a>
2014-11-10 09:02:21 +00:00
<h3>Methods inherited from class&nbsp;java.awt.Container</h3>
<code>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</code></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.awt.Component">
<!-- -->
</a>
2014-11-10 09:02:21 +00:00
<h3>Methods inherited from class&nbsp;java.awt.Component</h3>
<code>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</code></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
2014-11-10 09:02:21 +00:00
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
2014-04-01 11:30:48 +00:00
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
2012-05-21 20:32:26 +00:00
<!-- ============ FIELD DETAIL =========== -->
2014-04-01 11:30:48 +00:00
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="translate">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>translate</h4>
2014-11-10 09:02:21 +00:00
<pre>protected&nbsp;java.awt.Point translate</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Specifies a translation for painting. This should only be used during
2012-05-21 20:32:26 +00:00
mouse drags and must be reset after any interactive repaints. Default
2014-04-01 11:30:48 +00:00
is (0,0). This should not be null.</div>
</li>
</ul>
</li>
</ul>
2012-05-21 20:32:26 +00:00
<!-- ========= CONSTRUCTOR DETAIL ======== -->
2014-04-01 11:30:48 +00:00
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="mxGraphComponent.mxGraphControl()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>mxGraphComponent.mxGraphControl</h4>
<pre>public&nbsp;mxGraphComponent.mxGraphControl()</pre>
</li>
</ul>
</li>
</ul>
2012-05-21 20:32:26 +00:00
<!-- ============ METHOD DETAIL ========== -->
2014-04-01 11:30:48 +00:00
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getTranslate()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTranslate</h4>
2014-11-10 09:02:21 +00:00
<pre>public&nbsp;java.awt.Point&nbsp;getTranslate()</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the translate.</div>
</li>
</ul>
<a name="setTranslate(java.awt.Point)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTranslate</h4>
2014-11-10 09:02:21 +00:00
<pre>public&nbsp;void&nbsp;setTranslate(java.awt.Point&nbsp;value)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Sets the translate.</div>
</li>
</ul>
<a name="getGraphContainer()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGraphContainer</h4>
<pre>public&nbsp;<a href="../../../com/mxgraph/swing/mxGraphComponent.html" title="class in com.mxgraph.swing">mxGraphComponent</a>&nbsp;getGraphContainer()</pre>
</li>
</ul>
<a name="scrollRectToVisible(java.awt.Rectangle, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scrollRectToVisible</h4>
2014-11-10 09:02:21 +00:00
<pre>public&nbsp;void&nbsp;scrollRectToVisible(java.awt.Rectangle&nbsp;aRect,
2014-04-01 11:30:48 +00:00
boolean&nbsp;extend)</pre>
<div class="block">Overrides parent method to add extend flag for making the control
larger during previews.</div>
</li>
</ul>
<a name="extendComponent(java.awt.Rectangle)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>extendComponent</h4>
2014-11-10 09:02:21 +00:00
<pre>protected&nbsp;void&nbsp;extendComponent(java.awt.Rectangle&nbsp;rect)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Implements extension of the component in all directions. For
2012-05-21 20:32:26 +00:00
extension below the origin (into negative space) the translate will
2014-04-01 11:30:48 +00:00
temporaly be used and reset with the next mouse released event.</div>
</li>
</ul>
<a name="getToolTipText(java.awt.event.MouseEvent)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getToolTipText</h4>
2014-11-10 09:02:21 +00:00
<pre>public&nbsp;java.lang.String&nbsp;getToolTipText(java.awt.event.MouseEvent&nbsp;e)</pre>
2014-04-01 11:30:48 +00:00
<dl>
<dt><strong>Overrides:</strong></dt>
2014-11-10 09:02:21 +00:00
<dd><code>getToolTipText</code>&nbsp;in class&nbsp;<code>javax.swing.JComponent</code></dd>
2014-04-01 11:30:48 +00:00
</dl>
</li>
</ul>
<a name="updatePreferredSize()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>updatePreferredSize</h4>
<pre>public&nbsp;void&nbsp;updatePreferredSize()</pre>
<div class="block">Updates the preferred size for the given scale if the page size
should be preferred or the page is visible.</div>
</li>
</ul>
<a name="paint(java.awt.Graphics)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>paint</h4>
2014-11-10 09:02:21 +00:00
<pre>public&nbsp;void&nbsp;paint(java.awt.Graphics&nbsp;g)</pre>
2014-04-01 11:30:48 +00:00
<dl>
<dt><strong>Overrides:</strong></dt>
2014-11-10 09:02:21 +00:00
<dd><code>paint</code>&nbsp;in class&nbsp;<code>javax.swing.JComponent</code></dd>
2014-04-01 11:30:48 +00:00
</dl>
</li>
</ul>
<a name="paintComponent(java.awt.Graphics)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>paintComponent</h4>
2014-11-10 09:02:21 +00:00
<pre>public&nbsp;void&nbsp;paintComponent(java.awt.Graphics&nbsp;g)</pre>
2014-04-01 11:30:48 +00:00
<dl>
<dt><strong>Overrides:</strong></dt>
2014-11-10 09:02:21 +00:00
<dd><code>paintComponent</code>&nbsp;in class&nbsp;<code>javax.swing.JComponent</code></dd>
2014-04-01 11:30:48 +00:00
</dl>
</li>
</ul>
<a name="drawGraph(java.awt.Graphics2D, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drawGraph</h4>
2014-11-10 09:02:21 +00:00
<pre>public&nbsp;void&nbsp;drawGraph(java.awt.Graphics2D&nbsp;g,
2014-04-01 11:30:48 +00:00
boolean&nbsp;drawLabels)</pre>
</li>
</ul>
<a name="drawFromRootCell()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drawFromRootCell</h4>
<pre>protected&nbsp;void&nbsp;drawFromRootCell()</pre>
<div class="block">Hook to draw the root cell into the canvas.</div>
</li>
</ul>
<a name="hitClip(com.mxgraph.canvas.mxGraphics2DCanvas, com.mxgraph.view.mxCellState)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hitClip</h4>
<pre>protected&nbsp;boolean&nbsp;hitClip(<a href="../../../com/mxgraph/canvas/mxGraphics2DCanvas.html" title="class in com.mxgraph.canvas">mxGraphics2DCanvas</a>&nbsp;canvas,
<a href="../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state)</pre>
</li>
</ul>
<a name="getExtendedCellBounds(com.mxgraph.view.mxCellState)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getExtendedCellBounds</h4>
2014-11-10 09:02:21 +00:00
<pre>protected&nbsp;java.awt.Rectangle&nbsp;getExtendedCellBounds(<a href="../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state)</pre>
2014-04-01 11:30:48 +00:00
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>state</code> - the cached state of the cell whose extended bounds are to be calculated</dd>
<dt><span class="strong">Returns:</span></dt><dd>the bounds of the cell, including the label and shadow and allowing for rotation</dd></dl>
</li>
</ul>
<a name="drawCell(com.mxgraph.canvas.mxICanvas, java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drawCell</h4>
<pre>public&nbsp;void&nbsp;drawCell(<a href="../../../com/mxgraph/canvas/mxICanvas.html" title="interface in com.mxgraph.canvas">mxICanvas</a>&nbsp;canvas,
2014-11-10 09:02:21 +00:00
java.lang.Object&nbsp;cell)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Draws the given cell onto the specified canvas. This is a modified
2012-05-21 20:32:26 +00:00
version of mxGraph.drawCell which paints the label only if the
corresponding cell is not being edited and invokes the cellDrawn hook
2014-04-01 11:30:48 +00:00
after all descendants have been painted.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>canvas</code> - Canvas onto which the cell should be drawn.</dd><dd><code>cell</code> - Cell that should be drawn onto the canvas.</dd></dl>
</li>
</ul>
<a name="drawChildren(java.lang.Object, boolean, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drawChildren</h4>
2014-11-10 09:02:21 +00:00
<pre>protected&nbsp;void&nbsp;drawChildren(java.lang.Object&nbsp;cell,
2014-04-01 11:30:48 +00:00
boolean&nbsp;edges,
boolean&nbsp;others)</pre>
<div class="block">Draws the child edges and/or all other children in the given cell
depending on the boolean arguments.</div>
</li>
</ul>
<a name="cellDrawn(com.mxgraph.canvas.mxICanvas, com.mxgraph.view.mxCellState)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cellDrawn</h4>
<pre>protected&nbsp;void&nbsp;cellDrawn(<a href="../../../com/mxgraph/canvas/mxICanvas.html" title="interface in com.mxgraph.canvas">mxICanvas</a>&nbsp;canvas,
<a href="../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state)</pre>
</li>
</ul>
<a name="isCellDisplayable(java.lang.Object)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>isCellDisplayable</h4>
2014-11-10 09:02:21 +00:00
<pre>protected&nbsp;boolean&nbsp;isCellDisplayable(java.lang.Object&nbsp;cell)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns true if the given cell is not the current root or the root in
2012-05-21 20:32:26 +00:00
the model. This can be overridden to not render certain cells in the
2014-04-01 11:30:48 +00:00
graph display.</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
2012-05-21 20:32:26 +00:00
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
2014-04-01 11:30:48 +00:00
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/mxGraphComponent.mxGraphControl.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
2014-11-10 09:02:21 +00:00
<div class="aboutLanguage"><em><p><b>mxGraph 3.1.1.1</b></p></em></div>
2014-04-01 11:30:48 +00:00
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../com/mxgraph/swing/mxGraphComponent.html" title="class in com.mxgraph.swing"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../com/mxgraph/swing/mxGraphComponent.mxMouseRedirector.html" title="class in com.mxgraph.swing"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/mxgraph/swing/mxGraphComponent.mxGraphControl.html" target="_top">Frames</a></li>
<li><a href="mxGraphComponent.mxGraphControl.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
2012-05-21 20:32:26 +00:00
if(window==top) {
2014-04-01 11:30:48 +00:00
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
2012-05-21 20:32:26 +00:00
}
//-->
2014-04-01 11:30:48 +00:00
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_classes_inherited_from_class_javax.swing.JComponent">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
2012-05-21 20:32:26 +00:00
<!-- ======== END OF BOTTOM NAVBAR ======= -->
2014-04-01 11:30:48 +00:00
<p class="legalCopy"><small><font size=1>Copyright (c) 2010 <a href="http://www.mxgraph.com/"
target="_blank">Gaudenz Alder, David Benson</a>. All rights reserved.</font></small></p>
</body>
</html>