580 lines
22 KiB
HTML
580 lines
22 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (10.0.2) on Mon Mar 11 12:29:23 UTC 2019 -->
|
|
<title>mxStylesheet (mxGraph 4.0.0 API Specification)</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="date" content="2019-03-11">
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
|
|
<script type="text/javascript" src="../../../script.js"></script>
|
|
<script type="text/javascript" src="../../../jquery/jszip/dist/jszip.min.js"></script>
|
|
<script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
|
|
<!--[if IE]>
|
|
<script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
|
|
<![endif]-->
|
|
<script type="text/javascript" src="../../../jquery/jquery-1.10.2.js"></script>
|
|
<script type="text/javascript" src="../../../jquery/jquery-ui.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="mxStylesheet (mxGraph 4.0.0 API Specification)";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10};
|
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
|
var altColor = "altColor";
|
|
var rowColor = "rowColor";
|
|
var tableTab = "tableTab";
|
|
var activeTableTab = "activeTableTab";
|
|
var pathtoroot = "../../../";loadScripts(document, 'script');</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<div class="fixedNav">
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<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/mxStylesheet.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>
|
|
<div class="aboutLanguage"><p><b>mxGraph 4.0.0</b></p></div>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../com/mxgraph/view/mxStyleRegistry.html" title="class in com.mxgraph.view"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../com/mxgraph/view/mxSwimlaneManager.html" title="class in com.mxgraph.view"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?com/mxgraph/view/mxStylesheet.html" target="_top">Frames</a></li>
|
|
<li><a href="mxStylesheet.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>
|
|
<ul class="navListSearch">
|
|
<li><label for="search">SEARCH:</label>
|
|
<input type="text" id="search" value="search" disabled="disabled">
|
|
<input type="reset" id="reset" value="reset" disabled="disabled">
|
|
</li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li><a href="#field.summary">Field</a> | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
</div>
|
|
<div class="navPadding"> </div>
|
|
<script type="text/javascript"><!--
|
|
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|
//-->
|
|
</script>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="../../../com/mxgraph/view/package-summary.html">com.mxgraph.view</a></div>
|
|
<h2 title="Class mxStylesheet" class="title">Class mxStylesheet</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>com.mxgraph.view.mxStylesheet</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<pre>public class <span class="typeNameLabel">mxStylesheet</span>
|
|
extends java.lang.Object</pre>
|
|
<div class="block">Defines the appearance of the cells in a graph. The following example
|
|
changes the font size for all vertices by changing the default vertex
|
|
style in-place:
|
|
<code>
|
|
getDefaultVertexStyle().put(mxConstants.STYLE_FONTSIZE, 16);
|
|
</code>
|
|
|
|
To change the default font size for all cells, set
|
|
mxConstants.DEFAULT_FONTSIZE.</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Summary</h3>
|
|
<table class="memberSummary" summary="Field Summary table, listing fields, and an explanation">
|
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colSecond" scope="col">Field</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static java.util.Map<java.lang.String,java.lang.Object></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/view/mxStylesheet.html#EMPTY_STYLE">EMPTY_STYLE</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Shared immutable empty hashtable (for undefined cell styles).</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/view/mxStylesheet.html#styles">styles</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Maps from names to styles.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Constructor</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/view/mxStylesheet.html#mxStylesheet--">mxStylesheet</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Constructs a new stylesheet and assigns default styles.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colSecond" scope="col">Method</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr id="i0" class="altColor">
|
|
<td class="colFirst"><code>protected java.util.Map<java.lang.String,java.lang.Object></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/view/mxStylesheet.html#createDefaultEdgeStyle--">createDefaultEdgeStyle</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Creates and returns the default edge style.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code>protected java.util.Map<java.lang.String,java.lang.Object></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/view/mxStylesheet.html#createDefaultVertexStyle--">createDefaultVertexStyle</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Creates and returns the default vertex style.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code>java.util.Map<java.lang.String,java.lang.Object></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/view/mxStylesheet.html#getCellStyle-java.lang.String-java.util.Map-">getCellStyle</a></span>​(java.lang.String name,
|
|
java.util.Map<java.lang.String,java.lang.Object> defaultStyle)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the cell style for the specified cell or the given defaultStyle
|
|
if no style can be found for the given stylename.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code>java.util.Map<java.lang.String,java.lang.Object></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/view/mxStylesheet.html#getDefaultEdgeStyle--">getDefaultEdgeStyle</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the default style for edges.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code>java.util.Map<java.lang.String,java.lang.Object></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/view/mxStylesheet.html#getDefaultVertexStyle--">getDefaultVertexStyle</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the default style for vertices.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code>java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/view/mxStylesheet.html#getStyles--">getStyles</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns all styles as map of name, hashtable pairs.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/view/mxStylesheet.html#putCellStyle-java.lang.String-java.util.Map-">putCellStyle</a></span>​(java.lang.String name,
|
|
java.util.Map<java.lang.String,java.lang.Object> style)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Stores the specified style under the given name.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/view/mxStylesheet.html#setDefaultEdgeStyle-java.util.Map-">setDefaultEdgeStyle</a></span>​(java.util.Map<java.lang.String,java.lang.Object> value)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the default style for edges.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/view/mxStylesheet.html#setDefaultVertexStyle-java.util.Map-">setDefaultVertexStyle</a></span>​(java.util.Map<java.lang.String,java.lang.Object> value)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the default style for vertices.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/view/mxStylesheet.html#setStyles-java.util.Map-">setStyles</a></span>​(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> styles)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets all styles in the stylesheet.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.Object</h3>
|
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Detail</h3>
|
|
<a name="EMPTY_STYLE">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>EMPTY_STYLE</h4>
|
|
<pre>public static final java.util.Map<java.lang.String,java.lang.Object> EMPTY_STYLE</pre>
|
|
<div class="block">Shared immutable empty hashtable (for undefined cell styles).</div>
|
|
</li>
|
|
</ul>
|
|
<a name="styles">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>styles</h4>
|
|
<pre>protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> styles</pre>
|
|
<div class="block">Maps from names to styles.</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="mxStylesheet--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>mxStylesheet</h4>
|
|
<pre>public mxStylesheet()</pre>
|
|
<div class="block">Constructs a new stylesheet and assigns default styles.</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="getStyles--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getStyles</h4>
|
|
<pre>public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> getStyles()</pre>
|
|
<div class="block">Returns all styles as map of name, hashtable pairs.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>All styles in this stylesheet.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setStyles-java.util.Map-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setStyles</h4>
|
|
<pre>public void setStyles​(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> styles)</pre>
|
|
<div class="block">Sets all styles in the stylesheet.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="createDefaultVertexStyle--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createDefaultVertexStyle</h4>
|
|
<pre>protected java.util.Map<java.lang.String,java.lang.Object> createDefaultVertexStyle()</pre>
|
|
<div class="block">Creates and returns the default vertex style.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the default vertex style.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="createDefaultEdgeStyle--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createDefaultEdgeStyle</h4>
|
|
<pre>protected java.util.Map<java.lang.String,java.lang.Object> createDefaultEdgeStyle()</pre>
|
|
<div class="block">Creates and returns the default edge style.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the default edge style.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getDefaultVertexStyle--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDefaultVertexStyle</h4>
|
|
<pre>public java.util.Map<java.lang.String,java.lang.Object> getDefaultVertexStyle()</pre>
|
|
<div class="block">Returns the default style for vertices.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the default vertex style.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setDefaultVertexStyle-java.util.Map-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setDefaultVertexStyle</h4>
|
|
<pre>public void setDefaultVertexStyle​(java.util.Map<java.lang.String,java.lang.Object> value)</pre>
|
|
<div class="block">Sets the default style for vertices.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>value</code> - Style to be used for vertices.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getDefaultEdgeStyle--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDefaultEdgeStyle</h4>
|
|
<pre>public java.util.Map<java.lang.String,java.lang.Object> getDefaultEdgeStyle()</pre>
|
|
<div class="block">Returns the default style for edges.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the default edge style.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setDefaultEdgeStyle-java.util.Map-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setDefaultEdgeStyle</h4>
|
|
<pre>public void setDefaultEdgeStyle​(java.util.Map<java.lang.String,java.lang.Object> value)</pre>
|
|
<div class="block">Sets the default style for edges.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>value</code> - Style to be used for edges.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="putCellStyle-java.lang.String-java.util.Map-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>putCellStyle</h4>
|
|
<pre>public void putCellStyle​(java.lang.String name,
|
|
java.util.Map<java.lang.String,java.lang.Object> style)</pre>
|
|
<div class="block">Stores the specified style under the given name.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - Name for the style to be stored.</dd>
|
|
<dd><code>style</code> - Key, value pairs that define the style.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getCellStyle-java.lang.String-java.util.Map-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>getCellStyle</h4>
|
|
<pre>public java.util.Map<java.lang.String,java.lang.Object> getCellStyle​(java.lang.String name,
|
|
java.util.Map<java.lang.String,java.lang.Object> defaultStyle)</pre>
|
|
<div class="block">Returns the cell style for the specified cell or the given defaultStyle
|
|
if no style can be found for the given stylename.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - String of the form [(stylename|key=value);] that represents the
|
|
style.</dd>
|
|
<dd><code>defaultStyle</code> - Default style to be returned if no style can be found.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the style for the given formatted cell style.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar.bottom">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<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/mxStylesheet.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>
|
|
<div class="aboutLanguage"><p><b>mxGraph 4.0.0</b></p></div>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../com/mxgraph/view/mxStyleRegistry.html" title="class in com.mxgraph.view"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../com/mxgraph/view/mxSwimlaneManager.html" title="class in com.mxgraph.view"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?com/mxgraph/view/mxStylesheet.html" target="_top">Frames</a></li>
|
|
<li><a href="mxStylesheet.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");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li><a href="#field.summary">Field</a> | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
<p class="legalCopy"><small><font size=1>Copyright (c) 2010-2017 <a href="http://www.jgraph.com/"
|
|
target="_blank">Gaudenz Alder, JGraph Ltd</a>. All rights reserved.</font></small></p>
|
|
</body>
|
|
</html>
|