lookandfeel.html.svn-base
来自「j2me设计的界面包」· SVN-BASE 代码 · 共 1,363 行 · 第 1/5 页
SVN-BASE
1,363 行
<PRE>
public abstract void <B>drawTextFieldCursor</B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A> g,
<A HREF="../../../../com/sun/lwuit/TextField.html" title="class in com.sun.lwuit">TextField</A> ta)</PRE>
<DL>
<DD>Draws the cursor of the text field, blinking is handled simply by avoiding a call to this method.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="drawTabbedPane(com.sun.lwuit.Graphics, com.sun.lwuit.TabbedPane)"><!-- --></A><H3>
drawTabbedPane</H3>
<PRE>
public abstract void <B>drawTabbedPane</B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A> g,
<A HREF="../../../../com/sun/lwuit/TabbedPane.html" title="class in com.sun.lwuit">TabbedPane</A> tp)</PRE>
<DL>
<DD>Invoked for drawing the Tab Pane widget
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getButtonPreferredSize(com.sun.lwuit.Button)"><!-- --></A><H3>
getButtonPreferredSize</H3>
<PRE>
public abstract <A HREF="../../../../com/sun/lwuit/geom/Dimension.html" title="class in com.sun.lwuit.geom">Dimension</A> <B>getButtonPreferredSize</B>(<A HREF="../../../../com/sun/lwuit/Button.html" title="class in com.sun.lwuit">Button</A> b)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>the preferred size for the radio button</DL>
</DD>
</DL>
<HR>
<A NAME="getCheckBoxPreferredSize(com.sun.lwuit.CheckBox)"><!-- --></A><H3>
getCheckBoxPreferredSize</H3>
<PRE>
public abstract <A HREF="../../../../com/sun/lwuit/geom/Dimension.html" title="class in com.sun.lwuit.geom">Dimension</A> <B>getCheckBoxPreferredSize</B>(<A HREF="../../../../com/sun/lwuit/CheckBox.html" title="class in com.sun.lwuit">CheckBox</A> cb)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>the preferred size for the checkbox</DL>
</DD>
</DL>
<HR>
<A NAME="getLabelPreferredSize(com.sun.lwuit.Label)"><!-- --></A><H3>
getLabelPreferredSize</H3>
<PRE>
public abstract <A HREF="../../../../com/sun/lwuit/geom/Dimension.html" title="class in com.sun.lwuit.geom">Dimension</A> <B>getLabelPreferredSize</B>(<A HREF="../../../../com/sun/lwuit/Label.html" title="class in com.sun.lwuit">Label</A> l)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>the preferred size for the label</DL>
</DD>
</DL>
<HR>
<A NAME="getListPreferredSize(com.sun.lwuit.List)"><!-- --></A><H3>
getListPreferredSize</H3>
<PRE>
public abstract <A HREF="../../../../com/sun/lwuit/geom/Dimension.html" title="class in com.sun.lwuit.geom">Dimension</A> <B>getListPreferredSize</B>(<A HREF="../../../../com/sun/lwuit/List.html" title="class in com.sun.lwuit">List</A> l)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>the preferred size for the list</DL>
</DD>
</DL>
<HR>
<A NAME="getMonthViewPreferredSize(com.sun.lwuit.Component)"><!-- --></A><H3>
getMonthViewPreferredSize</H3>
<PRE>
public abstract <A HREF="../../../../com/sun/lwuit/geom/Dimension.html" title="class in com.sun.lwuit.geom">Dimension</A> <B>getMonthViewPreferredSize</B>(<A HREF="../../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A> mv)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>the preferred size for the month view</DL>
</DD>
</DL>
<HR>
<A NAME="getRadioButtonPreferredSize(com.sun.lwuit.RadioButton)"><!-- --></A><H3>
getRadioButtonPreferredSize</H3>
<PRE>
public abstract <A HREF="../../../../com/sun/lwuit/geom/Dimension.html" title="class in com.sun.lwuit.geom">Dimension</A> <B>getRadioButtonPreferredSize</B>(<A HREF="../../../../com/sun/lwuit/RadioButton.html" title="class in com.sun.lwuit">RadioButton</A> rb)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>the preferred size for the radio button</DL>
</DD>
</DL>
<HR>
<A NAME="getTextAreaPreferredSize(com.sun.lwuit.TextArea)"><!-- --></A><H3>
getTextAreaPreferredSize</H3>
<PRE>
public abstract <A HREF="../../../../com/sun/lwuit/geom/Dimension.html" title="class in com.sun.lwuit.geom">Dimension</A> <B>getTextAreaPreferredSize</B>(<A HREF="../../../../com/sun/lwuit/TextArea.html" title="class in com.sun.lwuit">TextArea</A> ta)</PRE>
<DL>
<DD>Returns the preferred size of the text area
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the preferred size for the text area</DL>
</DD>
</DL>
<HR>
<A NAME="getTextFieldPreferredSize(com.sun.lwuit.TextField)"><!-- --></A><H3>
getTextFieldPreferredSize</H3>
<PRE>
public abstract <A HREF="../../../../com/sun/lwuit/geom/Dimension.html" title="class in com.sun.lwuit.geom">Dimension</A> <B>getTextFieldPreferredSize</B>(<A HREF="../../../../com/sun/lwuit/TextField.html" title="class in com.sun.lwuit">TextField</A> ta)</PRE>
<DL>
<DD>Returns the preferred size of the text field
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the preferred size for the text field</DL>
</DD>
</DL>
<HR>
<A NAME="getComboBoxPreferredSize(com.sun.lwuit.ComboBox)"><!-- --></A><H3>
getComboBoxPreferredSize</H3>
<PRE>
public abstract <A HREF="../../../../com/sun/lwuit/geom/Dimension.html" title="class in com.sun.lwuit.geom">Dimension</A> <B>getComboBoxPreferredSize</B>(<A HREF="../../../../com/sun/lwuit/ComboBox.html" title="class in com.sun.lwuit">ComboBox</A> box)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>the preferred size for the combo box</DL>
</DD>
</DL>
<HR>
<A NAME="drawVerticalScroll(com.sun.lwuit.Graphics, com.sun.lwuit.Component, float, float)"><!-- --></A><H3>
drawVerticalScroll</H3>
<PRE>
public void <B>drawVerticalScroll</B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A> g,
<A HREF="../../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A> c,
float offsetRatio,
float blockSizeRatio)</PRE>
<DL>
<DD>Draws a vertical scoll bar in the given component
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="drawHorizontalScroll(com.sun.lwuit.Graphics, com.sun.lwuit.Component, float, float)"><!-- --></A><H3>
drawHorizontalScroll</H3>
<PRE>
public void <B>drawHorizontalScroll</B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A> g,
<A HREF="../../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A> c,
float offsetRatio,
float blockSizeRatio)</PRE>
<DL>
<DD>Draws a horizontal scoll bar in the given component
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setFG(com.sun.lwuit.Graphics, com.sun.lwuit.Component)"><!-- --></A><H3>
setFG</H3>
<PRE>
public void <B>setFG</B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A> g,
<A HREF="../../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A> c)</PRE>
<DL>
<DD>Sets the foreground color and font for a generic component, reuse-able by most component drawing code
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getVerticalScrollWidth()"><!-- --></A><H3>
getVerticalScrollWidth</H3>
<PRE>
public int <B>getVerticalScrollWidth</B>()</PRE>
<DL>
<DD>Returns the default width of a vertical scroll bar
<P>
<DD><DL>
<DT><B>Returns:</B><DD>default width of a vertical scroll bar</DL>
</DD>
</DL>
<HR>
<A NAME="getHorizontalScrollHeight()"><!-- --></A><H3>
getHorizontalScrollHeight</H3>
<PRE>
public int <B>getHorizontalScrollHeight</B>()</PRE>
<DL>
<DD>Returns the default height of a horizontal scroll bar
<P>
<DD><DL>
<DT><B>Returns:</B><DD>default height of a horizontal scroll bar</DL>
</DD>
</DL>
<HR>
<A NAME="drawBorder(com.sun.lwuit.Graphics, com.sun.lwuit.Component, int, int)"><!-- --></A><H3>
drawBorder</H3>
<PRE>
public void <B>drawBorder</B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A> g,
<A HREF="../../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A> c,
int color,
int borderWidth)</PRE>
<DL>
<DD>Draws generic component border
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="drawBorder(com.sun.lwuit.Graphics, com.sun.lwuit.Component, int, int, int)"><!-- --></A><H3>
drawBorder</H3>
<PRE>
public void <B>drawBorder</B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A> g,
<A HREF="../../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A> c,
int topAndRightColor,
int bottomAndLeftColor,
int borderWidth)</PRE>
<DL>
<DD>Draws generic component border
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getTabbedPaneCell(com.sun.lwuit.TabbedPane, java.lang.String, com.sun.lwuit.Image, boolean, boolean, com.sun.lwuit.plaf.Style, com.sun.lwuit.plaf.Style, int, int, com.sun.lwuit.geom.Dimension, com.sun.lwuit.geom.Dimension)"><!-- --></A><H3>
getTabbedPaneCell</H3>
<PRE>
public abstract <A HREF="../../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A> <B>getTabbedPaneCell</B>(<A HREF="../../../../com/sun/lwuit/TabbedPane.html" title="class in com.sun.lwuit">TabbedPane</A> tp,
java.lang.String text,
<A HREF="../../../../com/sun/lwuit/Image.html" title="class in com.sun.lwuit">Image</A> icon,
boolean isSelected,
boolean cellHasFocus,
<A HREF="../../../../com/sun/lwuit/plaf/Style.html" title="class in com.sun.lwuit.plaf">Style</A> cellStyle,
<A HREF="../../../../com/sun/lwuit/plaf/Style.html" title="class in com.sun.lwuit.plaf">Style</A> tabbedPaneStyle,
int cellOffsetX,
int cellOffsetY,
<A HREF="../../../../com/sun/lwuit/geom/Dimension.html" title="class in com.sun.lwuit.geom">Dimension</A> cellsPreferredSize,
<A HREF="../../../../com/sun/lwuit/geom/Dimension.html" title="class in com.sun.lwuit.geom">Dimension</A> contentPaneSize)</PRE>
<DL>
<DD>Draws and return the TabbedPane cell component (renderer) according to each tab orientation, the borders are getting draws
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tp</CODE> - the TabbedPane<DD><CODE>text</CODE> - the cell text<DD><CODE>icon</CODE> - the cell icon image<DD><CODE>isSelected</CODE> - is the cell is the selected one<DD><CODE>cellHasFocus</CODE> - is the cell has focus<DD><CODE>cellStyle</CODE> - the cell Style object<DD><CODE>tabbedPaneStyle</CODE> - the TabbedPane Style object<DD><CODE>cellOffsetX</CODE> - the offset when the cell is on TOP or BOTTOM orientation<DD><CODE>cellOffsetY</CODE> - the offset when the cell is on LEFT or RIGHT orientation<DD><CODE>cellsPreferredSize</CODE> - the total cells PreferredSize<DD><CODE>contentPaneSize</CODE> - the contentPaneSize
<DT><B>Returns:</B><DD>A TabbedPane cell component</DL>
</DD>
</DL>
<HR>
<A NAME="drawTabbedPaneContentPane(com.sun.lwuit.TabbedPane, com.sun.lwuit.Graphics, com.sun.lwuit.geom.Rectangle, com.sun.lwuit.geom.Dimension, int, int, com.sun.lwuit.geom.Dimension, int, int)"><!-- --></A><H3>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?