📄 jviewport.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#addImpl(java.awt.Component, java.lang.Object, int)">addImpl</A></B>(<A HREF="../../java/awt/Component.html">Component</A> child, <A HREF="../../java/lang/Object.html">Object</A> constraints, int index)</CODE><BR> Sets the <code>JViewport</code>s one lightweight child, which can be <code>null</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#computeBlit(int, int, java.awt.Point, java.awt.Point, java.awt.Dimension, java.awt.Rectangle)">computeBlit</A></B>(int dx, int dy, <A HREF="../../java/awt/Point.html">Point</A> blitFrom, <A HREF="../../java/awt/Point.html">Point</A> blitTo, <A HREF="../../java/awt/Dimension.html">Dimension</A> blitSize, <A HREF="../../java/awt/Rectangle.html">Rectangle</A> blitPaint)</CODE><BR> Computes the parameters for a blit where the backing store image currently contains <code>oldLoc</code> in the upper left hand corner and we're scrolling to <code>newLoc</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../java/awt/LayoutManager.html">LayoutManager</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#createLayoutManager()">createLayoutManager</A></B>()</CODE><BR> Subclassers can override this to install a different layout manager (or <code>null</code>) in the constructor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../javax/swing/JViewport.ViewListener.html">JViewport.ViewListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#createViewListener()">createViewListener</A></B>()</CODE><BR> Creates a listener for the view.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)">firePropertyChange</A></B>(<A HREF="../../java/lang/String.html">String</A> propertyName, <A HREF="../../java/lang/Object.html">Object</A> oldValue, <A HREF="../../java/lang/Object.html">Object</A> newValue)</CODE><BR> Notifies listeners of a property change.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#fireStateChanged()">fireStateChanged</A></B>()</CODE><BR> Notifies all <code>ChangeListeners</code> when the views size, position, or the viewports extent size has changed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#getAccessibleContext()">getAccessibleContext</A></B>()</CODE><BR> Gets the AccessibleContext associated with this JViewport.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Dimension.html">Dimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#getExtentSize()">getExtentSize</A></B>()</CODE><BR> Returns the size of the visible part of the view in view coordinates.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#getInsets()">getInsets</A></B>()</CODE><BR> Returns the insets (border) dimensions as (0,0,0,0), since borders are not supported on a <code>JViewport</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#getInsets(java.awt.Insets)">getInsets</A></B>(<A HREF="../../java/awt/Insets.html">Insets</A> insets)</CODE><BR> Returns an <code>Insets</code> object containing this <code>JViewport</code>s inset values.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#getScrollMode()">getScrollMode</A></B>()</CODE><BR> Returns the current scrolling mode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/plaf/ViewportUI.html">ViewportUI</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#getUI()">getUI</A></B>()</CODE><BR> Returns the L&F object that renders this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#getUIClassID()">getUIClassID</A></B>()</CODE><BR> Returns a string that specifies the name of the L&F class that renders this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#getView()">getView</A></B>()</CODE><BR> Returns the <code>JViewport</code>s one child or <code>null</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Point.html">Point</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#getViewPosition()">getViewPosition</A></B>()</CODE><BR> Returns the view coordinates that appear in the upper left hand corner of the viewport, or 0,0 if there's no view.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#getViewRect()">getViewRect</A></B>()</CODE><BR> Returns a rectangle whose origin is <code>getViewPosition</code> and size is <code>getExtentSize</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Dimension.html">Dimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#getViewSize()">getViewSize</A></B>()</CODE><BR> If the view's size hasn't been explicitly set, return the preferred size, otherwise return the view's current size.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JViewport.html#isBackingStoreEnabled()">isBackingStoreEnabled</A></B>()</CODE><BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -