svn commit: r12682 - trunk/src_new/org/argouml/uml/diagram/ui/FigMessage.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2007-05-26 16:47:52-0700
New Revision: 12682

Modified:
   trunk/src_new/org/argouml/uml/diagram/ui/FigMessage.java

Log:
Step back to previous version (but removed unused imports)

Modified: trunk/src_new/org/argouml/uml/diagram/ui/FigMessage.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/uml/diagram/ui/FigMessage.java?view=diff&rev=12682&p1=trunk/src_new/org/argouml/uml/diagram/ui/FigMessage.java&p2=trunk/src_new/org/argouml/uml/diagram/ui/FigMessage.java&r1=12681&r2=12682
==============================================================================
--- trunk/src_new/org/argouml/uml/diagram/ui/FigMessage.java	(original)
+++ trunk/src_new/org/argouml/uml/diagram/ui/FigMessage.java	2007-05-26 16:47:52-0700
@@ -82,6 +82,7 @@
 	figPoly.setPolygon(polygon);
 	figPoly.setBounds(100, 10, 5, 18);
 
+        arrowDirections.setSize(4);
         arrowDirections.setElementAt("North", NORTH);
         arrowDirections.setElementAt("South", SOUTH);
         arrowDirections.setElementAt("East", EAST);
@@ -113,7 +114,6 @@
     /*
      * @see org.argouml.uml.diagram.ui.FigNodeModelElement#getNotationProviderType()
      */
-    @Override
     protected int getNotationProviderType() {
         return NotationProviderFactory2.TYPE_MESSAGE;
     }
@@ -122,7 +122,6 @@
      * @see org.argouml.uml.diagram.ui.FigNodeModelElement#updateListeners(
      * java.lang.Object, java.lang.Object)
      */
-    @Override
     protected void updateListeners(Object oldOwner, Object newOwner) {
         if (oldOwner != null) {
             removeElementListener(oldOwner);
@@ -135,14 +134,11 @@
     /*
      * @see org.argouml.uml.diagram.ui.FigNodeModelElement#placeString()
      */
-    @Override
-    public String placeString() {
-        // TODO: I18N
-        return "new Message";
-    }
-
+    public String placeString() { return "new Message"; }
 
-    @Override
+    /*
+     * @see java.lang.Object#clone()
+     */
     public Object clone() {
 	FigMessage figClone = (FigMessage) super.clone();
 	Iterator it = figClone.getFigs().iterator();
@@ -155,7 +151,6 @@
     /*
      * @see org.tigris.gef.presentation.Fig#setLineColor(java.awt.Color)
      */
-    @Override
     public void setLineColor(Color col) {
 	figPoly.setLineColor(col);
 	getNameFig().setLineColor(col);
@@ -164,7 +159,6 @@
     /*
      * @see org.tigris.gef.presentation.Fig#getLineColor()
      */
-    @Override
     public Color getLineColor() {
         return figPoly.getLineColor();
     }
@@ -172,7 +166,6 @@
     /*
      * @see org.tigris.gef.presentation.Fig#setFillColor(java.awt.Color)
      */
-    @Override
     public void setFillColor(Color col) {
 	//figPoly.setFillColor(col);
 	getNameFig().setFillColor(col);
@@ -181,7 +174,6 @@
     /*
      * @see org.tigris.gef.presentation.Fig#getFillColor()
      */
-    @Override
     public Color getFillColor() {
         return getNameFig().getFillColor();
     }
@@ -189,14 +181,12 @@
     /*
      * @see org.tigris.gef.presentation.Fig#setFilled(boolean)
      */
-    @Override
     public void setFilled(boolean f) {
     }
 
     /*
      * @see org.tigris.gef.presentation.Fig#getFilled()
      */
-    @Override
     public boolean getFilled() {
         return true;
     }
@@ -204,18 +194,12 @@
     /*
      * @see org.tigris.gef.presentation.Fig#setLineWidth(int)
      */
-    @Override
-    public void setLineWidth(int w) {
-        figPoly.setLineWidth(w);
-    }
+    public void setLineWidth(int w) { figPoly.setLineWidth(w); }
 
     /*
      * @see org.tigris.gef.presentation.Fig#getLineWidth()
      */
-    @Override
-    public int getLineWidth() {
-        return figPoly.getLineWidth();
-    }
+    public int getLineWidth() { return figPoly.getLineWidth(); }
 
     /**
      * @param direction for the arrow
@@ -273,7 +257,6 @@
     /*
      * @see org.tigris.gef.presentation.Fig#getMinimumSize()
      */
-    @Override
     public Dimension getMinimumSize() {
 	Dimension nameMin = getNameFig().getMinimumSize();
 	Dimension figPolyMin = figPoly.getSize();
@@ -287,7 +270,6 @@
      * Override setBounds to keep shapes looking right.
      * @see org.tigris.gef.presentation.Fig#setBounds(int, int, int, int)
      */
-    @Override
     protected void setBoundsImpl(int x, int y, int w, int h) {
         if (getNameFig() == null) {
             return;
@@ -320,8 +302,7 @@
      * 
      * @author Decki,Endi,Yayan, Politechnic of Bandung. Computer Departement
      * method for changing text of Message
-     */
-    @Override
+     */	
     protected void modelChanged(PropertyChangeEvent mee) {
         super.modelChanged(mee);
         
@@ -424,7 +405,7 @@
      * 
      * @author Decki,Endi,Yayan, Politechnic of Bandung. Computer Departement
      * method for changing text of Message
-     * @param newOwner model element which should now be listened to
+     * @param newOwner
      */
     protected void updateListeners(Object newOwner) {
         // Our superclass no longer has this method, so perhaps this whole
@@ -522,7 +503,6 @@
     /*
      * @see org.argouml.uml.diagram.ui.FigNodeModelElement#renderingChanged()
      */
-    @Override
     public void renderingChanged() {
         super.renderingChanged();
         updateArrow();
@@ -534,4 +514,4 @@
     public static Vector getArrowDirections() {
         return arrowDirections;
     }
-}
+} /* end class FigMessage */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.