//***************************************************************************** // // Beenish Chaudry, Geetika Tewari, Elif Tosun and // Ileana Streinu // // Summer 1999, Fall 1999, Spring 2000 // //***************************************************************************** // // LineAppearance.java // // appearance of a line: color, style, thickness, clipped, 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 LineAppearance{ //******************************* // // Instance Variables // //****************************** // color // style : dashed, dotted, solid, arrow // thickness: from 3 levels // clipped :clipped or not // visible: degree of visibility // userLabel: user defined label // equation: with or w/o, type of duality Color color; int style; int thickness; int clipped; int visible; int equation; // line displayed with or without equation, and type of duality String userLabel; //******************************* // // LineAppearance constructor // //****************************** public LineAppearance(){ userLabel = Constants.label; color = Constants.linecolor; style = Constants.linestyle; thickness = Constants.thickness; clipped = Constants.clipped; visible = Constants.visible; equation = Constants.equation; }// end LineAppearance //******************************* // // Reset // //****************************** public void Reset(){ userLabel = Constants.label; color = Constants.linecolor; style = Constants.linestyle; thickness = Constants.thickness; clipped = Constants.clipped; visible = Constants.visible; equation = Constants.equation; }// end Reset //******************************* // // Copy // //****************************** public void Copy(LineAppearance appearance){ userLabel = appearance.userLabel; color = appearance.color; style = appearance.style; thickness = appearance.thickness; clipped = appearance.clipped; visible = appearance.visible; equation = appearance.equation; }// end Copy }//end class LineAppearance