Eclipse Gef Tutorial Apr 2026
package com.example.shapeditor.figures; import org.eclipse.draw2d.ColorConstants; import org.eclipse.draw2d.RectangleFigure; import org.eclipse.draw2d.geometry.Rectangle;
// Getters & Setters with property change firing public int getX() return x; public void setX(int x) int old = this.x; this.x = x; listeners.firePropertyChange(LOCATION_PROP, old, x); eclipse gef tutorial
@Override public void setBounds(Rectangle rect) super.setBounds(rect); // any custom layout logic package com
Bridges model ↔ figure.