public Point getRelatedSceneLocation () { return anchors[index].getRelatedSceneLocation (); }
public Point getRelatedSceneLocation () { return anchors[index].getRelatedSceneLocation (); }
/** * 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; }
/** * 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; }
/*************************************************************************** * * **************************************************************************/ public void fixAnchors() { logger.fine("fixAnchors()"); final Point sourcePoint = createSourceAnchor().getRelatedSceneLocation(); final Point targetPoint = createTargetAnchor().getRelatedSceneLocation(); logger.finer(">>>> sourcePoint: %s vs %s", sourcePoint, sourcePointCache); logger.finer(">>>> targetPoint: %s vs %s", targetPoint, targetPointCache); if (!targetPoint.equals(targetPointCache)) { setTargetAnchor(AnchorFactory.createFixedAnchor(targetPointCache = targetPoint)); } if (!sourcePoint.equals(sourcePointCache)) { setSourceAnchor(AnchorFactory.createFixedAnchor(sourcePointCache = sourcePoint)); } logger.finer(">>>> fixAnchors() done"); }
final Point originalSourceCenterPoint = sourceAnchor.getRelatedSceneLocation(); final Point originalTargetCenterPoint = targetAnchor.getRelatedSceneLocation(); Point sourcePoint = originalSourceCenterPoint; Point targetPoint = originalTargetCenterPoint;
final Point originalSourceCenterPoint = sourceAnchor.getRelatedSceneLocation(); final Point originalTargetCenterPoint = targetAnchor.getRelatedSceneLocation(); Point sourcePoint = originalSourceCenterPoint; Point targetPoint = originalTargetCenterPoint;