com.swfm.mica.core
Class MiEditorFilter
java.lang.Object
com.swfm.mica.core.MiEditorFilter
- public class MiEditorFilter
- extends java.lang.Object
This class specifies which parts are to be treated as whole, interactable
parts and which parts are going to be visible. For example:
To create iterator filter to tell the editor which graphics are
selectable, movable, etc. (by default only the graphics that
are right on the background layer are. But we want to be able
to interact with types which are on top of attributes on top
of classes on top of the background layer).
MiEditorFilter filter = new MiEditorFilter();
MiIteratorFilter iteratorFilter = new MiIteratorFilter();
iteratorFilter.setIterateThroughTaggedItemsOnly(MiUML_SELECTABLE_GRAPHICS_TAG);
iteratorFilter.setIterateIntoPartsOfParts(true);
iteratorFilter.setIterateIntoAttachmentsOfParts(true);
filter.setIteratorFilter(iteratorFilter);
getEditor().setFilter(filter);
- Version:
- %I% %G%
- Author:
- Michael L. Davis
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MiEditorFilter
public MiEditorFilter()
setViewFilter
public void setViewFilter(MiiViewFilter filter)
getViewFilter
public MiiViewFilter getViewFilter()
setIteratorFilter
public void setIteratorFilter(MiiIteratorFilter filter)
getIteratorFilter
public MiiIteratorFilter getIteratorFilter()
getIterator
public MiiIterator getIterator(MiEditor editor)
filterParts
public void filterParts(MiParts input,
MiParts output)
accept
public MiPart accept(MiPart part)