paintutilities.html

来自「JAVA写的一个不规则窗体程序!用了JNI等技术」· HTML 代码 · 共 368 行 · 第 1/2 页

HTML
368
字号
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Paints a smooth gradient in a rectangle given the bounds x, y, width, height and orientation.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#toString()">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="PaintUtilities()"><!-- --></A><H3>
PaintUtilities</H3>
<PRE>
public <B>PaintUtilities</B>()</PRE>
<DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="paintDropShadow(java.awt.Graphics, int, int, int, int)"><!-- --></A><H3>
paintDropShadow</H3>
<PRE>
public static void <B>paintDropShadow</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Graphics.html">Graphics</A>&nbsp;g,                                   int&nbsp;x,                                   int&nbsp;y,                                   int&nbsp;width,                                   int&nbsp;height)</PRE>
<DL>
<DD>Paints a rectangular drop shadow with a 5 pixel offset.  The bounds passed into the function should be the actual area that is to be shadowed.  The function calculates the shadow's coordinates itself.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - the Graphics instance<DD><CODE>x</CODE> - the x position of the component<DD><CODE>y</CODE> - the y position of the component<DD><CODE>width</CODE> - the width of the component<DD><CODE>height</CODE> - the height of the component</DL>
</DD>
</DL>
<HR>

<A NAME="paintDropShadow(java.awt.Graphics, int, int, int, int, int)"><!-- --></A><H3>
paintDropShadow</H3>
<PRE>
public static void <B>paintDropShadow</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Graphics.html">Graphics</A>&nbsp;g,                                   int&nbsp;x,                                   int&nbsp;y,                                   int&nbsp;width,                                   int&nbsp;height,                                   int&nbsp;offset)</PRE>
<DL>
<DD>Paints a rectangular drop shadow with the specified pixel offset.  The bounds passed into the function should be the actual area that is to be shadowed.  The function calculates the shadow's coordinates itself.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - the Graphics instance<DD><CODE>x</CODE> - the x position of the component<DD><CODE>y</CODE> - the y position of the component<DD><CODE>width</CODE> - the width of the component<DD><CODE>height</CODE> - the height of the component<DD><CODE>offset</CODE> - the offset of the shadow in pixels</DL>
</DD>
</DL>
<HR>

<A NAME="paintGradient(java.awt.Graphics, int, int, int, int, java.awt.Color, java.awt.Color)"><!-- --></A><H3>
paintGradient</H3>
<PRE>
public static void <B>paintGradient</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Graphics.html">Graphics</A>&nbsp;g,                                 int&nbsp;x,                                 int&nbsp;y,                                 int&nbsp;width,                                 int&nbsp;height,                                 <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Color.html">Color</A>&nbsp;startColor,                                 <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Color.html">Color</A>&nbsp;endColor)</PRE>
<DL>
<DD>Paints a smooth gradient in a rectangle given the bounds x, y, width, height.   This defaults to drawing a horizontal gradient.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - the Graphics instance<DD><CODE>x</CODE> - the x position<DD><CODE>y</CODE> - the y position<DD><CODE>width</CODE> - the width of the region<DD><CODE>height</CODE> - the height of the region<DD><CODE>startColor</CODE> - the start color of the gradient<DD><CODE>endColor</CODE> - the end color of the gradient</DL>
</DD>
</DL>
<HR>

<A NAME="paintGradient(java.awt.Graphics, int, int, int, int, java.awt.Color, java.awt.Color, int)"><!-- --></A><H3>
paintGradient</H3>
<PRE>
public static void <B>paintGradient</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Graphics.html">Graphics</A>&nbsp;g,                                 int&nbsp;x,                                 int&nbsp;y,                                 int&nbsp;width,                                 int&nbsp;height,                                 <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Color.html">Color</A>&nbsp;startColor,                                 <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Color.html">Color</A>&nbsp;endColor,                                 int&nbsp;orientation)</PRE>
<DL>
<DD>Paints a smooth gradient in a rectangle given the bounds x, y, width, height and orientation.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - the Graphics instance<DD><CODE>x</CODE> - the x position<DD><CODE>y</CODE> - the y position<DD><CODE>width</CODE> - the width of the region<DD><CODE>height</CODE> - the height of the region<DD><CODE>startColor</CODE> - the start color of the gradient<DD><CODE>endColor</CODE> - the end color of the gradient<DD><CODE>orientation</CODE> - the orientation of the gradient - either horizontal or vertical</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/PaintUtilities.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../serialized-form.html"><FONT CLASS="NavBarFont1"><B>Serialized</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/ibm/iwt/util/IWTUtilities.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="PaintUtilities.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?