org.eclipse.etrice.ui.structure.support
Class InterfaceItemSupport.FeatureProvider

java.lang.Object
  extended by DefaultFeatureProvider
      extended by org.eclipse.etrice.ui.structure.support.InterfaceItemSupport.FeatureProvider
Enclosing class:
InterfaceItemSupport

protected static class InterfaceItemSupport.FeatureProvider
extends DefaultFeatureProvider


Nested Class Summary
protected static class InterfaceItemSupport.FeatureProvider.AddFeature
           
protected static class InterfaceItemSupport.FeatureProvider.CreateFeature
           
protected static class InterfaceItemSupport.FeatureProvider.DeleteFeature
           
protected  class InterfaceItemSupport.FeatureProvider.MoveShapeFeature
           
protected static class InterfaceItemSupport.FeatureProvider.PropertyFeature
           
protected static class InterfaceItemSupport.FeatureProvider.RemoveFeature
           
protected  class InterfaceItemSupport.FeatureProvider.UpdateFeature
           
 
Field Summary
protected  IFeatureProvider fp
           
 
Constructor Summary
protected InterfaceItemSupport.FeatureProvider(IDiagramTypeProvider dtp, IFeatureProvider fp)
           
 
Method Summary
protected static void adjustLabel(Text label, int x, int y, int width, int margin, int size)
           
 IDeleteFeature getDeleteFeature(IDeleteContext context)
           
 IMoveShapeFeature getMoveShapeFeature(IMoveShapeContext context)
           
 IRemoveFeature getRemoveFeature(IRemoveContext context)
           
 IResizeShapeFeature getResizeShapeFeature(IResizeShapeContext context)
           
protected static boolean isInherited(InterfaceItem item, java.lang.Object container, ContainerShape cs)
           
protected static boolean isInternal(InterfaceItem item)
           
protected static boolean isRefItem(PictogramElement pe)
           
protected static boolean isValidPosition(ILocationContext loc, ITargetContext tgt, boolean internal, int margin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fp

protected IFeatureProvider fp
Constructor Detail

InterfaceItemSupport.FeatureProvider

protected InterfaceItemSupport.FeatureProvider(IDiagramTypeProvider dtp,
                                               IFeatureProvider fp)
Method Detail

isRefItem

protected static boolean isRefItem(PictogramElement pe)

isInternal

protected static boolean isInternal(InterfaceItem item)

isInherited

protected static boolean isInherited(InterfaceItem item,
                                     java.lang.Object container,
                                     ContainerShape cs)

isValidPosition

protected static boolean isValidPosition(ILocationContext loc,
                                         ITargetContext tgt,
                                         boolean internal,
                                         int margin)

getMoveShapeFeature

public IMoveShapeFeature getMoveShapeFeature(IMoveShapeContext context)

getResizeShapeFeature

public IResizeShapeFeature getResizeShapeFeature(IResizeShapeContext context)

getRemoveFeature

public IRemoveFeature getRemoveFeature(IRemoveContext context)

getDeleteFeature

public IDeleteFeature getDeleteFeature(IDeleteContext context)

adjustLabel

protected static void adjustLabel(Text label,
                                  int x,
                                  int y,
                                  int width,
                                  int margin,
                                  int size)