private double getHighlightHeight(final Bounds bounds, final GridWidget view, final double headerMinY) { final double highlightHeight = Math.min(bounds.getY() + bounds.getHeight() - view.getAbsoluteY(), view.getHeight()) - headerMinY; return highlightHeight; }
private double getHighlightHeight(final Bounds bounds, final GridWidget view, final double headerMinY) { final double highlightHeight = Math.min(bounds.getY() + bounds.getHeight() - view.getAbsoluteY(), view.getHeight()) - headerMinY; return highlightHeight; }
Double maxBoundY() { final List<Double> boundsValues = getVisibleGridWidgets() .map(gridWidget -> gridWidget.getY() + gridWidget.getHeight()) .collect(Collectors.toList()); addExtraBounds(boundsValues, bounds -> bounds.getY() + bounds.getHeight()); return maxValue(boundsValues); }
public void setBounds(final Bounds bounds) { this.minX = bounds.getX(); this.minY = bounds.getY(); this.maxX = minX + bounds.getWidth(); this.maxY = minY + bounds.getHeight(); }
private Bounds makeVisibleBounds() { final Bounds bounds = mock(Bounds.class); doReturn(VISIBLE_BOUND_WIDTH).when(bounds).getWidth(); doReturn(VISIBLE_BOUND_HEIGHT).when(bounds).getHeight(); return bounds; }
private Bounds makeVisibleBounds() { final Bounds bounds = mock(Bounds.class); doReturn(VISIBLE_BOUND_WIDTH).when(bounds).getWidth(); doReturn(VISIBLE_BOUND_HEIGHT).when(bounds).getHeight(); return bounds; }
Double maxBoundY() { final List<Double> boundsValues = getVisibleGridWidgets() .map(gridWidget -> gridWidget.getY() + gridWidget.getHeight()) .collect(Collectors.toList()); addExtraBounds(boundsValues, bounds -> bounds.getY() + bounds.getHeight()); return maxValue(boundsValues); }
public void setBounds(final Bounds bounds) { this.minX = bounds.getX(); this.minY = bounds.getY(); this.maxX = minX + bounds.getWidth(); this.maxY = minY + bounds.getHeight(); }
private void updateBounds() { final Bounds bounds = getBounds(); this.minX = bounds.getX(); this.minY = bounds.getY(); this.maxX = this.minX + bounds.getWidth(); this.maxY = this.minY + bounds.getHeight(); }
private void updateBounds() { final Bounds bounds = view.getBounds(); this.minX = bounds.getX(); this.minY = bounds.getY(); this.maxX = this.minX + bounds.getWidth(); this.maxY = this.minY + bounds.getHeight(); }
private void updateBounds() { final Bounds bounds = view.getBounds(); this.minX = bounds.getX(); this.minY = bounds.getY(); this.maxX = this.minX + bounds.getWidth(); this.maxY = this.minY + bounds.getHeight(); }
@SuppressWarnings("unused") private double getDecisionTableY(final GuidedDecisionTableView.Presenter dtPresenter) { final Bounds bounds = getView().getBounds(); double y = bounds.getY() + (bounds.getHeight() * 0.25); for (GuidedDecisionTableView.Presenter p : availableDecisionTables) { y = y + p.getView().getHeight() + 200; } return y; }
@SuppressWarnings("unused") private double getDecisionTableY(final GuidedDecisionTableView.Presenter dtPresenter) { final Bounds bounds = getView().getBounds(); double y = bounds.getY() + (bounds.getHeight() * 0.25); for (GuidedDecisionTableView.Presenter p : availableDecisionTables) { y = y + p.getView().getHeight() + 200; } return y; }
Double deltaY() { return bounds().maxBoundY() - bounds().minBoundY() - getVisibleBounds().getHeight(); }
private Transform getTransform( final Bounds bounds ) { final Transform t = new Transform(); t.scale( (double) RADAR_WIDTH / bounds.getWidth(), (double) RADAR_HEIGHT / bounds.getHeight() ).translate( -bounds.getX(), -bounds.getY() ); return t; }
private Transform getTransform( final Bounds bounds ) { final Transform t = new Transform(); t.scale( (double) RADAR_WIDTH / bounds.getWidth(), (double) RADAR_HEIGHT / bounds.getHeight() ).translate( -bounds.getX(), -bounds.getY() ); return t; }
@Override public void setModellerBounds( final Bounds bounds ) { this.minX = bounds.getX(); this.maxX = minX + bounds.getWidth(); this.minY = bounds.getY(); this.maxY = minY + bounds.getHeight(); this.radarLayer.getViewport().setTransform( getTransform( bounds ) ); }
@Override public void setModellerBounds( final Bounds bounds ) { this.minX = bounds.getX(); this.maxX = minX + bounds.getWidth(); this.minY = bounds.getY(); this.maxY = minY + bounds.getHeight(); this.radarLayer.getViewport().setTransform( getTransform( bounds ) ); }
@Override public void setVisibleBounds( final Bounds bounds ) { radarLayer.remove( visibleBounds ); visibleBounds.setLocation( new Point2D( bounds.getX(), bounds.getY() ) ); visibleBounds.setHeight( bounds.getHeight() ); visibleBounds.setWidth( bounds.getWidth() ); radarLayer.add( visibleBounds ); visibleBounds.moveToTop(); radarLayer.batch(); }
@Override public void setVisibleBounds( final Bounds bounds ) { radarLayer.remove( visibleBounds ); visibleBounds.setLocation( new Point2D( bounds.getX(), bounds.getY() ) ); visibleBounds.setHeight( bounds.getHeight() ); visibleBounds.setWidth( bounds.getWidth() ); radarLayer.add( visibleBounds ); visibleBounds.moveToTop(); radarLayer.batch(); }