Tabnine Logo
TileCode.setX
Code IndexAdd Tabnine to your IDE (free)

How to use
setX
method
in
org.geomajas.layer.tile.TileCode

Best Java code snippets using org.geomajas.layer.tile.TileCode.setX (Showing top 1 results out of 315)

origin: org.geomajas.plugin/geomajas-layer-tms

  /**
   * @param relativeUrl just the part with level/x/y.extension
   * @return
   */
  public static TileCode parseTileCode(String relativeUrl) {
    TileCode tc = new TileCode();
    StringTokenizer tokenizer = new StringTokenizer(relativeUrl, "/");
    tc.setTileLevel(Integer.parseInt(tokenizer.nextToken()));
    tc.setX(Integer.parseInt(tokenizer.nextToken()));
    tc.setY(Integer.parseInt(tokenizer.nextToken().split("\\.")[0]));
    return tc;
  }
}
org.geomajas.layer.tileTileCodesetX

Javadoc

The X-ordinate at the given level: X=[0, (2^tileLevel) - 1].

Popular methods of TileCode

  • <init>
    The only constructor available. It requires you to immediately set all it's values.
  • getX
    Get the X-ordinate at the given level: X=[0, (2^tileLevel) - 1].
  • getY
    Get the Y-ordinate at the given level: Y=[0, (2^tileLevel) - 1].
  • getTileLevel
    Get the tiling depth level. Where 0 means the top level. Make sure this is always a positive integer
  • toString
    Return the values as a readable text: TileLevel-X-Y.
  • clone
    Create a clone from this object.
  • setTileLevel
    set the tiling depth level. Where 0 means the top level. Make sure this is always a positive integer
  • setY
    The Y-ordinate at the given level: Y=[0, (2^tileLevel) - 1].

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Menu (java.awt)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Github Copilot alternatives
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