⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 raster.html

📁 文件来自swarm.org
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Tue Nov 30 14:11:21 MST 2004 --><TITLE>Swarm 2.2 Reference Guide: Interface  Raster</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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 ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../swarm/gui/PixmapS.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../swarm/gui/RasterC.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>  &nbsp;&nbsp;<A HREF="Raster.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">swarm.gui</FONT><BR>Interface  Raster</H2><DL><DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../swarm/gui/ZoomRaster.html">ZoomRaster</A></DD></DL><DL><DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../swarm/gui/RasterImpl.html">RasterImpl</A>, <A HREF="../../swarm/gui/ZoomRasterImpl.html">ZoomRasterImpl</A></DD></DL><HR><DL><DT>public interface <B>Raster</B><DT>extends <A HREF="../../swarm/gui/ArchivedGeometryWidget.html">ArchivedGeometryWidget</A>, <A HREF="../../swarm/gui/ArchivedGeometryWidgetS.html">ArchivedGeometryWidgetS</A></DL><P><strong> A two dimension color display class.</strong>.2 dimensional, colour pixel images. Raster is based on a Tk frame widget with our own code for fast display of images. You can draw coloured dots on a Raster, or generic Drawers. Raster widgets are double buffered - the pixels you draw are not actually put on the screen until drawSelf is called. In addition, Rasters handle mouse clicks.<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/gui/Raster.html#draw$X$Y(swarm.gui.Drawer, int, int)">draw$X$Y</A></B>(<A HREF="../../swarm/gui/Drawer.html">Drawer</A>&nbsp;drawer,         int&nbsp;x,         int&nbsp;y)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Draw an object at a given position.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/gui/Raster.html#drawPointX$Y$Color(int, int, byte)">drawPointX$Y$Color</A></B>(int&nbsp;x,                   int&nbsp;y,                   byte&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Draw a point at the given coordinates with the given color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/gui/Raster.html#drawSelf()">drawSelf</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Draw the raster to the display.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/gui/Raster.html#ellipseX0$Y0$X1$Y1$Width$Color(int, int, int, int, int, byte)">ellipseX0$Y0$X1$Y1$Width$Color</A></B>(int&nbsp;x0,                               int&nbsp;y0,                               int&nbsp;x1,                               int&nbsp;y1,                               int&nbsp;penWidth,                               byte&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Draw an ellipse of given geometry, pen width, and color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/gui/Raster.html#erase()">erase</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Erase the raster.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/gui/Raster.html#fillRectangleX0$Y0$X1$Y1$Color(int, int, int, int, byte)">fillRectangleX0$Y0$X1$Y1$Color</A></B>(int&nbsp;x0,                               int&nbsp;y0,                               int&nbsp;x1,                               int&nbsp;y1,                               byte&nbsp;color)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fill a rectangle of given geometry and color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/gui/Raster.html#lineX0$Y0$X1$Y1$Width$Color(int, int, int, int, int, byte)">lineX0$Y0$X1$Y1$Width$Color</A></B>(int&nbsp;x0,                            int&nbsp;y0,                            int&nbsp;x1,                            int&nbsp;y1,                            int&nbsp;penWidth,                            byte&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Draw a line of given geometry, pen width, and color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/gui/Raster.html#rectangleX0$Y0$X1$Y1$Width$Color(int, int, int, int, int, byte)">rectangleX0$Y0$X1$Y1$Width$Color</A></B>(int&nbsp;x0,                                 int&nbsp;y0,                                 int&nbsp;x1,                                 int&nbsp;y1,                                 int&nbsp;penWidth,                                 byte&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Draw a rectangle of given geometry, pen width, and color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/gui/Raster.html#setButton$Client$Message(int, java.lang.Object, swarm.Selector)">setButton$Client$Message</A></B>(int&nbsp;n,                         java.lang.Object&nbsp;c,                         <A HREF="../../swarm/Selector.html">Selector</A>&nbsp;sel)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure at mouse button to send a message to a given client object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/gui/Raster.html#setColormap(swarm.gui.Colormap)">setColormap</A></B>(<A HREF="../../swarm/gui/Colormap.html">Colormap</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the palette for this raster.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_swarm.gui.ArchivedGeometryWidget"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface swarm.gui.<A HREF="../../swarm/gui/ArchivedGeometryWidget.html">ArchivedGeometryWidget</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../swarm/gui/ArchivedGeometryWidget.html#updateArchiver(swarm.defobj.Archiver)">updateArchiver</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_swarm.gui.Widget"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface swarm.gui.<A HREF="../../swarm/gui/Widget.html">Widget</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../swarm/gui/Widget.html#disableDestroyNotification()">disableDestroyNotification</A>, <A HREF="../../swarm/gui/Widget.html#enableDestroyNotification$notificationMethod(java.lang.Object, swarm.Selector)">enableDestroyNotification$notificationMethod</A>, <A HREF="../../swarm/gui/Widget.html#getDestroyedFlag()">getDestroyedFlag</A>, <A HREF="../../swarm/gui/Widget.html#getHeight()">getHeight</A>, <A HREF="../../swarm/gui/Widget.html#getParent()">getParent</A>, <A HREF="../../swarm/gui/Widget.html#getTopLevel()">getTopLevel</A>, <A HREF="../../swarm/gui/Widget.html#getWidgetName()">getWidgetName</A>, <A HREF="../../swarm/gui/Widget.html#getWidth()">getWidth</A>, <A HREF="../../swarm/gui/Widget.html#getWindowGeometry()">getWindowGeometry</A>, <A HREF="../../swarm/gui/Widget.html#getX()">getX</A>, <A HREF="../../swarm/gui/Widget.html#getY()">getY</A>, <A HREF="../../swarm/gui/Widget.html#pack()">pack</A>, <A HREF="../../swarm/gui/Widget.html#packBeforeAndFillLeft$expand(java.lang.Object, boolean)">packBeforeAndFillLeft$expand</A>, <A HREF="../../swarm/gui/Widget.html#packFill()">packFill</A>, <A HREF="../../swarm/gui/Widget.html#packFillLeft(boolean)">packFillLeft</A>, <A HREF="../../swarm/gui/Widget.html#packForgetAndExpand()">packForgetAndExpand</A>, <A HREF="../../swarm/gui/Widget.html#packToRight(java.lang.Object)">packToRight</A>, <A HREF="../../swarm/gui/Widget.html#setActiveFlag(boolean)">setActiveFlag</A>, <A HREF="../../swarm/gui/Widget.html#setHeight(int)">setHeight</A>, <A HREF="../../swarm/gui/Widget.html#setWidth(int)">setWidth</A>, <A HREF="../../swarm/gui/Widget.html#setWidth$Height(int, int)">setWidth$Height</A>, <A HREF="../../swarm/gui/Widget.html#setWindowGeometry(java.lang.String)">setWindowGeometry</A>, <A HREF="../../swarm/gui/Widget.html#setWindowTitle(java.lang.String)">setWindowTitle</A>, <A HREF="../../swarm/gui/Widget.html#setX$Y(int, int)">setX$Y</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_swarm.defobj.Drop"><!-- --></A>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -