    01: import java.awt.*;
    02: import java.awt.geom.*;
    03:
    04: /**
    05:    A shape that manages its selection state.
    06: */
    07: public abstract class SelectableShape implements SceneShape
    08: {
    09:    public void setSelected(boolean b)
    10:    {
    11:       selected = b;
    12:    }
    13:
    14:    public boolean isSelected()
    15:    {
    16:       return selected;
    17:    }
    18:
    19:    private boolean selected;
    20: }