PageRenderTime 23ms CodeModel.GetById 2ms app.highlight 15ms RepoModel.GetById 1ms app.codeStats 0ms

/doc/com/googlecode/charts4j/Fills.html

http://charts4j.googlecode.com/
HTML | 282 lines | 231 code | 31 blank | 20 comment | 0 complexity | 045c5c16ea66b48da9bf7cedc2350f4f MD5 | raw file
  1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2<!--NewPage-->
  3<HTML>
  4<HEAD>
  5<!-- Generated by javadoc (build 1.5.0_16) on Tue May 19 12:59:31 MDT 2009 -->
  6<TITLE>
  7Fills (charts4j - 1.2)
  8</TITLE>
  9
 10<META NAME="keywords" CONTENT="com.googlecode.charts4j.Fills class">
 11
 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
 13
 14<SCRIPT type="text/javascript">
 15function windowTitle()
 16{
 17    parent.document.title="Fills (charts4j - 1.2)";
 18}
 19</SCRIPT>
 20<NOSCRIPT>
 21</NOSCRIPT>
 22
 23</HEAD>
 24
 25<BODY BGCOLOR="white" onload="windowTitle();">
 26
 27
 28<!-- ========= START OF TOP NAVBAR ======= -->
 29<A NAME="navbar_top"><!-- --></A>
 30<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
 31<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 32<TR>
 33<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 34<A NAME="navbar_top_firstrow"><!-- --></A>
 35<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 36  <TR ALIGN="center" VALIGN="top">
 37  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 38  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../com/googlecode/charts4j/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 39  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 40  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 44  </TR>
 45</TABLE>
 46</TD>
 47<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 48</EM>
 49</TD>
 50</TR>
 51
 52<TR>
 53<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 54&nbsp;<A HREF="../../../com/googlecode/charts4j/Fill.html" title="interface in com.googlecode.charts4j"><B>PREV CLASS</B></A>&nbsp;
 55&nbsp;<A HREF="../../../com/googlecode/charts4j/GChart.html" title="interface in com.googlecode.charts4j"><B>NEXT CLASS</B></A></FONT></TD>
 56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 57  <A HREF="../../../index.html?com/googlecode/charts4j/Fills.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 58&nbsp;<A HREF="Fills.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 59&nbsp;<SCRIPT type="text/javascript">
 60  <!--
 61  if(window==top) {
 62    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
 63  }
 64  //-->
 65</SCRIPT>
 66<NOSCRIPT>
 67  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
 68</NOSCRIPT>
 69
 70
 71</FONT></TD>
 72</TR>
 73<TR>
 74<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 75  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 76<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 77DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 78</TR>
 79</TABLE>
 80<A NAME="skip-navbar_top"></A>
 81<!-- ========= END OF TOP NAVBAR ========= -->
 82
 83<HR>
 84<!-- ======== START OF CLASS DATA ======== -->
 85<H2>
 86<FONT SIZE="-1">
 87com.googlecode.charts4j</FONT>
 88<BR>
 89Class Fills</H2>
 90<PRE>
 91<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
 92  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.googlecode.charts4j.Fills</B>
 93</PRE>
 94<HR>
 95<DL>
 96<DT><PRE>public final class <B>Fills</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
 97</PRE>
 98
 99<P>
100Static factory class for <A HREF="../../../com/googlecode/charts4j/Fill.html" title="interface in com.googlecode.charts4j"><CODE>Fill</CODE></A> hierarchy. Construct
101 <A HREF="../../../com/googlecode/charts4j/LinearGradientFill.html" title="class in com.googlecode.charts4j"><CODE>LinearGradientFill</CODE></A>, <A HREF="../../../com/googlecode/charts4j/LinearStripesFill.html" title="class in com.googlecode.charts4j"><CODE>LinearStripesFill</CODE></A>, <A HREF="../../../com/googlecode/charts4j/Fill.html" title="interface in com.googlecode.charts4j"><CODE>Fill</CODE></A>
102<P>
103
104<P>
105<DL>
106<DT><B>Author:</B></DT>
107  <DD>Julien Chastang (julien.c.chastang at gmail dot com)</DD>
108</DL>
109<HR>
110
111<P>
112
113<!-- ========== METHOD SUMMARY =========== -->
114
115<A NAME="method_summary"><!-- --></A>
116<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
117<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
118<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
119<B>Method Summary</B></FONT></TH>
120</TR>
121<TR BGCOLOR="white" CLASS="TableRowColor">
122<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
123<CODE>static&nbsp;<A HREF="../../../com/googlecode/charts4j/LinearGradientFill.html" title="class in com.googlecode.charts4j">LinearGradientFill</A></CODE></FONT></TD>
124<TD><CODE><B><A HREF="../../../com/googlecode/charts4j/Fills.html#newLinearGradientFill(int, com.googlecode.charts4j.Color, double)">newLinearGradientFill</A></B>(int&nbsp;angle,
125                      <A HREF="../../../com/googlecode/charts4j/Color.html" title="class in com.googlecode.charts4j">Color</A>&nbsp;color,
126                      double&nbsp;offset)</CODE>
127
128<BR>
129&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create linear gradient fill.</TD>
130</TR>
131<TR BGCOLOR="white" CLASS="TableRowColor">
132<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
133<CODE>static&nbsp;<A HREF="../../../com/googlecode/charts4j/LinearStripesFill.html" title="class in com.googlecode.charts4j">LinearStripesFill</A></CODE></FONT></TD>
134<TD><CODE><B><A HREF="../../../com/googlecode/charts4j/Fills.html#newLinearStripesFill(int, com.googlecode.charts4j.Color, double)">newLinearStripesFill</A></B>(int&nbsp;angle,
135                     <A HREF="../../../com/googlecode/charts4j/Color.html" title="class in com.googlecode.charts4j">Color</A>&nbsp;color,
136                     double&nbsp;width)</CODE>
137
138<BR>
139&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create linear stripes fill.</TD>
140</TR>
141<TR BGCOLOR="white" CLASS="TableRowColor">
142<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
143<CODE>static&nbsp;<A HREF="../../../com/googlecode/charts4j/Fill.html" title="interface in com.googlecode.charts4j">Fill</A></CODE></FONT></TD>
144<TD><CODE><B><A HREF="../../../com/googlecode/charts4j/Fills.html#newSolidFill(com.googlecode.charts4j.Color)">newSolidFill</A></B>(<A HREF="../../../com/googlecode/charts4j/Color.html" title="class in com.googlecode.charts4j">Color</A>&nbsp;color)</CODE>
145
146<BR>
147&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a solid fill.</TD>
148</TR>
149</TABLE>
150&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
151<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
152<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
153<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH>
154</TR>
155<TR BGCOLOR="white" CLASS="TableRowColor">
156<TD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
157</TR>
158</TABLE>
159&nbsp;
160<P>
161
162<!-- ============ METHOD DETAIL ========== -->
163
164<A NAME="method_detail"><!-- --></A>
165<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
166<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
167<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
168<B>Method Detail</B></FONT></TH>
169</TR>
170</TABLE>
171
172<A NAME="newLinearGradientFill(int, com.googlecode.charts4j.Color, double)"><!-- --></A><H3>
173newLinearGradientFill</H3>
174<PRE>
175public static <A HREF="../../../com/googlecode/charts4j/LinearGradientFill.html" title="class in com.googlecode.charts4j">LinearGradientFill</A> <B>newLinearGradientFill</B>(int&nbsp;angle,
176                                                       <A HREF="../../../com/googlecode/charts4j/Color.html" title="class in com.googlecode.charts4j">Color</A>&nbsp;color,
177                                                       double&nbsp;offset)</PRE>
178<DL>
179<DD>Create linear gradient fill.
180<P>
181<DD><DL>
182<DT><B>Parameters:</B><DD><CODE>angle</CODE> - specifies the angle of the gradient between 0 (horizontal) and
183            90 (vertical).<DD><CODE>color</CODE> - color for gradient.Cannot be null.<DD><CODE>offset</CODE> - specify at what point the color is pure where: 0 specifies the
184            left-most chart position and 100 the right-most.
185<DT><B>Returns:</B><DD>a newly constructed linear gradient fill</DL>
186</DD>
187</DL>
188<HR>
189
190<A NAME="newLinearStripesFill(int, com.googlecode.charts4j.Color, double)"><!-- --></A><H3>
191newLinearStripesFill</H3>
192<PRE>
193public static <A HREF="../../../com/googlecode/charts4j/LinearStripesFill.html" title="class in com.googlecode.charts4j">LinearStripesFill</A> <B>newLinearStripesFill</B>(int&nbsp;angle,
194                                                     <A HREF="../../../com/googlecode/charts4j/Color.html" title="class in com.googlecode.charts4j">Color</A>&nbsp;color,
195                                                     double&nbsp;width)</PRE>
196<DL>
197<DD>Create linear stripes fill.
198<P>
199<DD><DL>
200<DT><B>Parameters:</B><DD><CODE>angle</CODE> - specifies the angle of the gradient between 0 (horizontal) and
201            90 (vertical)<DD><CODE>color</CODE> - color of stripe.<DD><CODE>width</CODE> - must be between 0 and 100 where 100 is the full width of the
202            chart. Stripes are repeated until the chart is filled.
203<DT><B>Returns:</B><DD>a newly constructed linear stripes fill</DL>
204</DD>
205</DL>
206<HR>
207
208<A NAME="newSolidFill(com.googlecode.charts4j.Color)"><!-- --></A><H3>
209newSolidFill</H3>
210<PRE>
211public static <A HREF="../../../com/googlecode/charts4j/Fill.html" title="interface in com.googlecode.charts4j">Fill</A> <B>newSolidFill</B>(<A HREF="../../../com/googlecode/charts4j/Color.html" title="class in com.googlecode.charts4j">Color</A>&nbsp;color)</PRE>
212<DL>
213<DD>Create a solid fill.
214<P>
215<DD><DL>
216<DT><B>Parameters:</B><DD><CODE>color</CODE> - color of solid fill.
217<DT><B>Returns:</B><DD>a newly constructed solid fill</DL>
218</DD>
219</DL>
220<!-- ========= END OF CLASS DATA ========= -->
221<HR>
222
223
224<!-- ======= START OF BOTTOM NAVBAR ====== -->
225<A NAME="navbar_bottom"><!-- --></A>
226<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
227<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
228<TR>
229<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
230<A NAME="navbar_bottom_firstrow"><!-- --></A>
231<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
232  <TR ALIGN="center" VALIGN="top">
233  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
234  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../com/googlecode/charts4j/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
235  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
236  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
237  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
238  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
239  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
240  </TR>
241</TABLE>
242</TD>
243<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
244</EM>
245</TD>
246</TR>
247
248<TR>
249<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
250&nbsp;<A HREF="../../../com/googlecode/charts4j/Fill.html" title="interface in com.googlecode.charts4j"><B>PREV CLASS</B></A>&nbsp;
251&nbsp;<A HREF="../../../com/googlecode/charts4j/GChart.html" title="interface in com.googlecode.charts4j"><B>NEXT CLASS</B></A></FONT></TD>
252<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
253  <A HREF="../../../index.html?com/googlecode/charts4j/Fills.html" target="_top"><B>FRAMES</B></A>  &nbsp;
254&nbsp;<A HREF="Fills.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
255&nbsp;<SCRIPT type="text/javascript">
256  <!--
257  if(window==top) {
258    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
259  }
260  //-->
261</SCRIPT>
262<NOSCRIPT>
263  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
264</NOSCRIPT>
265
266
267</FONT></TD>
268</TR>
269<TR>
270<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
271  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
272<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
273DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
274</TR>
275</TABLE>
276<A NAME="skip-navbar_bottom"></A>
277<!-- ======== END OF BOTTOM NAVBAR ======= -->
278
279<HR>
280
281</BODY>
282</HTML>