|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.ConnectionAnchorBase
org.eclipse.draw2d.AbstractConnectionAnchor
org.eclipse.gmf.runtime.draw2d.ui.figures.BaseSlidableAnchor
org.eclipse.gmf.runtime.gef.ui.figures.SlidableAnchor
org.eclipse.gmf.runtime.gef.ui.figures.SlidableImageAnchor
public class SlidableImageAnchor
Implements sliding connection anchor functionality for Image figures
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.draw2d.AncestorListener |
---|
AncestorListener.Stub |
Field Summary |
---|
Fields inherited from class org.eclipse.draw2d.ConnectionAnchorBase |
---|
listeners |
Constructor Summary | |
---|---|
SlidableImageAnchor()
Empty constructor |
|
SlidableImageAnchor(IFigure f)
Dumb default constructor, for which reference point is at the center of the figure |
|
SlidableImageAnchor(IFigure container,
ImageFigure imageFig)
Default constructor, for which reference point is at the cneter of the figure |
|
SlidableImageAnchor(IFigure f,
ImageFigure imageFig,
PrecisionPoint p)
Constructor, for which reference point is specified |
Method Summary | |
---|---|
protected IFigure |
getContainer()
Returns bounds of the figure. |
protected Image |
getImage()
Returns the image. |
protected Point |
getLocation(Point ownReference,
Point foreignReference)
Calculates the location of the anchor depending on the anchors own reference and foreign reference points |
Methods inherited from class org.eclipse.gmf.runtime.gef.ui.figures.SlidableAnchor |
---|
getBox |
Methods inherited from class org.eclipse.gmf.runtime.draw2d.ui.figures.BaseSlidableAnchor |
---|
equals, getAnchorRelativeLocation, getIntersectionPoints, getLocation, getOrthogonalLocation, getPolygonPoints, getReferencePoint, getTerminal, hashCode, isDefaultAnchor, normalizeToStraightlineTolerance, parseTerminalString |
Methods inherited from class org.eclipse.draw2d.AbstractConnectionAnchor |
---|
addAnchorListener, ancestorAdded, ancestorMoved, ancestorRemoved, getOwner, removeAnchorListener, setOwner |
Methods inherited from class org.eclipse.draw2d.ConnectionAnchorBase |
---|
fireAnchorMoved |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.draw2d.ConnectionAnchor |
---|
addAnchorListener, getOwner, removeAnchorListener |
Constructor Detail |
---|
public SlidableImageAnchor()
public SlidableImageAnchor(IFigure f)
f
- the IFigure
bounding figurepublic SlidableImageAnchor(IFigure container, ImageFigure imageFig)
container
- the IFigure
bounding figureimageFig
- the ImageFigure
inside the bounding figurepublic SlidableImageAnchor(IFigure f, ImageFigure imageFig, PrecisionPoint p)
f
- the IFigure
bounding figureimageFig
- the ImageFigure
inside the bounding figurep
- the PrecisionPoint
relative referenceMethod Detail |
---|
protected Image getImage()
Image
objectprotected IFigure getContainer()
protected Point getLocation(Point ownReference, Point foreignReference)
BaseSlidableAnchor
getLocation
in class BaseSlidableAnchor
ownReference
- - the own reference of the anchorforeignReference
- - foreign reference that comes in
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.