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