Class OrientedFixpointAnchorProvider
java.lang.Object
org.palladiosimulator.editors.sirius.custom.style.styleconfiguration.anchorprovider.OrientedFixpointAnchorProvider
- All Implemented Interfaces:
org.eclipse.sirius.ext.gmf.runtime.gef.ui.figures.util.AnchorProvider
public class OrientedFixpointAnchorProvider
extends Object
implements org.eclipse.sirius.ext.gmf.runtime.gef.ui.figures.util.AnchorProvider
Provides an anchor with specified offset of the oriented sides center.
e.g. if offset = 1/4, the anchor point is moved one quarter of the rectangle width along the center axis away from the Orientated sides centerPoint.
e.g. if offset = 1/4, the anchor point is moved one quarter of the rectangle width along the center axis away from the Orientated sides centerPoint.
-
Constructor Summary
ConstructorDescriptionOrientedFixpointAnchorProvider
(double relativeOffset) Creates a newOrientedFixpointAnchorProvider
. -
Method Summary
Modifier and TypeMethodDescriptionorg.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)
-
Constructor Details
-
OrientedFixpointAnchorProvider
public OrientedFixpointAnchorProvider(double relativeOffset) Creates a newOrientedFixpointAnchorProvider
.- Parameters:
relativeOffset
- A fraction inbetween [0.0 (the oriented sides center), 1.0 (the other sides center)]
-
-
Method Details
-
createDefaultAnchor
public org.eclipse.draw2d.ConnectionAnchor createDefaultAnchor(org.eclipse.sirius.ext.gmf.runtime.gef.ui.figures.AirDefaultSizeNodeFigure figure) - Specified by:
createDefaultAnchor
in interfaceorg.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 interfaceorg.eclipse.sirius.ext.gmf.runtime.gef.ui.figures.util.AnchorProvider
-