com.swfm.mica.core
Class MiPolySelectionGraphics

java.lang.Object
  extended bycom.swfm.mica.core.MiPolySelectionGraphics
All Implemented Interfaces:
MiiSelectionGraphics, MiiTypes

public class MiPolySelectionGraphics
extends java.lang.Object
implements MiiSelectionGraphics, MiiTypes

This class implements the MiiSelectionGraphics interface. As such it is responsible for the making the appearance of a graphics part when the part is 'selected' different from when it is 'not selected'.

This class implements the MiiSelectionGraphics interface. This implementation provides a wrapper for 0 or more implementations of MiiSelectionGraphics. This is useful if, for example, the selected items are to change color AND have manipulation handles.

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
     
Constructor Summary
MiPolySelectionGraphics()
           
MiPolySelectionGraphics(MiiSelectionGraphics one, MiiSelectionGraphics other)
           
 
Method Summary
 void appendSelectionGraphics(MiiSelectionGraphics sg)
           
 void select(MiEditor editor, MiPart obj, boolean flag)
          This method tells this selection graphics appearance manager whether the given part in the given editor is selected.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiPolySelectionGraphics

public MiPolySelectionGraphics()

MiPolySelectionGraphics

public MiPolySelectionGraphics(MiiSelectionGraphics one,
                               MiiSelectionGraphics other)
Method Detail

appendSelectionGraphics

public void appendSelectionGraphics(MiiSelectionGraphics sg)

select

public void select(MiEditor editor,
                   MiPart obj,
                   boolean flag)
This method tells this selection graphics appearance manager whether the given part in the given editor is selected. This implementation draws a rectangle around the selected part unless the part is a line, in which case the line is rendered with a change of the line borderLook attribute.

Specified by:
select in interface MiiSelectionGraphics
Parameters:
editor - the editor
flag - true if the part is now selected.
obj - the part whose selection state has changed.