Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /gef/src/org/tigris/gef/ui/PaletteFig.java

gef
Discussion topic

Back to topic list

CVS update: /gef/src/org/tigris/gef/ui/PaletteFig.java

Reply

Author bobtarling
Full name Bob Tarling
Date 2006-08-26 03:54:50 PDT
Message User: bobtarling
Date: 2006-08-26 03:54:50-0700
Log:
 Tidy

File Changes:

Directory: /gef/src/org/tigris/gef/ui/
====================​==================

File [changed]: PaletteFig.java
Url: http://gef.tigris.or​g/source/browse/gef/​src/org/tigris/gef/u​i/PaletteFig.java?r1​=1.1.1.1&r2=1.2
Delta lines: +40 -34
---------------------
--- PaletteFig.java 2000-09-04 05:38:51-0700 1.1.1.1
+++ PaletteFig.java 2006-08-26 03:54:47-0700 1.2
@@ -27,15 +27,22 @@
 // File: PaletteFig.java
 // Classes: PaletteFig
 // Original Author: ics125 spring 1996
-// $Id: PaletteFig.java,v 1.1.1.1 2000/09/04 12:38:51 1sturm Exp $
+// $Id: PaletteFig.java,v 1.2 2006/08/26 10:54:47 bobtarling Exp $
 
 package org.tigris.gef.ui;
 
-import java.awt.*;
-import java.util.*;
-import javax.swing.*;
+import org.tigris.gef.base.CmdSetMode;
+import org.tigris.gef.base.ModeBroom;
+import org.tigris.gef.base.​ModeCreateFigCircle;​
+import org.tigris.gef.base.​ModeCreateFigInk;
+import org.tigris.gef.base.​ModeCreateFigLine;
+import org.tigris.gef.base.​ModeCreateFigPoly;
+import org.tigris.gef.base.​ModeCreateFigRRect;
+import org.tigris.gef.base.​ModeCreateFigRect;
+import org.tigris.gef.base.​ModeCreateFigSpline;​
+import org.tigris.gef.base.​ModeCreateFigText;
+import org.tigris.gef.base.ModeSelect;
 
-import org.tigris.gef.base.*;
 
 /** A Palette that defines buttons to create lines, rectangles,
  * rounded rectangles, circles, and text. Also a select button is
@@ -54,14 +61,23 @@
 
 public class PaletteFig extends ToolBar {
 
- public PaletteFig() { defineButtons(); }
+ /**
+ *
+ */
+ private static final long serialVersionUID = 304194274216578087L;
+
 
+ public PaletteFig() {
+ defineButtons();
+ }
   
- /** Defined the buttons in this palette. Each of these buttons is
+ /**
+ * Defined the buttons in this palette. Each of these buttons is
    * associated with an CmdSetMode, and that Cmd sets the next
    * global Mode to somethign appropriate. All the buttons can stick
    * except 'select'. If the user unclicks the sticky checkbox, the
- * 'select' button is automatically pressed. */
+ * 'select' button is automatically pressed.
+ */
   public void defineButtons() {
     add(new CmdSetMode(ModeSelect.class, "Select"));
     add(new CmdSetMode(ModeBroom.class, "Broom"));
@@ -74,16 +90,6 @@
     add(new CmdSetMode(ModeCreat​eFigPoly.class, "Polygon"));
     add(new CmdSetMode(ModeCreat​eFigSpline.class, "Spline"));
     add(new CmdSetMode(ModeCreat​eFigInk.class, "Ink"));
-
-// circleButton.canStick(true);
-// rectButton.canStick(true);
-// rRectButton.canStick(true);
-// lineButton.canStick(true);
-// textButton.canStick(true);
-// polyButton.canStick(true);
-// inkButton.canStick(true);
-// image1Button.canStick(true);
-// image2Button.canStick(true);
   }
 } /* end class PaletteFig */

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /gef/src/org/tigris/gef/ui/PaletteFig.java bobtarling Bob Tarling 2006-08-26 03:54:50 PDT
Messages per page: