Tabnine Logo
Thumbnail.getWidth
Code IndexAdd Tabnine to your IDE (free)

How to use
getWidth
method
in
com.atlassian.core.util.thumbnail.Thumbnail

Best Java code snippets using com.atlassian.core.util.thumbnail.Thumbnail.getWidth (Showing top 5 results out of 315)

origin: com.atlassian.jira/jira-core

@Override
public int getWidth()
{
  return thumbnail.getWidth();
}
origin: com.atlassian.streams/streams-confluence-plugin

public Preview(Attachment attachment, Thumbnail thumbnail)
{
  this.downloadPath = attachment.getDownloadPath();
  this.height = thumbnail.getHeight();
  this.width = thumbnail.getWidth();
}
origin: com.atlassian.core/atlassian-core-thumbnail

  /**
   * Returns a string representing the internal values of this <code>Thumbnail</code> object. This string contains the
   * MIME Media type, width and height of this <code>Thumbnail</code> object.
   *
   * @return a string representation of this <code>Thumbnail</code> object
   */
  @Override
  public String toString() {
    return getClass().getName() + " [MimeType=" + mimeType + ",width=" + getWidth() + ",height=" + getHeight() + ",filename=" + getFilename() + ",attachmentId=" + getAttachmentId() + "]";
  }
}
origin: com.atlassian.jira/jira-core

return new Thumbnail(thumbnail.getHeight(), thumbnail.getWidth(), thumbnailFile.getName(), attachment.getId(),
    thumbnail.getMimeType());
origin: com.atlassian.streams/streams-jira-plugin

  public ThumbnailItem apply(Thumbnail thumbnail)
  {
    if (thumbnail.getFilename() == null)
    {
      return brokenThumbnailItem(attachment, baseUri);
    }
    return new ThumbnailItem(
        uriProvider.getThumbnailUri(baseUri, thumbnail),
        uriProvider.getAttachmentUri(baseUri, attachment),
        scaleToThumbnailSize(thumbnail.getWidth(), thumbnail.getHeight()));
  }
};
com.atlassian.core.util.thumbnailThumbnailgetWidth

Popular methods of Thumbnail

  • getHeight
  • <init>
    Creates an instance of Thumbnail with the provided arguments.
  • getAttachmentId
    the id of the attachment for which this is a thumbnail of
  • getFilename
    Get the filename of the file this thumbnail represents.
  • equals
    Checks whether two Thumbnail objects have equal values.
  • getMimeType
    Return the MIME Media type for thumbnail.
  • hashCode
    Returns the hash code for this Thumbnail.

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now