spacer.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 513 行 · 第 1/2 页
HTML
513 行
<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.Spacer.RELATIVE">Constant Field Values</A></DL></DL><HR><A NAME="ABSOLUTE"><!-- --></A><H3>ABSOLUTE</H3><PRE>public static final int <B>ABSOLUTE</B></PRE><DL><DD>A constant for 'absolute' spacing.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jfree.chart.Spacer.ABSOLUTE">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="Spacer(int, double, double, double, double)"><!-- --></A><H3>Spacer</H3><PRE>public <B>Spacer</B>(int type, double left, double top, double right, double bottom)</PRE><DL><DD>Creates a new Spacer object. <p> The space can be specified in relative or absolute terms (using the constants <code>RELATIVE</code> and <code>ABSOLUTE</code> for the <code>type</code> argument. For relative spacing, the margins are specified as percentages (of the overall height or width). For absolute spacing, the margins are specified in points (1/72 inch).<P><DT><B>Parameters:</B><DD><CODE>type</CODE> - the type of spacing (relative or absolute).<DD><CODE>left</CODE> - the left margin.<DD><CODE>top</CODE> - the top margin.<DD><CODE>right</CODE> - the right margin.<DD><CODE>bottom</CODE> - the bottom margin.</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="getLeftSpace(double)"><!-- --></A><H3>getLeftSpace</H3><PRE>public double <B>getLeftSpace</B>(double width)</PRE><DL><DD>Returns the amount of space for the left hand side of a rectangular area. <p> The width argument is only used for calculating 'relative' spacing.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the overall width of the rectangular area.<DT><B>Returns:</B><DD>the space (in points).</DL></DD></DL><HR><A NAME="getRightSpace(double)"><!-- --></A><H3>getRightSpace</H3><PRE>public double <B>getRightSpace</B>(double width)</PRE><DL><DD>Returns the amount of space for the right hand side of a rectangular area. <p> The width argument is only used for calculating 'relative' spacing.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the overall width of the rectangular area.<DT><B>Returns:</B><DD>the space (in points).</DL></DD></DL><HR><A NAME="getTopSpace(double)"><!-- --></A><H3>getTopSpace</H3><PRE>public double <B>getTopSpace</B>(double height)</PRE><DL><DD>Returns the amount of space for the top of a rectangular area. <p> The height argument is only used for calculating 'relative' spacing.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>height</CODE> - the overall height of the rectangular area.<DT><B>Returns:</B><DD>the space (in points).</DL></DD></DL><HR><A NAME="getBottomSpace(double)"><!-- --></A><H3>getBottomSpace</H3><PRE>public double <B>getBottomSpace</B>(double height)</PRE><DL><DD>Returns the amount of space for the bottom of a rectangular area. <p> The height argument is only used for calculating 'relative' spacing.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>height</CODE> - the overall height of the rectangular area.<DT><B>Returns:</B><DD>the space (in points).</DL></DD></DL><HR><A NAME="getAdjustedWidth(double)"><!-- --></A><H3>getAdjustedWidth</H3><PRE>public double <B>getAdjustedWidth</B>(double width)</PRE><DL><DD>Returns the width after adding the left and right spacing amounts.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the original width.<DT><B>Returns:</B><DD>the adjusted width.</DL></DD></DL><HR><A NAME="getAdjustedHeight(double)"><!-- --></A><H3>getAdjustedHeight</H3><PRE>public double <B>getAdjustedHeight</B>(double height)</PRE><DL><DD>Returns the height after adding the top and bottom spacing amounts.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>height</CODE> - the original height.<DT><B>Returns:</B><DD>the adjusted height.</DL></DD></DL><HR><A NAME="trim(java.awt.geom.Rectangle2D)"><!-- --></A><H3>trim</H3><PRE>public void <B>trim</B>(java.awt.geom.Rectangle2D area)</PRE><DL><DD>Calculates the margins and trims them from the supplied area.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>area</CODE> - the area to be trimmed.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object obj)</PRE><DL><DD>Tests this object for equality with another object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the other object.<DT><B>Returns:</B><DD><code>true</code> or <code>false</code>.</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="../../../org/jfree/chart/SeriesShapeFactory.html"><B>PREV CLASS</B></A> <A HREF="../../../org/jfree/chart/StandardLegend.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="Spacer.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 + =
减小字号Ctrl + -
显示快捷键?