//***************************************************************************** // // Beenish Chaudry, Geetika Tewari, Elif Tosun and // Ileana Streinu // // Summer 1999, Fall 1999, Spring 2000 // //***************************************************************************** // // PointAppearance.java // // appearance of a point: shape, color, filled, contour, visible // and user defined label // //***************************************************************************** import java.awt.*; import java.awt.event.*; import java.lang.*; import java.io.*; import java.util.*; import java.math.*; public class PointAppearance{ //******************************* // // Instance Variables // //****************************** String userLabel; // user label // shape: circle, square, small or big. // fill: filled or not, and what color // contour: with contour or not, and what color int shape; int fill; Color fillcolor; Color contcolor; int contour; int visible; int wCoord; // displayed with or without coordinates: absolute or relative //******************************* // // PointAppearance constructor // //****************************** public PointAppearance(){ userLabel = Constants.label; shape = Constants.shape; fill = Constants.fill; fillcolor = Constants.fillcolor; contcolor = Constants.contcolor; contour = Constants.contour; visible = Constants.visible; wCoord = Constants.coord; }// end PointAppearance //******************************* // // Reset // //****************************** public void Reset(){ userLabel = Constants.label; shape = Constants.shape; fill = Constants.fill; fillcolor = Constants.fillcolor; contcolor = Constants.contcolor; contour = Constants.contour; visible = Constants.visible; wCoord = Constants.coord; }// end Reset //******************************* // // Copy // //****************************** public void Copy(PointAppearance appearance){ userLabel = appearance.userLabel; shape = appearance.shape; fillcolor = appearance.fillcolor; fill = appearance.fill; contour = appearance.contour; contcolor = appearance.contcolor; visible = appearance.visible; wCoord = appearance.wCoord; }// end Copy }//end class PointAppearance