Author: maurelio1234
Date: 2007-06-10 19:32:41-0700
New Revision: 12818
Modified:
branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/diagram/static_structure/ui/FigClass.java
branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/diagram/ui/FigNodeModelElement.java
Log:
small icons are now much more stable
Modified: branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/diagram/static_structure/ui/FigClass.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/diagram/static_structure/ui/FigClass.java?view=diff&rev=12818&p1=branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/diagram/static_structure/ui/FigClass.java&p2=branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/diagram/static_structure/ui/FigClass.java&r1=12817&r2=12818
==============================================================================
--- branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/diagram/static_structure/ui/FigClass.java (original)
+++ branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/diagram/static_structure/ui/FigClass.java 2007-06-10 19:32:41-0700
@@ -645,6 +645,7 @@
operationsHeight);
}
+ updateStereotypeIcon();
}
// Now force calculation of the bounds of the figure, update the edges
// and trigger anyone who's listening to see if the "bounds" property
Modified: branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/diagram/ui/FigNodeModelElement.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/diagram/ui/FigNodeModelElement.java?view=diff&rev=12818&p1=branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/diagram/ui/FigNodeModelElement.java&p2=branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/diagram/ui/FigNodeModelElement.java&r1=12817&r2=12818
==============================================================================
--- branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/diagram/ui/FigNodeModelElement.java (original)
+++ branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/diagram/ui/FigNodeModelElement.java 2007-06-10 19:32:41-0700
@@ -1451,7 +1451,7 @@
damage();
}
- private void updateStereotypeIcon() {
+ protected void updateStereotypeIcon() {
if (getOwner() == null) {
LOG.warn("Owner of [" + this.toString() + "/" + this.getClass()
+ "] is null.");
@@ -1515,7 +1515,7 @@
}
}
} else if (getStereotypeView() == STEREOTYPE_VIEW_SMALL_ICON) {
- int i = this.getWidth();
+ int i = this.getX() + this.getWidth() - ICON_WIDTH - 2;
for (Object stereo : stereos) {
Image icon = ProjectManager.getManager().getCurrentProject()
@@ -1535,7 +1535,8 @@
}
}
- this.redraw();
+ damage();
+// this.redraw();
}
public void updateProfileBounds(int x, int y, int w, int h) {
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.