private void updateControlLocations() { if ( controls == null ) { return; } if ( !isControlsVisible ) { return; } for ( Group ctrl : controls ) { ctrl.setOffset( getLocation() ); } }
@Override public void onStart( final IAnimation iAnimation, final IAnimationHandle iAnimationHandle ) { //Store required transformations: Control, Current location, Target location transformations.clear(); for ( int index = 0; index < controls.size(); index++ ) { final Group ctrl = controls.get( index ); final Point2D origin = new Point2D( 0, 0 ); final Point2D target = getControlTarget( ctrl ); transformations.put( ctrl, new Pair<Point2D, Point2D>( origin, target ) ); WiresBaseShape.this.getLayer().add( ctrl ); ctrl.setOffset( WiresBaseShape.this.getLocation() ); ctrl.setLocation( origin ); ctrl.setAlpha( 0.0 ); } }
0 ) ); ctrl.setAlpha( 0.0 ); ctrl.setOffset( WiresBaseShape.this.getLocation() ); WiresBaseShape.this.getLayer().add( ctrl );