<HTML>
<HEAD>
<TITLE>Untitled file 'ImageButton.html'</TITLE>
<!-- Copyright (c) 1996 by The Geometry Center. All Rights Reserved. -->
</HEAD>
<BODY BGCOLOR="FFFFFF">
<!-- *Navigation-Links -->
<B>Up:</B> <A HREF="source.html"><I>Java Kali Source Code and Documentation</I></A><BR>
<HR>
<p>

<!-- *Begin-Document-Body -->
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Mon Sep 16 15:21:28 CDT 1996 -->
<A NAME="_top_"></A>
<TITLE>
  Class ImageButton
</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<H1>Class ImageButton</H1>
<PRE>
<A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.lang.Object.html#_top_">java.lang.Object</A>
   |
   +----<A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Component.html#_top_">java.awt.Component</A>
           |
           +----<A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Canvas.html#_top_">java.awt.Canvas</A>
                   |
                   +----ImageButton
</PRE>
<HR>
<DL>
  <DT>class <B>ImageButton</B>
  <DT>extends <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Canvas.html#_top_">Canvas</A>
</DL>
An ImageButton is a custom GUI widget which is a button with an
  image on it.  (The AWT does not have such a widget, presumably
  because it's not very portable, but I find that this works fine.)
<HR>
<A NAME="index"></A>
<H2><IMG SRC="images/constructor-index.gif" WIDTH=275 HEIGHT=38 ALT="Constructor Index"></H2>
<DL>
  <DT><IMG SRC="images/yellow-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#ImageButton(java.awt.Image, java.awt.Image, ImageButtonGroup)"><B>ImageButton</B></A>(Image, Image, ImageButtonGroup)
  <DD>Create a new button with the given images and group,
and initially in its "false" (up) state.
  <DT><IMG SRC="images/yellow-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#ImageButton(java.awt.Image, java.awt.Image, ImageButtonGroup, boolean)"><B>ImageButton</B></A>(Image, Image, ImageButtonGroup, boolean)
  <DD>Create a new button with the given images, group, and initial
state.
</DL>
<H2><IMG SRC="images/method-index.gif" WIDTH=207 HEIGHT=38 ALT="Method Index"></H2>
<DL>
  <DT><IMG SRC="images/red-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#getState()"><B>getState</B></A>()
  <DD>Return the state (true corresponds to down) of the button.
  <DT><IMG SRC="images/red-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#minimumSize()"><B>minimumSize</B></A>()
<DD><DT><IMG SRC="images/red-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#mouseDown(java.awt.Event, int, int)"><B>mouseDown</B></A>(Event, int, int)
<DD><DT><IMG SRC="images/red-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#mouseEnter(java.awt.Event, int, int)"><B>mouseEnter</B></A>(Event, int, int)
<DD><DT><IMG SRC="images/red-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#mouseExit(java.awt.Event, int, int)"><B>mouseExit</B></A>(Event, int, int)
<DD><DT><IMG SRC="images/red-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#mouseUp(java.awt.Event, int, int)"><B>mouseUp</B></A>(Event, int, int)
<DD><DT><IMG SRC="images/red-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#paint(java.awt.Graphics)"><B>paint</B></A>(Graphics)
<DD><DT><IMG SRC="images/red-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#preferredSize()"><B>preferredSize</B></A>()
<DD><DT><IMG SRC="images/red-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#setState(boolean)"><B>setState</B></A>(boolean)
  <DD>Set the state of the button.
  <DT><IMG SRC="images/red-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#setStateInternal(boolean)"><B>setStateInternal</B></A>(boolean)
<DD></DL>
<A NAME="constructors"></A>
<H2><IMG SRC="images/constructors.gif" WIDTH=231 HEIGHT=38 ALT="Constructors"></H2>
<A NAME="ImageButton"></A>
<A NAME="ImageButton(java.awt.Image, java.awt.Image, ImageButtonGroup, boolean)"><IMG SRC="images/yellow-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<B>ImageButton</B>
<PRE>
  public ImageButton(<A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Image.html#_top_">Image</A> upImage,
                     <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Image.html#_top_">Image</A> downImage,
                     <A HREF="ImageButtonGroup.html#_top_">ImageButtonGroup</A> group,
                     boolean state)
</PRE>
<DL>
  <DD>Create a new button with the given images, group, and initial
state.
</DL>
<A NAME="ImageButton(java.awt.Image, java.awt.Image, ImageButtonGroup)"><IMG SRC="images/yellow-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<B>ImageButton</B>
<PRE>
  public ImageButton(<A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Image.html#_top_">Image</A> upImage,
                     <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Image.html#_top_">Image</A> downImage,
                     <A HREF="ImageButtonGroup.html#_top_">ImageButtonGroup</A> group)
</PRE>
<DL>
  <DD>Create a new button with the given images and group,
and initially in its "false" (up) state.
</DL>
<A NAME="methods"></A>
<H2><IMG SRC="images/methods.gif" WIDTH=151 HEIGHT=38 ALT="Methods"></H2>
<A NAME="preferredSize()"><IMG SRC="images/red-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<A NAME="preferredSize"><B>preferredSize</B></A>
<PRE>
  public <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Dimension.html#_top_">Dimension</A> preferredSize()
</PRE>
<DL>
  <DL>
    <DT><B>Overrides:</B>
    <DD><A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Component.html#preferredSize()">preferredSize</A> in class <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Component.html">Component</A>
  </DL>
</DL>
<A NAME="minimumSize()"><IMG SRC="images/red-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<A NAME="minimumSize"><B>minimumSize</B></A>
<PRE>
  public <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Dimension.html#_top_">Dimension</A> minimumSize()
</PRE>
<DL>
  <DL>
    <DT><B>Overrides:</B>
    <DD><A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Component.html#minimumSize()">minimumSize</A> in class <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Component.html">Component</A>
  </DL>
</DL>
<A NAME="paint(java.awt.Graphics)"><IMG SRC="images/red-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<A NAME="paint"><B>paint</B></A>
<PRE>
  public void paint(<A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Graphics.html#_top_">Graphics</A> g)
</PRE>
<DL>
  <DL>
    <DT><B>Overrides:</B>
    <DD><A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Canvas.html#paint(java.awt.Graphics)">paint</A> in class <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Canvas.html">Canvas</A>
  </DL>
</DL>
<A NAME="getState()"><IMG SRC="images/red-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<A NAME="getState"><B>getState</B></A>
<PRE>
  public boolean getState()
</PRE>
<DL>
  <DD>Return the state (true corresponds to down) of the button.
</DL>
<A NAME="setState(boolean)"><IMG SRC="images/red-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<A NAME="setState"><B>setState</B></A>
<PRE>
  public void setState(boolean state)
</PRE>
<DL>
  <DD>Set the state of the button.  True corresponds to down.
</DL>
<A NAME="setStateInternal(boolean)"><IMG SRC="images/red-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<A NAME="setStateInternal"><B>setStateInternal</B></A>
<PRE>
  public void setStateInternal(boolean state)
</PRE>
<A NAME="mouseDown(java.awt.Event, int, int)"><IMG SRC="images/red-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<A NAME="mouseDown"><B>mouseDown</B></A>
<PRE>
  public boolean mouseDown(<A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Event.html#_top_">Event</A> evt,
                           int x,
                           int y)
</PRE>
<DL>
  <DL>
    <DT><B>Overrides:</B>
    <DD><A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Component.html#mouseDown(java.awt.Event, int, int)">mouseDown</A> in class <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Component.html">Component</A>
  </DL>
</DL>
<A NAME="mouseUp(java.awt.Event, int, int)"><IMG SRC="images/red-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<A NAME="mouseUp"><B>mouseUp</B></A>
<PRE>
  public boolean mouseUp(<A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Event.html#_top_">Event</A> evt,
                         int x,
                         int y)
</PRE>
<DL>
  <DL>
    <DT><B>Overrides:</B>
    <DD><A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Component.html#mouseUp(java.awt.Event, int, int)">mouseUp</A> in class <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Component.html">Component</A>
  </DL>
</DL>
<A NAME="mouseEnter(java.awt.Event, int, int)"><IMG SRC="images/red-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<A NAME="mouseEnter"><B>mouseEnter</B></A>
<PRE>
  public boolean mouseEnter(<A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Event.html#_top_">Event</A> evt,
                            int x,
                            int y)
</PRE>
<DL>
  <DL>
    <DT><B>Overrides:</B>
    <DD><A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Component.html#mouseEnter(java.awt.Event, int, int)">mouseEnter</A> in class <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Component.html">Component</A>
  </DL>
</DL>
<A NAME="mouseExit(java.awt.Event, int, int)"><IMG SRC="images/red-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<A NAME="mouseExit"><B>mouseExit</B></A>
<PRE>
  public boolean mouseExit(<A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Event.html#_top_">Event</A> evt,
                           int x,
                           int y)
</PRE>
<DL>
  <DL>
    <DT><B>Overrides:</B>
    <DD><A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Component.html#mouseExit(java.awt.Event, int, int)">mouseExit</A> in class <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Component.html">Component</A>
  </DL>
</DL>
<!-- *End-Document-Body -->
<p>

<!-- *Navigation-Links -->
<HR>
<B>Up:</B> <A HREF="source.html"><I>Java Kali Source Code and Documentation</I></A><BR>

<!-- *GC-Common-Footer -->
<HR>
<NOBR><A HREF="/"><IMG SRC="/pix/home.gif" ALT="[HOME]" ALIGN=MIDDLE></A>
<I>The Geometry Center Home Page</I></NOBR>
<p>
Author: <A HREF="http://www.geom.umn.edu/locate/mbp">Mark Phillips</A><BR>
Comments to:
<A HREF="/admin/mail/webmaster.html">webmaster@geom.umn.edu</A><BR>
Created:  Sep 16 1996 --- 
<!-- hhmts start -->
Last modified: Sep 18 1996
<!-- hhmts end -->
</BODY>
</HTML>
