public class AbstractViewer extends Object implements Serializable, ActionListener, PropertyChangeListener
Modifier and Type | Field and Description |
---|---|
AbstractBounder |
bounderContext |
ShapeSet |
shapeSet |
protected Dimension |
size |
MoebiusTransformer |
transformShape |
Constructor and Description |
---|
AbstractViewer(Component viewerComponent,
AbstractDrawer drawer,
AbstractPicker picker,
AbstractBounder bounder) |
public AbstractBounder bounderContext
public ShapeSet shapeSet
protected Dimension size
public MoebiusTransformer transformShape
public AbstractViewer(Component viewerComponent, AbstractDrawer drawer, AbstractPicker picker, AbstractBounder bounder)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void activateTool(MoebiusTool aTool)
public void add(MoebiusShape aShape)
public void add(MoebiusShape[] aShape)
public void center()
public void clearShapeSet()
public boolean contains(MoebiusShape shape)
public void deactivateTool(MoebiusTool aTool)
public void draw(Graphics G)
public void draw(MoebiusGraphics g)
public void encompass()
public void encompass(boolean reset)
public void encompass(Rectangle aBound)
public void encompass(Rectangle aBound, boolean reset)
public Attributes getAttributes()
public Rectangle getBound()
public AbstractBounder getBounderContext()
public MoebiusTool getCurrentTool()
public AbstractDrawer getDrawerContext()
public Menu getMenu()
public AbstractPicker getPickerContext()
public MoebiusShape getSelection()
public Dimension getSize()
public void invalidate()
public void invertInUnitCircle()
public void paintOffScreen(BufferedImage anImage)
public boolean pick(MouseEvent e)
public void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
public void remove(MoebiusShape aShape)
public void remove(MoebiusShape[] aShape)
public void removeAll()
public void repaint()
public void set(int index, MoebiusShape aShape)
public void set(MoebiusShape[] someShapes)
public void setAttributes(Attributes a)
public void setBounderContext(AbstractBounder v)
public void setDrawerContext(AbstractDrawer v)
public void setFont(Font aFont)
public void setPickerContext(AbstractPicker v)
public void setSize(Dimension size)
public void writePPM()
public void writePPM(File file) throws IOException
IOException
public void writePPM(String filename) throws IOException
IOException
public void writePS()
public void writePS(Dimension d)
public void writePS(MoebiusShape shape, Rectangle aBound)
public void writePS(Rectangle aBound)