style.html.svn-base

来自「j2me设计的界面包」· SVN-BASE 代码 · 共 1,435 行 · 第 1/4 页

SVN-BASE
1,435
字号
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.sun.lwuit.plaf.Style.SCALED_IMAGE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="TRANSPARENCY"><!-- --></A><H3>
TRANSPARENCY</H3>
<PRE>
public static final java.lang.String <B>TRANSPARENCY</B></PRE>
<DL>
<DD>Transparency attribute name for the theme hashtable
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.sun.lwuit.plaf.Style.TRANSPARENCY">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="MARGIN"><!-- --></A><H3>
MARGIN</H3>
<PRE>
public static final java.lang.String <B>MARGIN</B></PRE>
<DL>
<DD>Margin attribute name for the theme hashtable
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.sun.lwuit.plaf.Style.MARGIN">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="PADDING"><!-- --></A><H3>
PADDING</H3>
<PRE>
public static final java.lang.String <B>PADDING</B></PRE>
<DL>
<DD>Padding attribute name for the theme hashtable
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.sun.lwuit.plaf.Style.PADDING">Constant Field Values</A></DL>
</DL>

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

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

<A NAME="Style()"><!-- --></A><H3>
Style</H3>
<PRE>
public <B>Style</B>()</PRE>
<DL>
<DD>Each component when it draw itself uses this Object  to determine in what colors it should use. When a Component is generated it construct a default Style Object. The Default values for each Component can be changed by using the UIManager class
<P>
</DL>
<HR>

<A NAME="Style(com.sun.lwuit.plaf.Style)"><!-- --></A><H3>
Style</H3>
<PRE>
public <B>Style</B>(<A HREF="../../../../com/sun/lwuit/plaf/Style.html" title="class in com.sun.lwuit.plaf">Style</A>&nbsp;style)</PRE>
<DL>
<DD>Creates a full copy of the given style. Notice that if the original style was modified  manually (by invoking setters on it) it would not chnage when changing a theme/look and feel, however this newly created style would change in such a case.
<P>
</DL>
<HR>

<A NAME="Style(int, int, int, int, com.sun.lwuit.Font, byte)"><!-- --></A><H3>
Style</H3>
<PRE>
public <B>Style</B>(int&nbsp;fgColor,
             int&nbsp;bgColor,
             int&nbsp;fgSelectionColor,
             int&nbsp;bgSelectionColor,
             <A HREF="../../../../com/sun/lwuit/Font.html" title="class in com.sun.lwuit">Font</A>&nbsp;f,
             byte&nbsp;transparency)</PRE>
<DL>
<DD>Creates a new style with the given attributes
<P>
</DL>
<HR>

<A NAME="Style(int, int, int, int, com.sun.lwuit.Font, byte, com.sun.lwuit.Image, boolean)"><!-- --></A><H3>
Style</H3>
<PRE>
public <B>Style</B>(int&nbsp;fgColor,
             int&nbsp;bgColor,
             int&nbsp;fgSelectionColor,
             int&nbsp;bgSelectionColor,
             <A HREF="../../../../com/sun/lwuit/Font.html" title="class in com.sun.lwuit">Font</A>&nbsp;f,
             byte&nbsp;transparency,
             <A HREF="../../../../com/sun/lwuit/Image.html" title="class in com.sun.lwuit">Image</A>&nbsp;im,
             boolean&nbsp;scaledImage)</PRE>
<DL>
<DD>Creates a new style with the given attributes
<P>
</DL>

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

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

<A NAME="merge(com.sun.lwuit.plaf.Style)"><!-- --></A><H3>
merge</H3>
<PRE>
public void <B>merge</B>(<A HREF="../../../../com/sun/lwuit/plaf/Style.html" title="class in com.sun.lwuit.plaf">Style</A>&nbsp;style)</PRE>
<DL>
<DD>Merges the new style with the current style without changing the elements that were modified.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>style</CODE> - new values of styles from the current theme</DL>
</DD>
</DL>
<HR>

<A NAME="isModified()"><!-- --></A><H3>
isModified</H3>
<PRE>
public boolean <B>isModified</B>()</PRE>
<DL>
<DD>Returns true if the style was modified manually after it was created by the look and feel. If the style was modified manually (by one of the set methods) then it should be merged rather than overwritten.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

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

<DT><B>Returns:</B><DD>the background color for the component</DL>
</DD>
</DL>
<HR>

<A NAME="getBgImage()"><!-- --></A><H3>
getBgImage</H3>
<PRE>
public <A HREF="../../../../com/sun/lwuit/Image.html" title="class in com.sun.lwuit">Image</A> <B>getBgImage</B>()</PRE>
<DL>
<DD><DL>

<DT><B>Returns:</B><DD>the background image for the component</DL>
</DD>
</DL>
<HR>

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

<DT><B>Returns:</B><DD>the foreground color for the component</DL>
</DD>
</DL>
<HR>

<A NAME="getFont()"><!-- --></A><H3>
getFont</H3>
<PRE>
public <A HREF="../../../../com/sun/lwuit/Font.html" title="class in com.sun.lwuit">Font</A> <B>getFont</B>()</PRE>
<DL>
<DD><DL>

<DT><B>Returns:</B><DD>the font for the component</DL>
</DD>
</DL>
<HR>

<A NAME="setBgColor(int)"><!-- --></A><H3>
setBgColor</H3>
<PRE>
public void <B>setBgColor</B>(int&nbsp;bgColor)</PRE>
<DL>
<DD>Sets the background color for the component
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>bgColor</CODE> - RRGGBB color that ignors the alpha component</DL>
</DD>
</DL>
<HR>

<A NAME="setBgImage(com.sun.lwuit.Image)"><!-- --></A><H3>
setBgImage</H3>
<PRE>
public void <B>setBgImage</B>(<A HREF="../../../../com/sun/lwuit/Image.html" title="class in com.sun.lwuit">Image</A>&nbsp;bgImage)</PRE>
<DL>
<DD>Sets the background image for the component
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setFgColor(int)"><!-- --></A><H3>
setFgColor</H3>
<PRE>
public void <B>setFgColor</B>(int&nbsp;fgColor)</PRE>
<DL>
<DD>Sets the foreground color for the component
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setFont(com.sun.lwuit.Font)"><!-- --></A><H3>
setFont</H3>
<PRE>
public void <B>setFont</B>(<A HREF="../../../../com/sun/lwuit/Font.html" title="class in com.sun.lwuit">Font</A>&nbsp;font)</PRE>
<DL>
<DD>Sets the font for the component
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

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

<DT><B>Returns:</B><DD>the background selection color for the component</DL>
</DD>
</DL>
<HR>

<A NAME="setBgSelectionColor(int)"><!-- --></A><H3>
setBgSelectionColor</H3>
<PRE>
public void <B>setBgSelectionColor</B>(int&nbsp;bgSelectionColor)</PRE>
<DL>
<DD>Sets the background selection color for the component
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

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

<DT><B>Returns:</B><DD>the foreground selection color for the component</DL>
</DD>
</DL>
<HR>

<A NAME="setFgSelectionColor(int)"><!-- --></A><H3>
setFgSelectionColor</H3>
<PRE>
public void <B>setFgSelectionColor</B>(int&nbsp;fgSelectionColor)</PRE>
<DL>
<DD>Sets the foreground selection color for the component
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

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

<DT><B>Returns:</B><DD>true if the image in the background is scalled, false if it is tiled</DL>
</DD>
</DL>
<HR>

<A NAME="setScaleImage(boolean)"><!-- --></A><H3>
setScaleImage</H3>
<PRE>
public void <B>setScaleImage</B>(boolean&nbsp;scaleImage)</PRE>
<DL>
<DD>Set to true if the image in the background is scalled, false if it is tiled
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

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

<DT><B>Returns:</B><DD>the transparency level of the Component</DL>
</DD>
</DL>
<HR>

<A NAME="setBgTransparency(byte)"><!-- --></A><H3>
setBgTransparency</H3>
<PRE>
public void <B>setBgTransparency</B>(byte&nbsp;transparency)</PRE>
<DL>
<DD>Sets the Component transparency level.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>transparency</CODE> - transparency level as byte</DL>
</DD>
</DL>
<HR>

<A NAME="setBgTransparency(int)"><!-- --></A><H3>
setBgTransparency</H3>
<PRE>
public void <B>setBgTransparency</B>(int&nbsp;transparency)</PRE>
<DL>
<DD>Sets the Component transparency level. Valid values should be a  number between 0-255
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>transparency</CODE> - int value between 0-255</DL>
</DD>
</DL>
<HR>

⌨️ 快捷键说明

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