blob: 958257f8d08b4dade8ce4db530147242f83f67ec [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc (version 1.7.0_03) on Fri Feb 22 10:26:21 CET 2013 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Color (ODFDOM API v0.8.9-incubating - http://incubator.apache.org/odftoolkit/)</title>
<meta name="date" content="2013-02-22">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Color (ODFDOM API v0.8.9-incubating - http://incubator.apache.org/odftoolkit/)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<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/Color.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-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/odftoolkit/odfdom/type/ClipShape.html" title="class in org.odftoolkit.odfdom.type"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/odftoolkit/odfdom/type/Coordinate.html" title="class in org.odftoolkit.odfdom.type"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/odftoolkit/odfdom/type/Color.html" target="_top">Frames</a></li>
<li><a href="Color.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");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&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>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.odftoolkit.odfdom.type</div>
<h2 title="Class Color" class="title">Class Color</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.odftoolkit.odfdom.type.Color</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../org/odftoolkit/odfdom/type/OdfDataType.html" title="interface in org.odftoolkit.odfdom.type">OdfDataType</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">Color</span>
extends <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="../../../../org/odftoolkit/odfdom/type/OdfDataType.html" title="interface in org.odftoolkit.odfdom.type">OdfDataType</a></pre>
<div class="block">This class represents the in OpenDocument format used data type
See <a href="http://www.w3.org/TR/CSS21/syndata.html#value-def-color">W3C CSS specification</a> for further details.</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="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">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#AQUA">AQUA</a></strong></code>
<div class="block">The color aqua in sRGB space.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#BLACK">BLACK</a></strong></code>
<div class="block">The color black in sRGB space.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#BLUE">BLUE</a></strong></code>
<div class="block">The color blue in sRGB space.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#FUCHSIA">FUCHSIA</a></strong></code>
<div class="block">The color fuchsia in sRGB space.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#GRAY">GRAY</a></strong></code>
<div class="block">The color gray in sRGB space.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#GREEN">GREEN</a></strong></code>
<div class="block">The color green in sRGB space.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#LIME">LIME</a></strong></code>
<div class="block">The color lime in sRGB space.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#MAROON">MAROON</a></strong></code>
<div class="block">The color maroon in sRGB space.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#NAVY">NAVY</a></strong></code>
<div class="block">The color navy in sRGB space.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#OLIVE">OLIVE</a></strong></code>
<div class="block">The color olive in sRGB space.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#ORANGE">ORANGE</a></strong></code>
<div class="block">The color orange in sRGB space.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#PURPLE">PURPLE</a></strong></code>
<div class="block">The color purple in sRGB space.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#RED">RED</a></strong></code>
<div class="block">The color red in sRGB space.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#SILVER">SILVER</a></strong></code>
<div class="block">The color silver in sRGB space.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#TEAL">TEAL</a></strong></code>
<div class="block">The color teal in sRGB space.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#WHITE">WHITE</a></strong></code>
<div class="block">The color white in sRGB space.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#YELLOW">YELLOW</a></strong></code>
<div class="block">The color yellow in sRGB space.</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="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="../../../../org/odftoolkit/odfdom/type/Color.html#Color(java.awt.Color)">Color</a></strong>(<a href="http://download.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</a>&nbsp;color)</code>
<div class="block">Construct Color using <a href="http://download.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt"><code><code>java.awt.Color</code></code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#Color(float, float, float)">Color</a></strong>(float&nbsp;red,
float&nbsp;green,
float&nbsp;blue)</code>
<div class="block">Construct Color using the specified red, green, and blue values in the range (0.0 - 1.0).</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#Color(int, int, int)">Color</a></strong>(int&nbsp;red,
int&nbsp;green,
int&nbsp;blue)</code>
<div class="block">Construct Color using the specified red, green and blue values in the range (0 - 255).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#Color(java.lang.String)">Color</a></strong>(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;color)</code>
<div class="block">Construct Color by the parsing the given string.</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="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>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#equals(java.lang.Object)">equals</a></strong>(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#getAWTColor()">getAWTColor</a></strong>()</code>
<div class="block">Return the corresponding <a href="http://download.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt"><code><code>java.awt.Color</code></code></a> instance of the Color data type.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#hashCode()">hashCode</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#isValid(java.lang.String)">isValid</a></strong>(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;colorValue)</code>
<div class="block">Check if the specified String is a valid data type.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://download.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#mapColorToAWTColor(org.odftoolkit.odfdom.type.Color)">mapColorToAWTColor</a></strong>(<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a>&nbsp;color)</code>
<div class="block">Map a Color data type to <a href="http://download.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt"><code><code>java.awt.Color</code></code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#toSixDigitHexRGB(java.lang.String)">toSixDigitHexRGB</a></strong>(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;colorValue)</code>
<div class="block">Convert RGB color formats to six-digit hex RGB format.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#toString()">toString</a></strong>()</code>
<div class="block">Returns the Color in six HEX sRGB notation.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/odftoolkit/odfdom/type/Color.html#valueOf(java.lang.String)">valueOf</a></strong>(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;colorValue)</code>
<div class="block">Returns a Color instance representing the specified String value.</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&nbsp;java.lang.<a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></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="AQUA">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AQUA</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> AQUA</pre>
<div class="block">The color aqua in sRGB space.</div>
</li>
</ul>
<a name="BLACK">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>BLACK</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> BLACK</pre>
<div class="block">The color black in sRGB space.</div>
</li>
</ul>
<a name="BLUE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>BLUE</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> BLUE</pre>
<div class="block">The color blue in sRGB space.</div>
</li>
</ul>
<a name="FUCHSIA">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FUCHSIA</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> FUCHSIA</pre>
<div class="block">The color fuchsia in sRGB space.</div>
</li>
</ul>
<a name="GRAY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GRAY</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> GRAY</pre>
<div class="block">The color gray in sRGB space.</div>
</li>
</ul>
<a name="GREEN">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GREEN</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> GREEN</pre>
<div class="block">The color green in sRGB space.</div>
</li>
</ul>
<a name="LIME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LIME</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> LIME</pre>
<div class="block">The color lime in sRGB space.</div>
</li>
</ul>
<a name="MAROON">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MAROON</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> MAROON</pre>
<div class="block">The color maroon in sRGB space.</div>
</li>
</ul>
<a name="NAVY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NAVY</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> NAVY</pre>
<div class="block">The color navy in sRGB space.</div>
</li>
</ul>
<a name="OLIVE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>OLIVE</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> OLIVE</pre>
<div class="block">The color olive in sRGB space.</div>
</li>
</ul>
<a name="ORANGE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ORANGE</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> ORANGE</pre>
<div class="block">The color orange in sRGB space.</div>
</li>
</ul>
<a name="PURPLE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PURPLE</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> PURPLE</pre>
<div class="block">The color purple in sRGB space.</div>
</li>
</ul>
<a name="RED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>RED</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> RED</pre>
<div class="block">The color red in sRGB space.</div>
</li>
</ul>
<a name="SILVER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SILVER</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> SILVER</pre>
<div class="block">The color silver in sRGB space.</div>
</li>
</ul>
<a name="TEAL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TEAL</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> TEAL</pre>
<div class="block">The color teal in sRGB space.</div>
</li>
</ul>
<a name="WHITE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WHITE</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> WHITE</pre>
<div class="block">The color white in sRGB space.</div>
</li>
</ul>
<a name="YELLOW">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>YELLOW</h4>
<pre>public static final&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a> YELLOW</pre>
<div class="block">The color yellow in sRGB space.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Color(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Color</h4>
<pre>public&nbsp;Color(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;color)</pre>
<div class="block">Construct Color by the parsing the given string. The string should be observed sRGB color standard
which starts with "#" and following with six numbers or three numbers in Hex format.
For example, "#FFFFFF" is a valid argument and white color will be constructed.
<p>
For further information on sRGB,
see <A href="http://www.w3.org/pub/WWW/Graphics/Color/sRGB.html">
http://www.w3.org/pub/WWW/Graphics/Color/sRGB.html
</A>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>color</code> - represented using the 3 or 6 HEX sRGB notation.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the given argument is not a valid Color in sRGB HEX notation.</dd></dl>
</li>
</ul>
<a name="Color(int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Color</h4>
<pre>public&nbsp;Color(int&nbsp;red,
int&nbsp;green,
int&nbsp;blue)</pre>
<div class="block">Construct Color using the specified red, green and blue values in the range (0 - 255).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>red</code> - the red component.</dd><dd><code>green</code> - the green component.</dd><dd><code>blue</code> - the blue component.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>red</code>, <code>green</code> or <code>blue</code>
are outside of the range 0 to 255, inclusive.</dd></dl>
</li>
</ul>
<a name="Color(float, float, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Color</h4>
<pre>public&nbsp;Color(float&nbsp;red,
float&nbsp;green,
float&nbsp;blue)</pre>
<div class="block">Construct Color using the specified red, green, and blue values in the range (0.0 - 1.0).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>red</code> - the red component</dd><dd><code>green</code> - the green component</dd><dd><code>blue</code> - the blue component</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>red</code>, <code>green</code> or <code>blue</code> are
outside of the range 0.0 to 1.0, inclusive.</dd></dl>
</li>
</ul>
<a name="Color(java.awt.Color)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Color</h4>
<pre>public&nbsp;Color(<a href="http://download.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</a>&nbsp;color)</pre>
<div class="block">Construct Color using <a href="http://download.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt"><code><code>java.awt.Color</code></code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>color</code> - the specified <a href="http://download.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt"><code><code>java.awt.Color</code></code></a>.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the given argument is not a valid Color.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://download.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt"><code>Color</code></a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="toString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString()</pre>
<div class="block">Returns the Color in six HEX sRGB notation.
format.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a></code>&nbsp;in class&nbsp;<code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>a six number hexadecimal string representation of the Color</dd></dl>
</li>
</ul>
<a name="valueOf(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>valueOf</h4>
<pre>public static&nbsp;<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a>&nbsp;valueOf(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;colorValue)</pre>
<div class="block">Returns a Color instance representing the specified String value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>colorValue</code> - a six (or three) number hexadecimal string representation of the Color</dd>
<dt><span class="strong">Returns:</span></dt><dd>return a Color instance representing <code>stringValue</code>.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the given argument is not a valid Color.</dd></dl>
</li>
</ul>
<a name="isValid(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isValid</h4>
<pre>public static&nbsp;boolean&nbsp;isValid(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;colorValue)</pre>
<div class="block">Check if the specified String is a valid data type.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>colorValue</code> - a six (or three) number hexadecimal string representation of the Color</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if the value of argument is valid for data type false otherwise.</dd></dl>
</li>
</ul>
<a name="toSixDigitHexRGB(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toSixDigitHexRGB</h4>
<pre>public static&nbsp;<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toSixDigitHexRGB(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;colorValue)</pre>
<div class="block">Convert RGB color formats to six-digit hex RGB format.
The RGB mapping works as follows:
rgb(110%, 0%, 0%)----clipped to rgb(100%,0%,0%), return #ff0000
maroon----one of the seventeen fixed labeled numbers, return #800000
#ff0000----six-digit notation #rrggbb, returns the input
#f00----three-digit notation #rgb, return #ff0000
rgb(255,0,0)----integer range 0 - 255, return #ff0000
rgb(300,0,0)----clipped to rgb(255,0,0), return #ff0000
rgb(255,-10,0)----clipped to rgb(255,0,0), return #ff0000</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>colorValue</code> - The sRGB color value to be converted.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the converted color.</dd></dl>
</li>
</ul>
<a name="getAWTColor()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAWTColor</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</a>&nbsp;getAWTColor()</pre>
<div class="block">Return the corresponding <a href="http://download.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt"><code><code>java.awt.Color</code></code></a> instance of the Color data type.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the converted <a href="http://download.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt"><code><code>java.awt.Color</code></code></a> instance..</dd></dl>
</li>
</ul>
<a name="mapColorToAWTColor(org.odftoolkit.odfdom.type.Color)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mapColorToAWTColor</h4>
<pre>public static&nbsp;<a href="http://download.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</a>&nbsp;mapColorToAWTColor(<a href="../../../../org/odftoolkit/odfdom/type/Color.html" title="class in org.odftoolkit.odfdom.type">Color</a>&nbsp;color)</pre>
<div class="block">Map a Color data type to <a href="http://download.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt"><code><code>java.awt.Color</code></code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>color</code> - The color data type to be mapped..</dd>
<dt><span class="strong">Returns:</span></dt><dd>the converted <a href="http://download.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt"><code><code>java.awt.Color</code></code></a> instance.</dd></dl>
</li>
</ul>
<a name="equals(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public&nbsp;boolean&nbsp;equals(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj)</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a></code>&nbsp;in class&nbsp;<code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
<a name="hashCode()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>hashCode</h4>
<pre>public&nbsp;int&nbsp;hashCode()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a></code>&nbsp;in class&nbsp;<code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></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><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/Color.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-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/odftoolkit/odfdom/type/ClipShape.html" title="class in org.odftoolkit.odfdom.type"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/odftoolkit/odfdom/type/Coordinate.html" title="class in org.odftoolkit.odfdom.type"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/odftoolkit/odfdom/type/Color.html" target="_top">Frames</a></li>
<li><a href="Color.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>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&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>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2008-2013 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</small></p>
</body>
</html>