public abstract class Shape public static final String LOCATION_PROP = "location"; public static final String SIZE_PROP = "size";
package com.example.shapeditor.model; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport; eclipse gef tutorial
// 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); public abstract class Shape public static final String
private PropertyChangeSupport listeners = new PropertyChangeSupport(this); private int x, y, width, height; this.x = x
public class ShapeEditor extends GraphicalEditorWithFlyoutPalette private Diagram diagram; public ShapeEditor() setEditDomain(new DefaultEditDomain(this));