📄 zoompane.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_13) on Tue Jun 05 11:36:42 GMT-05:00 2007 --><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><TITLE>ZoomPane (Geotools 2.3.x 2.3.2 API)</TITLE><META NAME="keywords" CONTENT="org.geotools.gui.swing.ZoomPane class"><META NAME="keywords" CONTENT="SCALE_X"><META NAME="keywords" CONTENT="SCALE_Y"><META NAME="keywords" CONTENT="UNIFORM_SCALE"><META NAME="keywords" CONTENT="TRANSLATE_X"><META NAME="keywords" CONTENT="TRANSLATE_Y"><META NAME="keywords" CONTENT="ROTATE"><META NAME="keywords" CONTENT="RESET"><META NAME="keywords" CONTENT="DEFAULT_ZOOM"><META NAME="keywords" CONTENT="zoom"><META NAME="keywords" CONTENT="reset()"><META NAME="keywords" CONTENT="setResetPolicy()"><META NAME="keywords" CONTENT="getArea()"><META NAME="keywords" CONTENT="hasPreferredArea()"><META NAME="keywords" CONTENT="getPreferredArea()"><META NAME="keywords" CONTENT="setPreferredArea()"><META NAME="keywords" CONTENT="getVisibleArea()"><META NAME="keywords" CONTENT="setVisibleArea()"><META NAME="keywords" CONTENT="getZoomableBounds()"><META NAME="keywords" CONTENT="getDefaultSize()"><META NAME="keywords" CONTENT="getPreferredPixelSize()"><META NAME="keywords" CONTENT="getScaleFactor()"><META NAME="keywords" CONTENT="transform()"><META NAME="keywords" CONTENT="transformPixels()"><META NAME="keywords" CONTENT="addZoomChangeListener()"><META NAME="keywords" CONTENT="removeZoomChangeListener()"><META NAME="keywords" CONTENT="addMouseListener()"><META NAME="keywords" CONTENT="fireZoomChanged()"><META NAME="keywords" CONTENT="mouseSelectionPerformed()"><META NAME="keywords" CONTENT="getMouseSelectionShape()"><META NAME="keywords" CONTENT="isMagnifierEnabled()"><META NAME="keywords" CONTENT="setMagnifierEnabled()"><META NAME="keywords" CONTENT="isMagnifierVisible()"><META NAME="keywords" CONTENT="setMagnifierVisible()"><META NAME="keywords" CONTENT="getMagnifierGlass()"><META NAME="keywords" CONTENT="setMagnifierGlass()"><META NAME="keywords" CONTENT="getMagnifierBorder()"><META NAME="keywords" CONTENT="setMagnifierBorder()"><META NAME="keywords" CONTENT="correctApparentPixelPosition()"><META NAME="keywords" CONTENT="buildNavigationMenu()"><META NAME="keywords" CONTENT="getPopupMenu()"><META NAME="keywords" CONTENT="getMagnifierMenu()"><META NAME="keywords" CONTENT="createScrollPane()"><META NAME="keywords" CONTENT="tieModels()"><META NAME="keywords" CONTENT="untieModels()"><META NAME="keywords" CONTENT="scrollRectToVisible()"><META NAME="keywords" CONTENT="isPaintingWhileAdjusting()"><META NAME="keywords" CONTENT="setPaintingWhileAdjusting()"><META NAME="keywords" CONTENT="repaint()"><META NAME="keywords" CONTENT="paintMagnifier()"><META NAME="keywords" CONTENT="paintComponent()"><META NAME="keywords" CONTENT="printComponent()"><META NAME="keywords" CONTENT="getInsets()"><META NAME="keywords" CONTENT="updateUI()"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="ZoomPane (Geotools 2.3.x 2.3.2 API)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <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="class-use/ZoomPane.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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/geotools/gui/swing/ZoomOutAction.html" title="class in org.geotools.gui.swing"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="ZoomPane.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_classes_inherited_from_class_javax.swing.JComponent">NESTED</A> | <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><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.geotools.gui.swing</FONT><BR>Class ZoomPane</H2><PRE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Container.html" title="class or interface in java.awt">Container</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/JComponent.html" title="class or interface in javax.swing">JComponent</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>ZoomPane</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/geotools/gui/swing/DeformableViewer.html" title="interface in org.geotools.gui.swing">DeformableViewer</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/ImageObserver.html" title="class or interface in java.awt.image">ImageObserver</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/MenuContainer.html" title="class or interface in java.awt">MenuContainer</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DD></DL><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/geotools/gui/swing/image/ImagePane.html" title="class in org.geotools.gui.swing.image">ImagePane</A></DD></DL><HR><DL><DT>public abstract class <B>ZoomPane</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/JComponent.html" title="class or interface in javax.swing">JComponent</A><DT>implements <A HREF="../../../../org/geotools/gui/swing/DeformableViewer.html" title="interface in org.geotools.gui.swing">DeformableViewer</A></DL><P>Base class for widget with a zoomable content. User can perform zooms using keyboard, menu or mouse. is an abstract class. Subclass must override at least two methods: <p> <ul> <li><A HREF="../../../../org/geotools/gui/swing/ZoomPane.html#getArea()"><CODE>getArea()</CODE></A>, which must return a bounding box for the content to paint. This area can be expressed in arbitrary units. For example, an object wanting to display a geographic map with a content ranging from 10
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -