/** * Recalculates dimensions of objects listening and self */ protected void refreshUp() { for (Content parent: parents ) { parent.refreshUp(); } }
/** * sets the min height of the element * @param minHeight */ public void setMinHeight(double minHeight){ if(0 > minHeight) { throw new IllegalArgumentException("min height can only be a positive number"); } this.minHeight = minHeight; refreshUp(); }
/** * sets the min width of the element * @param minWidth */ public void setMinWidth(double minWidth) { if(0 > minWidth) { throw new IllegalArgumentException("min width can only be a positive number"); } this.minWidth = minWidth; refreshUp(); }
/** * @see Content#refreshUp() */ @Override protected void refreshUp() { setOptimalSize(); super.refreshUp(); }
/** * Recalculates all dimensions */ public final void refresh() { refreshUp(); refreshDown(); }
@Override protected void refreshUp() { Rectangle2D minimalBounds = getMinimalBounds(); setWidth(minimalBounds.getWidth()); setHeight(minimalBounds.getHeight()); super.refreshUp(); }
/** * @see Content#refreshUp() */ @Override protected void refreshUp() { Rectangle2D minimalBounds = getMinimalBounds(); setWidth(minimalBounds.getWidth()); setHeight(minimalBounds.getHeight()); super.refreshUp(); }
/** * @see Content#refreshUp() */ @Override public final void refreshUp() { Rectangle2D minimalBounds = getMinimalBounds(); setWidth(minimalBounds.getWidth()); setHeight(minimalBounds.getHeight()); super.refreshUp(); }