java.lang.Object
org.palladiosimulator.editors.sirius.custom.style.styleconfiguration.anchorprovider.DiamondShapedSlidableAnchorProvider
All Implemented Interfaces:
org.eclipse.sirius.ext.gmf.runtime.gef.ui.figures.util.AnchorProvider

public class DiamondShapedSlidableAnchorProvider extends Object implements org.eclipse.sirius.ext.gmf.runtime.gef.ui.figures.util.AnchorProvider
Provides a slidable anchor located on a diamond shaped border.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a provider for anchors that are located on a diamond shaped border.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.draw2d.ConnectionAnchor
    createAnchor(org.eclipse.sirius.ext.gmf.runtime.gef.ui.figures.AirDefaultSizeNodeFigure figure, org.eclipse.draw2d.geometry.PrecisionPoint p)
     
    org.eclipse.draw2d.ConnectionAnchor
    createDefaultAnchor(org.eclipse.sirius.ext.gmf.runtime.gef.ui.figures.AirDefaultSizeNodeFigure figure)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DiamondShapedSlidableAnchorProvider

      public DiamondShapedSlidableAnchorProvider()
      Creates a provider for anchors that are located on a diamond shaped border. The diamond is defined by the centerpoints of sides of the figures rectangle bounds. The anchorpoints are slidable on the specified diamond edges.
  • Method Details

    • createDefaultAnchor

      public org.eclipse.draw2d.ConnectionAnchor createDefaultAnchor(org.eclipse.sirius.ext.gmf.runtime.gef.ui.figures.AirDefaultSizeNodeFigure figure)
      Specified by:
      createDefaultAnchor in interface org.eclipse.sirius.ext.gmf.runtime.gef.ui.figures.util.AnchorProvider
    • createAnchor

      public org.eclipse.draw2d.ConnectionAnchor createAnchor(org.eclipse.sirius.ext.gmf.runtime.gef.ui.figures.AirDefaultSizeNodeFigure figure, org.eclipse.draw2d.geometry.PrecisionPoint p)
      Specified by:
      createAnchor in interface org.eclipse.sirius.ext.gmf.runtime.gef.ui.figures.util.AnchorProvider