|
org.eclipse.gmf.runtime.gef.ui.figures
Class SlidableImageAnchor
java.lang.Object
org.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
-
All Implemented Interfaces:
-
AncestorListener,
ConnectionAnchor,
OrthogonalConnectionAnchor
-
public class SlidableImageAnchor
- extends
SlidableAnchor
Implements sliding connection anchor functionality for Image figures
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.draw2d.ui.figures.
BaseSlidableAnchor
|
equals,
getAnchorRelativeLocation,
getIntersectionPoints,
getLocation,
getOrthogonalLocation,
getPolygonPoints,
getReferencePoint,
getTerminal,
hashCode,
isDefaultAnchor,
normalizeToStraightlineTolerance,
parseTerminalString
|
Methods inherited from class java.lang.Object
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
|
SlidableImageAnchor
public SlidableImageAnchor()
- Empty constructor
SlidableImageAnchor
public SlidableImageAnchor(
IFigure f)
- Dumb default constructor, for which reference point is at the center of the figure
-
Parameters:
-
f - the IFigure bounding figure
SlidableImageAnchor
public SlidableImageAnchor(
IFigure container,
ImageFigure imageFig)
- Default constructor, for which reference point is at the cneter of the figure
-
Parameters:
-
container - the IFigure bounding figure -
imageFig - the ImageFigure inside the bounding figure
SlidableImageAnchor
public SlidableImageAnchor(
IFigure f,
ImageFigure imageFig,
PrecisionPoint p)
- Constructor, for which reference point is specified
-
Parameters:
-
f - the IFigure bounding figure -
imageFig - the ImageFigure inside the bounding figure -
p - the PrecisionPoint relative reference
getImage
protected
Image getImage()
- Returns the image.
-
-
Returns:
- the
Image object
getContainer
protected
IFigure getContainer()
- Returns bounds of the figure.
-
-
Returns:
- the owner figure
getLocation
protected
Point getLocation(
Point ownReference,
Point foreignReference)
-
Description copied from class:
BaseSlidableAnchor
- Calculates the location of the anchor depending on the anchors own reference
and foreign reference points
-
-
Overrides:
-
getLocation
in class
BaseSlidableAnchor
-
-
Parameters:
-
ownReference - - the own reference of the anchor -
foreignReference - - foreign reference that comes in
-
Returns:
- the location of the anchor depending on the anchors own reference
and foreign reference points
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.
|
|