/** * Returns a scene location of a related widget of an opposite anchor. * @param entry the entry to which the opposite anchor searched * @return the scene location */ public Point getOppositeSceneLocation (Entry entry) { Anchor oppositeAnchor = entry.getOppositeAnchor (); return oppositeAnchor != null ? oppositeAnchor.getRelatedSceneLocation () : null; }
/** * This method is called by revalidation-change of related widget and notifies all entries about the anchor change. */ public final void revalidateDependency () { notifyRevalidate (); for (Entry entry : entries) entry.revalidateEntry (); }
/** * Unregisters multiple entries at once. * @param entries a list of entries */ public final void removeEntries (List<Entry> entries) { for (Entry entry : entries) removeEntry (entry); }
/** * Creates an anchor which computes a point as the one on the boundary of spacified widget. * The point is the closest one to location of opposite anchor. * @param widget the widget * @return the anchor */ public static Anchor createRectangularAnchor (Widget widget) { return createRectangularAnchor (widget, true); }
/** * Creates a directional anchor with computes a point as the one in the middle of the boundary side of specified widget. * The side is the closest one to the opposite anchor. * @param widget the widget * @param kind the kind of directional anchor * @return the anchor */ public static Anchor createDirectionalAnchor (Widget widget, DirectionalAnchorKind kind) { return createDirectionalAnchor (widget, kind, 0); }
public Anchor createReplacementWidgetAnchor (Widget replacementWidget) { return AnchorFactory.createCenterAnchor (replacementWidget); } public Anchor createFloatAnchor (Point location) {
public Anchor createFloatAnchor (Point location) { return AnchorFactory.createFixedAnchor (location); } };
protected int getAdditionalDistance() { int retVal = 0; if (locationResolver != null) { retVal = locationResolver.getEndLocation(); } return retVal; } }
/** * Registers multiple entries at once. * @param entries a list of entries */ public final void addEntries (List<Entry> entries) { for (Entry entry : entries) addEntry (entry); }
/** * Creates an image anchor shape. * @param image the image * @return the anchor shape */ public static AnchorShape createImageAnchorShape (Image image) { return createImageAnchorShape (image, false); }
public int getRadius() { return shape.getRadius(); }
/** * Creates an anchor which computes a point as the one on the boundary of spacified widget. * The point is the closest one to location of opposite anchor. * @param widget the widget * @return the anchor */ public static Anchor createRectangularAnchor (Widget widget) { return createRectangularAnchor (widget, true); }
/** * Returns a scene location of a related widget of an opposite anchor. * @param entry the entry to which the opposite anchor searched * @return the scene location */ public Point getOppositeSceneLocation (Entry entry) { Anchor oppositeAnchor = entry.getOppositeAnchor (); return oppositeAnchor != null ? oppositeAnchor.getRelatedSceneLocation () : null; }
/** * Creates a directional anchor with computes a point as the one in the middle of the boundary side of specified widget. * The side is the closest one to the opposite anchor. * @param widget the widget * @param kind the kind of directional anchor * @return the anchor */ public static Anchor createDirectionalAnchor (Widget widget, DirectionalAnchorKind kind) { return createDirectionalAnchor (widget, kind, 0); }
/** * This method is called by revalidation-change of related widget and notifies all entries about the anchor change. */ public final void revalidateDependency () { notifyRevalidate (); for (Entry entry : entries) entry.revalidateEntry (); }
public Anchor createFloatAnchor (Point location) { return AnchorFactory.createFixedAnchor (location); } };
/** * Unregisters multiple entries at once. * @param entries a list of entries */ public final void removeEntries (List<Entry> entries) { for (Entry entry : entries) removeEntry (entry); }
protected int getAdditionalDistance() { int retVal = 0; if (locationResolver != null) { retVal = locationResolver.getEndLocation(); } return retVal; } }
/** * Registers multiple entries at once. * @param entries a list of entries */ public final void addEntries (List<Entry> entries) { for (Entry entry : entries) addEntry (entry); }
/** * Creates an image anchor shape. * @param image the image * @return the anchor shape */ public static AnchorShape createImageAnchorShape (Image image) { return createImageAnchorShape (image, false); }