001package horstmann.ch06_scene1; 002 003/** 004 A shape that manages its selection state. 005 */ 006public abstract class SelectableShape implements SceneShape 007{ 008 public void setSelected(boolean b) 009 { 010 selected = b; 011 } 012 013 public boolean isSelected() 014 { 015 return selected; 016 } 017 018 private boolean selected; 019}