Tabnine Logo
SVGRoot.getDeviceHeight
Code IndexAdd Tabnine to your IDE (free)

How to use
getDeviceHeight
method
in
com.kitfox.svg.SVGRoot

Best Java code snippets using com.kitfox.svg.SVGRoot.getDeviceHeight (Showing top 8 results out of 315)

origin: guru.nidi.com.kitfox/svgSalamander

public float getHeight()
{
  if (root == null) return 0;
  return root.getDeviceHeight();
}
 
origin: com.metsci.ext.com.kitfox.svg/svg-salamander

public float getHeight()
{
  if (root == null) return 0;
  return root.getDeviceHeight();
}
 
origin: com.barchart.kitfox/kitfox-svg-core

public float getHeight()
{
  if (root == null) return 0;
  return root.getDeviceHeight();
}
 
origin: blackears/svgSalamander

public float getHeight()
{
  if (root == null) return 0;
  return root.getDeviceHeight();
}
 
origin: com.barchart.kitfox/kitfox-svg-core

/**
 * Loads an SVG document from a URI.
 * @param svgURI - URI to load document from
 */
public void setSvgURI(URI svgURI)
{
  URI old = this.svgURI;
  this.svgURI = svgURI;
  
  SVGDiagram diagram = svgUniverse.getDiagram(svgURI);
  if (diagram != null)
  {
    Dimension size = getPreferredSize();
    if (size == null)
    {
      size = new Dimension((int)diagram.getRoot().getDeviceWidth(), (int)diagram.getRoot().getDeviceHeight());
    }
    diagram.setDeviceViewport(new Rectangle(0, 0, size.width, size.height));
  }
  
  changes.firePropertyChange("svgURI", old, svgURI);
}
 
origin: blackears/svgSalamander

/**
 * Loads an SVG document from a URI.
 * @param svgURI - URI to load document from
 */
public void setSvgURI(URI svgURI)
{
  URI old = this.svgURI;
  this.svgURI = svgURI;
  
  SVGDiagram diagram = svgUniverse.getDiagram(svgURI);
  if (diagram != null)
  {
    Dimension size = getPreferredSize();
    if (size == null)
    {
      size = new Dimension((int)diagram.getRoot().getDeviceWidth(), (int)diagram.getRoot().getDeviceHeight());
    }
    diagram.setDeviceViewport(new Rectangle(0, 0, size.width, size.height));
  }
  
  changes.firePropertyChange("svgURI", old, svgURI);
}
 
origin: com.metsci.ext.com.kitfox.svg/svg-salamander

/**
 * Loads an SVG document from a URI.
 * @param svgURI - URI to load document from
 */
public void setSvgURI(URI svgURI)
{
  URI old = this.svgURI;
  this.svgURI = svgURI;
  
  SVGDiagram diagram = svgUniverse.getDiagram(svgURI);
  if (diagram != null)
  {
    Dimension size = getPreferredSize();
    if (size == null)
    {
      size = new Dimension((int)diagram.getRoot().getDeviceWidth(), (int)diagram.getRoot().getDeviceHeight());
    }
    diagram.setDeviceViewport(new Rectangle(0, 0, size.width, size.height));
  }
  
  changes.firePropertyChange("svgURI", old, svgURI);
}
 
origin: guru.nidi.com.kitfox/svgSalamander

/**
 * Loads an SVG document from a URI.
 * @param svgURI - URI to load document from
 */
public void setSvgURI(URI svgURI)
{
  URI old = this.svgURI;
  this.svgURI = svgURI;
  
  SVGDiagram diagram = svgUniverse.getDiagram(svgURI);
  if (diagram != null)
  {
    Dimension size = getPreferredSize();
    if (size == null)
    {
      size = new Dimension((int)diagram.getRoot().getDeviceWidth(), (int)diagram.getRoot().getDeviceHeight());
    }
    diagram.setDeviceViewport(new Rectangle(0, 0, size.width, size.height));
  }
  
  changes.firePropertyChange("svgURI", old, svgURI);
}
 
com.kitfox.svgSVGRootgetDeviceHeight

Popular methods of SVGRoot

  • build
  • contains
  • getBoundingBox
  • getDeviceRect
  • getDeviceWidth
  • getPres
  • pick
  • prepareViewport
  • render
  • setDiagram
  • updateTime
    Updates all attributes in this diagram associated with a time event. Ie, all attributes with track i
  • getChild
  • updateTime,
  • getChild,
  • getNumChildren,
  • getStyleSheet,
  • renderToViewport,
  • setAttribute

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • putExtra (Intent)
  • startActivity (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Best IntelliJ 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