|
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,
IImageFigure imageFig)
Default constructor, for which reference point is at the cneter of the figure |
|
SlidableImageAnchor(IFigure f,
IImageFigure imageFig,
PrecisionPoint p)
Constructor, for which reference point is specified |
|
| Method Summary | |
|---|---|
void |
addAnchorListener(AnchorListener listener)
|
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 |
void |
imageChanged()
|
void |
removeAnchorListener(AnchorListener listener)
|
| 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 |
|---|
ancestorAdded, ancestorMoved, ancestorRemoved, getOwner, 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 |
|---|
getOwner |
| Constructor Detail |
|---|
public SlidableImageAnchor()
public SlidableImageAnchor(IFigure f)
f - the IFigure bounding figure
public SlidableImageAnchor(IFigure container,
IImageFigure imageFig)
container - the IFigure bounding figureimageFig - the ImageFigure inside the bounding figure
public SlidableImageAnchor(IFigure f,
IImageFigure imageFig,
PrecisionPoint p)
f - the IFigure bounding figureimageFig - the ImageFigure inside the bounding figurep - the PrecisionPoint relative reference| Method Detail |
|---|
public void addAnchorListener(AnchorListener listener)
addAnchorListener in interface ConnectionAnchoraddAnchorListener in class AbstractConnectionAnchorpublic void removeAnchorListener(AnchorListener listener)
removeAnchorListener in interface ConnectionAnchorremoveAnchorListener in class AbstractConnectionAnchorprotected Image getImage()
Image objectprotected IFigure getContainer()
protected Point getLocation(Point ownReference,
Point foreignReference)
BaseSlidableAnchor
getLocation in class BaseSlidableAnchorownReference - - the own reference of the anchorforeignReference - - foreign reference that comes in
public void imageChanged()
imageChanged in interface IImageFigure.ImageChangedListener
|
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.