/** * Returns the size of the thumbnail. * <p> * Returns {@code null} if the scaling factor is set rather than the * explicit thumbnail size. * * @return The size of the thumbnail. */ public Dimension getSize() { if (thumbnailSize != null) { return (Dimension)thumbnailSize.clone(); } else { return null; } }
GranuleLoader( final ImageReadParam readParameters, final int imageIndex, final ReferencedEnvelope cropBBox, final MathTransform2D worldToGrid, final Granule granule, final Dimension tilesDimension) { super(); this.readParameters = ImageUtilities.cloneImageReadParam(readParameters); this.imageIndex = imageIndex; this.cropBBox = cropBBox; this.worldToGrid = worldToGrid; this.granule = granule; this.tilesDimension = tilesDimension != null ? (Dimension) tilesDimension.clone() : null; }
public void setActualSize(Dimension actualSize) { actualBounds.setSize(actualSize); Dimension paintSize = (Dimension) actualSize.clone(); if (hasShadow()) { paintSize.width += (2 * shadowSize); paintSize.height += (2 * shadowSize); } super.setSize(paintSize); updateAllFollowers(); }
/** * @param dimension * @uml.property name="requestedDimension" */ public void setRequestedDimension(final Dimension dimension) { this.requestedDimension = (Dimension) dimension.clone(); }
/** * Returns the image size in the input stream, or {@code null} if unknow. * Image size is specified by the last call to {@link #setStreamImageSize} or * {@link #setStreamSampleModel}. */ public Dimension getStreamImageSize() { return (size!=null) ? (Dimension) size.clone() : null; }
public Dimension getReferenceImageSize() { return (Dimension)_referenceImageSize.clone(); }
Dimension tileDimensions = rasterLayerResponse.getRequest().getTileDimensions(); if (tileDimensions == null) { tileDimensions = (Dimension) JAI.getDefaultTileSize().clone();
/** * Sets the preferred dimension for JSpinner and derived classes. * * @param value the preferred dimensions (do not use 0 for height!) */ public void setPreferredDimensionJSpinner(Dimension value) { m_PreferredDimensionJSpinner = (Dimension) value.clone(); update(); }
/** * Sets the preferred dimension for JSpinner and derived classes. * * @param value the preferred dimensions (do not use 0 for height!) */ public void setPreferredDimensionJSpinner(Dimension value) { m_PreferredDimensionJSpinner = (Dimension) value.clone(); update(); }
/** * Sets the preferred dimension for JSpinner and derived classes. * * @param value the preferred dimensions (do not use 0 for height!) */ public void setPreferredDimensionJSpinner(Dimension value) { m_PreferredDimensionJSpinner = (Dimension) value.clone(); update(); }
/** * Sets the minimum dimension for JComboBox and derived classes. * * @param value the minimum dimensions (do not use 0 for height!) */ public void setMinDimensionJComboBox(Dimension value) { m_MinDimensionJComboBox = (Dimension) value.clone(); update(); }
/** * Sets the preferred dimension for JSpinner and derived classes. * * @param value the preferred dimensions (do not use 0 for height!) */ public void setPreferredDimensionJSpinner(Dimension value) { m_PreferredDimensionJSpinner = (Dimension) value.clone(); update(); }
public Dimension getVideoDimension() throws IOException { ensureRealized(); return (Dimension) mainHeader.size.clone(); }
@Override public void setFirstColumnWidth(int width) { Dimension d = (Dimension)jLabelLabel.getMinimumSize().clone(); d.width = width; jLabelLabel.setMinimumSize(d); jLabelLabel.setPreferredSize(d); jLabelLabel.setMaximumSize(d); }
@Override public void setFirstColumnWidth(int width) { Dimension d = (Dimension)jLabelTitle.getMinimumSize().clone(); d.width = width; jLabelTitle.setMinimumSize(d); jLabelTitle.setPreferredSize(d); jLabelTitle.setMaximumSize(d); }
/** * {@inheritDoc} */ @Override public Dimension getPreferredSize(JComponent c) { Dimension dim = getEditorPreferredSize(); if (popupButton != null) { dim.width += popupButton.getPreferredSize().width; } Insets insets = datePicker.getInsets(); dim.width += insets.left + insets.right; dim.height += insets.top + insets.bottom; return (Dimension)dim.clone(); }
public void setActualSize(Dimension actualSize) { actualBounds.setSize(actualSize); Dimension paintSize = (Dimension) actualSize.clone(); if (hasShadow()) { paintSize.width += (2 * shadowSize); paintSize.height += (2 * shadowSize); } super.setSize(paintSize); updateAllFollowers(); }
/** * {@inheritDoc} */ @Override public Dimension getPreferredSize(JComponent c) { Dimension dim = datePicker.getEditor().getPreferredSize(); if (popupButton != null) { dim.width += popupButton.getPreferredSize().width; } Insets insets = datePicker.getInsets(); dim.width += insets.left + insets.right; dim.height += insets.top + insets.bottom; return (Dimension)dim.clone(); }
/** * {@inheritDoc} */ @Override public Dimension getPreferredSize(JComponent c) { Dimension dim = datePicker.getEditor().getPreferredSize(); if (popupButton != null) { dim.width += popupButton.getPreferredSize().width; } Insets insets = datePicker.getInsets(); dim.width += insets.left + insets.right; dim.height += insets.top + insets.bottom; return (Dimension)dim.clone(); }
/** * {@inheritDoc} */ @Override public Dimension getPreferredSize(JComponent c) { Dimension dim = datePicker.getEditor().getPreferredSize(); if (popupButton != null) { dim.width += popupButton.getPreferredSize().width; } Insets insets = datePicker.getInsets(); dim.width += insets.left + insets.right; dim.height += insets.top + insets.bottom; return (Dimension)dim.clone(); }