|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.AbstractLocator
org.eclipse.gmf.runtime.diagram.ui.figures.LabelLocator
Label locator that supports locating labels whose parent is either a Node or and Edge.
| Field Summary | |
protected IFigure |
parent
the parent figure of this locator |
| Constructor Summary | |
LabelLocator(IFigure parent,
Point offSet,
int alignment)
Constructor to create a an instance of LabelLocator
which locates an IFigure offset relative to a calculated reference point. |
|
LabelLocator(IFigure parent,
Rectangle bounds,
int alignment)
Constructor for figure who are located and sized. |
|
| Method Summary | |
int |
getAlignment()
Returns the alignment of ConnectionLocator. |
Point |
getOffset()
getter for the offset point |
protected PointList |
getPointList()
Returns the PointList describing the label's parent. |
protected Point |
getReferencePoint()
Returns the reference point for the locator. |
Dimension |
getSize()
Returns the current extent for this locator |
void |
relocate(IFigure target)
Positions the lable relative to the reference point with the given offsets. |
void |
setOffset(Point offset)
setter for the offset point |
| Methods inherited from class org.eclipse.draw2d.AbstractLocator |
getGap, getNewBounds, getRelativePosition, setGap, setRelativePosition |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected IFigure parent
| Constructor Detail |
public LabelLocator(IFigure parent,
Point offSet,
int alignment)
LabelLocator
which locates an IFigure offset relative to a calculated reference point.
parent - the parent figureoffSet - the relative location of the labelalignment - the alignment hint in the case the parent is a Connection
public LabelLocator(IFigure parent,
Rectangle bounds,
int alignment)
parent - bounds - alignment - | Method Detail |
public Point getOffset()
public void setOffset(Point offset)
offset - public void relocate(IFigure target)
protected Point getReferencePoint()
public int getAlignment()
public Dimension getSize()
protected PointList getPointList()
PointList describing the label's parent.
|
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.