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(); }
public void setBounds(final Bounds bounds) { this.minX = bounds.getX(); this.minY = bounds.getY(); this.maxX = minX + bounds.getWidth(); this.maxY = minY + bounds.getHeight(); }
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); }
private double getCellScrollDeltaY(final GridWidget gridWidget) { final GridData gridModel = gridWidget.getModel(); final GridData.SelectedCell origin = gridModel.getSelectedCellsOrigin(); final int uiRowIndex = origin.getRowIndex(); double dy = 0; final Bounds bounds = gridLayer.getVisibleBounds(); final double rowHeight = gridModel.getRow(uiRowIndex).getHeight(); final double headerHeight = gridWidget.getRenderer().getHeaderHeight(); final double gridCellY = gridWidget.getY() + headerHeight + gridWidget.getRendererHelper().getRowOffset(uiRowIndex); if (gridCellY + rowHeight >= bounds.getY() + bounds.getHeight()) { dy = bounds.getY() + bounds.getHeight() - gridCellY - rowHeight; } else if (gridCellY <= bounds.getY() + headerHeight) { dy = bounds.getY() + headerHeight - gridCellY; } return dy; }
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 = 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; }
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 ) ); }
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; }
/** * Find the y-offset relative to the GridWidget origin where Floating Header is positioned. * @return */ private double getHeaderOffsetY() { final double vpY = getVisibleBounds().getY(); if (view.isSelected()) { if (view.getAbsoluteY() < vpY && view.getAbsoluteY() + view.getHeight() > vpY + view.getRenderer().getHeaderHeight()) { return vpY - view.getAbsoluteY(); } } return 0.0; }
/** * Find the y-offset relative to the GridWidget origin where Floating Header is positioned. * @return */ private double getHeaderOffsetY() { final double vpY = getVisibleBounds().getY(); if (view.isSelected()) { if (view.getAbsoluteY() < vpY && view.getAbsoluteY() + view.getHeight() > vpY + view.getRenderer().getHeaderHeight()) { return vpY - view.getAbsoluteY(); } } return 0.0; }
@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(); }