Tabnine Logo
NinePatch.add
Code IndexAdd Tabnine to your IDE (free)

How to use
add
method
in
com.badlogic.gdx.graphics.g2d.NinePatch

Best Java code snippets using com.badlogic.gdx.graphics.g2d.NinePatch.add (Showing top 3 results out of 315)

origin: libgdx/libgdx

bottomLeft = add(patches[BOTTOM_LEFT], color, false, false);
leftWidth = patches[BOTTOM_LEFT].getRegionWidth();
bottomHeight = patches[BOTTOM_LEFT].getRegionHeight();
bottomCenter = add(patches[BOTTOM_CENTER], color, true, false);
middleWidth = Math.max(middleWidth, patches[BOTTOM_CENTER].getRegionWidth());
bottomHeight = Math.max(bottomHeight, patches[BOTTOM_CENTER].getRegionHeight());
bottomRight = add(patches[BOTTOM_RIGHT], color, false, false);
rightWidth = Math.max(rightWidth, patches[BOTTOM_RIGHT].getRegionWidth());
bottomHeight = Math.max(bottomHeight, patches[BOTTOM_RIGHT].getRegionHeight());
middleLeft = add(patches[MIDDLE_LEFT], color, false, true);
leftWidth = Math.max(leftWidth, patches[MIDDLE_LEFT].getRegionWidth());
middleHeight = Math.max(middleHeight, patches[MIDDLE_LEFT].getRegionHeight());
middleCenter = add(patches[MIDDLE_CENTER], color, true, true);
middleWidth = Math.max(middleWidth, patches[MIDDLE_CENTER].getRegionWidth());
middleHeight = Math.max(middleHeight, patches[MIDDLE_CENTER].getRegionHeight());
middleRight = add(patches[MIDDLE_RIGHT], color, false, true);
rightWidth = Math.max(rightWidth, patches[MIDDLE_RIGHT].getRegionWidth());
middleHeight = Math.max(middleHeight, patches[MIDDLE_RIGHT].getRegionHeight());
topLeft = add(patches[TOP_LEFT], color, false, false);
leftWidth = Math.max(leftWidth, patches[TOP_LEFT].getRegionWidth());
topHeight = Math.max(topHeight, patches[TOP_LEFT].getRegionHeight());
topCenter = add(patches[TOP_CENTER], color, true, false);
origin: libgdx/libgdx

bottomLeft = add(patches[BOTTOM_LEFT], color, false, false);
leftWidth = patches[BOTTOM_LEFT].getRegionWidth();
bottomHeight = patches[BOTTOM_LEFT].getRegionHeight();
bottomCenter = add(patches[BOTTOM_CENTER], color, true, false);
middleWidth = Math.max(middleWidth, patches[BOTTOM_CENTER].getRegionWidth());
bottomHeight = Math.max(bottomHeight, patches[BOTTOM_CENTER].getRegionHeight());
bottomRight = add(patches[BOTTOM_RIGHT], color, false, false);
rightWidth = Math.max(rightWidth, patches[BOTTOM_RIGHT].getRegionWidth());
bottomHeight = Math.max(bottomHeight, patches[BOTTOM_RIGHT].getRegionHeight());
middleLeft = add(patches[MIDDLE_LEFT], color, false, true);
leftWidth = Math.max(leftWidth, patches[MIDDLE_LEFT].getRegionWidth());
middleHeight = Math.max(middleHeight, patches[MIDDLE_LEFT].getRegionHeight());
middleCenter = add(patches[MIDDLE_CENTER], color, true, true);
middleWidth = Math.max(middleWidth, patches[MIDDLE_CENTER].getRegionWidth());
middleHeight = Math.max(middleHeight, patches[MIDDLE_CENTER].getRegionHeight());
middleRight = add(patches[MIDDLE_RIGHT], color, false, true);
rightWidth = Math.max(rightWidth, patches[MIDDLE_RIGHT].getRegionWidth());
middleHeight = Math.max(middleHeight, patches[MIDDLE_RIGHT].getRegionHeight());
topLeft = add(patches[TOP_LEFT], color, false, false);
leftWidth = Math.max(leftWidth, patches[TOP_LEFT].getRegionWidth());
topHeight = Math.max(topHeight, patches[TOP_LEFT].getRegionHeight());
topCenter = add(patches[TOP_CENTER], color, true, false);
origin: com.badlogicgames.gdx/gdx

bottomLeft = add(patches[BOTTOM_LEFT], color, false, false);
leftWidth = patches[BOTTOM_LEFT].getRegionWidth();
bottomHeight = patches[BOTTOM_LEFT].getRegionHeight();
bottomCenter = add(patches[BOTTOM_CENTER], color, true, false);
middleWidth = Math.max(middleWidth, patches[BOTTOM_CENTER].getRegionWidth());
bottomHeight = Math.max(bottomHeight, patches[BOTTOM_CENTER].getRegionHeight());
bottomRight = add(patches[BOTTOM_RIGHT], color, false, false);
rightWidth = Math.max(rightWidth, patches[BOTTOM_RIGHT].getRegionWidth());
bottomHeight = Math.max(bottomHeight, patches[BOTTOM_RIGHT].getRegionHeight());
middleLeft = add(patches[MIDDLE_LEFT], color, false, true);
leftWidth = Math.max(leftWidth, patches[MIDDLE_LEFT].getRegionWidth());
middleHeight = Math.max(middleHeight, patches[MIDDLE_LEFT].getRegionHeight());
middleCenter = add(patches[MIDDLE_CENTER], color, true, true);
middleWidth = Math.max(middleWidth, patches[MIDDLE_CENTER].getRegionWidth());
middleHeight = Math.max(middleHeight, patches[MIDDLE_CENTER].getRegionHeight());
middleRight = add(patches[MIDDLE_RIGHT], color, false, true);
rightWidth = Math.max(rightWidth, patches[MIDDLE_RIGHT].getRegionWidth());
middleHeight = Math.max(middleHeight, patches[MIDDLE_RIGHT].getRegionHeight());
topLeft = add(patches[TOP_LEFT], color, false, false);
leftWidth = Math.max(leftWidth, patches[TOP_LEFT].getRegionWidth());
topHeight = Math.max(topHeight, patches[TOP_LEFT].getRegionHeight());
topCenter = add(patches[TOP_CENTER], color, true, false);
com.badlogic.gdx.graphics.g2dNinePatchadd

Popular methods of NinePatch

  • <init>
    Construct a nine patch from the given nine texture regions. The provided patches must be consistentl
  • draw
  • setColor
    Copy given color. The color will be blended with the batch color, then combined with the texture col
  • getBottomHeight
  • getRightWidth
  • getTotalHeight
  • getTotalWidth
  • getLeftWidth
  • getPadBottom
    Returns the bottom padding if set, else returns #getBottomHeight().
  • getPadLeft
    Returns the left padding if set, else returns #getLeftWidth().
  • getPadRight
    Returns the right padding if set, else returns #getRightWidth().
  • getPadTop
    Returns the top padding if set, else returns #getTopHeight().
  • getPadRight,
  • getPadTop,
  • getTexture,
  • getTopHeight,
  • load,
  • prepareVertices,
  • set,
  • setPadding,
  • getColor

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JTextField (javax.swing)
  • 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