1172 public double getResizableWithParentArea() { 1173 return resizableWithParentArea; 1174 } 1175 1176 // This is used to save the current area during resizing when 1177 // isResizeableWithParent equals false. 1178 public void setResizableWithParentArea(double resizableWithParentArea) { 1179 if (!isResizableWithParent()) { 1180 this.resizableWithParentArea = resizableWithParentArea; 1181 } else { 1182 this.resizableWithParentArea = 0; 1183 } 1184 } 1185 1186 protected void setClipSize(double w, double h) { 1187 clipRect.setWidth(w); 1188 clipRect.setHeight(h); 1189 } 1190 1191 @Override protected double computeMaxWidth(double height) { 1192 return snapSize(content.maxWidth(height)); 1193 } 1194 1195 @Override protected double computeMaxHeight(double width) { 1196 return snapSize(content.maxHeight(width)); 1197 } 1198 } 1199 } 1200 | 1172 public double getResizableWithParentArea() { 1173 return resizableWithParentArea; 1174 } 1175 1176 // This is used to save the current area during resizing when 1177 // isResizeableWithParent equals false. 1178 public void setResizableWithParentArea(double resizableWithParentArea) { 1179 if (!isResizableWithParent()) { 1180 this.resizableWithParentArea = resizableWithParentArea; 1181 } else { 1182 this.resizableWithParentArea = 0; 1183 } 1184 } 1185 1186 protected void setClipSize(double w, double h) { 1187 clipRect.setWidth(w); 1188 clipRect.setHeight(h); 1189 } 1190 1191 @Override protected double computeMaxWidth(double height) { 1192 return snapSizeX(content.maxWidth(height)); 1193 } 1194 1195 @Override protected double computeMaxHeight(double width) { 1196 return snapSizeY(content.maxHeight(width)); 1197 } 1198 } 1199 } 1200 |