@Override protected double computePrefWidth(double height) { return snappedLeftInset() + getCellWidth() + snappedRightInset() + 2 * getHSpacing(); }
col = (int) Math.floor((getWidth() + getHSpacing() - snappedLeftInset() - snappedRightInset()) / (getCellWidth() + getHSpacing())); col = getLimitColumn() != -1 && col > getLimitColumn() ? getLimitColumn() : col; getCellWidth(), getCellHeight(), row, col, getHSpacing(), getVSpacing()); if (boundingBox != null) { blockX = boundingBox.getMinY() * getCellWidth() + boundingBox.getMinY() * getHSpacing() + snappedLeftInset(); blockY = boundingBox.getMinX() * getCellHeight() + boundingBox.getMinX() * getVSpacing() + snappedTopInset(); blockWidth = boundingBox.getWidth() * getCellWidth() + (boundingBox.getWidth() - 1) * getHSpacing(); blockHeight = boundingBox.getHeight() * getCellHeight() + (boundingBox.getHeight() - 1) * getVSpacing();
@Override protected double computePrefWidth(double height) { return snappedLeftInset() + getCellWidth() + snappedRightInset() + 2 * getHSpacing(); }
col = (int) Math.floor((getWidth() + getHSpacing() - snappedLeftInset() - snappedRightInset()) / (getCellWidth() + getHSpacing())); col = getLimitColumn() != -1 && col > getLimitColumn() ? getLimitColumn() : col; getCellWidth(), getCellHeight(), row, col, getHSpacing(), getVSpacing()); if (boundingBox != null) { blockX = boundingBox.getMinY() * getCellWidth() + boundingBox.getMinY() * getHSpacing() + snappedLeftInset(); blockY = boundingBox.getMinX() * getCellHeight() + boundingBox.getMinX() * getVSpacing() + snappedTopInset(); blockWidth = boundingBox.getWidth() * getCellWidth() + (boundingBox.getWidth() - 1) * getHSpacing(); blockHeight = boundingBox.getHeight() * getCellHeight() + (boundingBox.getHeight() - 1) * getVSpacing();