I think the method fishEye(..) in class GraphNode computes a wrong
container size. The calculation is based on a the font size. But few lines
late the font size was changed. After that, the text is to big for the
container.
+ /**
+ * @param enable
+ * @param animate
+ * @return
+ * FIXED 09.09.2009 - Reihenfolge des FontData Blocks im Quelltext
getauscht.
+ */
protected IFigure fishEye(boolean enable, boolean animate) {
if (isDisposed) {
// If a fisheyed figure is still left on the canvas, we could get
@@ -695,6 +701,12 @@
// Get the current Bounds
Rectangle rectangle = nodeFigure.getBounds().getCopy();
+ // Hier eingefügt
+ FontData fontData =
Display.getCurrent().getSystemFont().getFontData()[0];
+// fontData.height = 12;
+ fishEyeFont = new Font(Display.getCurrent(), fontData);
+ fishEyeFigure.setFont(fishEyeFont);
+
// Calculate how much we have to expand the current bounds to get to
the new bounds
Dimension newSize = fishEyeFigure.getPreferredSize();
Rectangle currentSize = rectangle.getCopy();
@@ -708,10 +720,7 @@
return null;
}