📄 resizemanager.html
字号:
<A NAME="HORIZONTAL"><!-- --></A><H3>HORIZONTAL</H3><PRE>public final int <B>HORIZONTAL</B></PRE><DL><DD>Only horizontal resizing will be performed.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javatools.swing.ResizeManager.HORIZONTAL">Constant Field Values</A></DL></DL><HR><A NAME="VERTICAL"><!-- --></A><H3>VERTICAL</H3><PRE>public final int <B>VERTICAL</B></PRE><DL><DD>Only vertical resizing will be performed.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javatools.swing.ResizeManager.VERTICAL">Constant Field Values</A></DL></DL><HR><A NAME="BOTH"><!-- --></A><H3>BOTH</H3><PRE>public final int <B>BOTH</B></PRE><DL><DD>Both horizontal and vertical resizing will be performed.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javatools.swing.ResizeManager.BOTH">Constant Field Values</A></DL></DL><!-- ========= 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="ResizeManager()"><!-- --></A><H3>ResizeManager</H3><PRE>public <B>ResizeManager</B>()</PRE><DL><DD>Creates new ResizeManager<P></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="setContainer(java.awt.Container, java.awt.Dimension, java.awt.Dimension)"><!-- --></A><H3>setContainer</H3><PRE>public void <B>setContainer</B>(java.awt.Container cont, java.awt.Dimension initialDims, java.awt.Dimension minDims)</PRE><DL><DD>Sets the container whose dimension will be checked.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>cont</CODE> - The referenced container.<DD><CODE>initialDims</CODE> - Initial dimension of the container.<DD><CODE>minDims</CODE> - Minimum dimension of the container.</DL></DD></DL><HR><A NAME="getContainer()"><!-- --></A><H3>getContainer</H3><PRE>public java.awt.Container <B>getContainer</B>()</PRE><DL><DD>Returns the monitored container.<P><DD><DL><DT><B>Returns:</B><DD>The referenced container.</DL></DD></DL><HR><A NAME="getContainerInitialDimension()"><!-- --></A><H3>getContainerInitialDimension</H3><PRE>public java.awt.Dimension <B>getContainerInitialDimension</B>()</PRE><DL><DD>Returns initial dimension of the monitored container.<P><DD><DL><DT><B>Returns:</B><DD>The initial dimension of the referenced container.</DL></DD></DL><HR><A NAME="getContainerMinDimension()"><!-- --></A><H3>getContainerMinDimension</H3><PRE>public java.awt.Dimension <B>getContainerMinDimension</B>()</PRE><DL><DD>Returns minimum dimension of the monitored container.<P><DD><DL><DT><B>Returns:</B><DD>The minimum dimension of the referenced container.</DL></DD></DL><HR><A NAME="addComponent(javax.swing.JComponent, java.awt.Dimension, int)"><!-- --></A><H3>addComponent</H3><PRE>public void <B>addComponent</B>(javax.swing.JComponent comp, java.awt.Dimension dims, int resizeOpt)</PRE><DL><DD>Adds a component to resize on resizing of the monitored container.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>comp</CODE> - The component to add.<DD><CODE>dims</CODE> - Initial dimension of the component.<DD><CODE>resizeOpt</CODE> - Integer value representing how resizing will be performed.</DL></DD></DL><HR><A NAME="getNumComponents()"><!-- --></A><H3>getNumComponents</H3><PRE>public int <B>getNumComponents</B>()</PRE><DL><DD>Returns the number of managed components.<P><DD><DL><DT><B>Returns:</B><DD>The number of managed components.</DL></DD></DL><HR><A NAME="getComponent(int)"><!-- --></A><H3>getComponent</H3><PRE>public javax.swing.JComponent <B>getComponent</B>(int numComponent) throws java.lang.IndexOutOfBoundsException</PRE><DL><DD>Returns a referenced component.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>numComponent</CODE> - The position of the needed component.<DT><B>Returns:</B><DD>The reference to managed component.<DT><B>Throws:</B><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If <CODE>numComponent</CODE> is not valid.</DL></DD></DL><HR><A NAME="removeComponent(int)"><!-- --></A><H3>removeComponent</H3><PRE>public void <B>removeComponent</B>(int numComponent) throws java.lang.IndexOutOfBoundsException</PRE><DL><DD>Removes a component from the list.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>numComponent</CODE> - The position of the component.<DT><B>Throws:</B><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If <CODE>numComponent</CODE> is not valid.</DL></DD></DL><HR><A NAME="getInitialDimension(int)"><!-- --></A><H3>getInitialDimension</H3><PRE>public java.awt.Dimension <B>getInitialDimension</B>(int numComponent) throws java.lang.IndexOutOfBoundsException</PRE><DL><DD>Returns initial dimension of a component.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>numComponent</CODE> - The position of the component.<DT><B>Returns:</B><DD>The initial dimension of the component.<DT><B>Throws:</B><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If <CODE>numComponent</CODE> is not valid.</DL></DD></DL><HR><A NAME="getResizeOption(int)"><!-- --></A><H3>getResizeOption</H3><PRE>public int <B>getResizeOption</B>(int numComponent) throws java.lang.IndexOutOfBoundsException</PRE><DL><DD>Returns the resize option for a component.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>numComponent</CODE> - The position of the needed component.<DT><B>Returns:</B><DD>The value representing how resizing will be performed.<DT><B>Throws:</B><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If <CODE>numComponent</CODE> is not valid.</DL></DD></DL><HR><A NAME="resize()"><!-- --></A><H3>resize</H3><PRE>public void <B>resize</B>()</PRE><DL><DD>Resizes the form by taking current dimension of the container.<P><DD><DL></DL></DD></DL><HR><A NAME="initSize()"><!-- --></A><H3>initSize</H3><PRE>public void <B>initSize</B>()</PRE><DL><DD>Initializes the monitored object with initials sizes.<P><DD><DL></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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../javatools/swing/PresentationPanel.html"><B>PREV CLASS</B></A> <A HREF="../../javatools/swing/ScriptExecutorWizard.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="ResizeManager.html" TARGET="_top"><B>NO FRAMES</B></A> <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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -