<HTML>
<HEAD>
<TITLE>Untitled file 'Panorama.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 18:25:26 CDT 1996 -->
<A NAME="_top_"></A>
<TITLE>
  Class Panorama
</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<H1>Class Panorama</H1>
<PRE>
<A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.lang.Object.html">java.lang.Object</A>
   |
   +----Panorama
</PRE>
<HR>
<DL>
  <DT>class <B>Panorama</B>
  <DT>extends <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.lang.Object.html">Object</A>
</DL>
The Panorama object is where the math happens in Kali.  It keeps
track of the current group, and applies that group's action to the
line segments as they are drawn.  (The DrawPanel object, which
stores the list of line segments, called the Panorama's
drawSegment() method once for each line segment.)
<DL>
    <DT><B>See Also:</B>
    <DD><A HREF="DrawPanel.html#_top_">DrawPanel</A>, <A HREF="KaliCanvas.html#_top_">KaliCanvas</A>
</DL>
<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="#Panorama(KaliCanvas)"><B>Panorama</B></A>(KaliCanvas)
  <DD>Create a new Panorama object

</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="#drawSegment(Segment, java.awt.Color)"><B>drawSegment</B></A>(Segment, Color)
  <DD>Draw a single segment in the given color under the
action of the current group.
  <DT><IMG SRC="images/red-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#getGroup()"><B>getGroup</B></A>()
  <DD>Return the current group

  <DT><IMG SRC="images/red-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#prepareToDraw()"><B>prepareToDraw</B></A>()
  <DD>Do the internal calculations necessary to prepare for drawing with
the current KaliCanvas coordinate systems.
  <DT><IMG SRC="images/red-ball-small.gif" WIDTH=6 HEIGHT=6 ALT=" o ">
	<A HREF="#setGroup(int)"><B>setGroup</B></A>(int)
  <DD>Set the current group.
</DL>
<A NAME="constructors"></A>
<H2><IMG SRC="images/constructors.gif" WIDTH=231 HEIGHT=38 ALT="Constructors"></H2>
<A NAME="Panorama"></A>
<A NAME="Panorama(KaliCanvas)"><IMG SRC="images/yellow-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<B>Panorama</B>
<PRE>
  public Panorama(<A HREF="KaliCanvas.html#_top_">KaliCanvas</A> kaliCanvas)
</PRE>
<DL>
  <DD>Create a new Panorama object
  <DL>
    <DT><B>Parameters:</B>
    <DD>kaliCanvas - The KaliCanvas object that this Panorama
			should use for drawing.
  </DL>
</DL>
<A NAME="methods"></A>
<H2><IMG SRC="images/methods.gif" WIDTH=151 HEIGHT=38 ALT="Methods"></H2>
<A NAME="setGroup(int)"><IMG SRC="images/red-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<A NAME="setGroup"><B>setGroup</B></A>
<PRE>
  public void setGroup(int index)
</PRE>
<DL>
  <DD>Set the current group.
  <DL>
    <DT><B>Parameters:</B>
    <DD>index - The group index; should be one of the constants
		defined in Constants.java, e.g. GROUP_w2222 or
		GROUP_w3x3, etc.
  </DL>
</DL>
<A NAME="getGroup()"><IMG SRC="images/red-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<A NAME="getGroup"><B>getGroup</B></A>
<PRE>
  public <A HREF="SymmetryGroup.html#_top_">SymmetryGroup</A> getGroup()
</PRE>
<DL>
  <DD>Return the current group
</DL>
<A NAME="prepareToDraw()"><IMG SRC="images/red-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<A NAME="prepareToDraw"><B>prepareToDraw</B></A>
<PRE>
  public boolean prepareToDraw()
</PRE>
<DL>
  <DD>Do the internal calculations necessary to prepare for drawing with
the current KaliCanvas coordinate systems.  This should be called
immediately before a sequence of drawSegment() calls to draw the
screen, but after the KaliCanvas object's coordinate systems have
been set.
</DL>
<A NAME="drawSegment(Segment, java.awt.Color)"><IMG SRC="images/red-ball.gif" WIDTH=12 HEIGHT=12 ALT=" o "></A>
<A NAME="drawSegment"><B>drawSegment</B></A>
<PRE>
  public void drawSegment(<A HREF="Segment.html#_top_">Segment</A> s,
                          <A HREF="http://www.javasoft.com/products/JDK/CurrentRelease/api/java.awt.Color.html">Color</A> c)
</PRE>
<DL>
  <DD>Draw a single segment in the given color under the
action of the current group.
</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>
