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

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

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

origin: libgdx/libgdx

/** Returns the bottom padding if set, else returns {@link #getBottomHeight()}. */
public float getPadBottom () {
  if (padBottom == -1) return getBottomHeight();
  return padBottom;
}
origin: libgdx/libgdx

/** Returns the bottom padding if set, else returns {@link #getBottomHeight()}. */
public float getPadBottom () {
  if (padBottom == -1) return getBottomHeight();
  return padBottom;
}
origin: libgdx/libgdx

float bottomHeight = getBottomHeight();
if ((patches[BOTTOM_LEFT] != null && patches[BOTTOM_LEFT].getRegionHeight() != bottomHeight)
  || (patches[BOTTOM_CENTER] != null && patches[BOTTOM_CENTER].getRegionHeight() != bottomHeight)
origin: libgdx/libgdx

float bottomHeight = getBottomHeight();
if ((patches[BOTTOM_LEFT] != null && patches[BOTTOM_LEFT].getRegionHeight() != bottomHeight)
  || (patches[BOTTOM_CENTER] != null && patches[BOTTOM_CENTER].getRegionHeight() != bottomHeight)
origin: libgdx/libgdx

@Override
public void create () {
  TestPatch tp;
  // Create all the NinePatches to test
  ninePatches.add(new TestPatch("default"));
  tp = new TestPatch("20px width");
  int bWidth = 20;
  tp.ninePatch.setLeftWidth(bWidth);
  tp.ninePatch.setRightWidth(bWidth);
  tp.ninePatch.setTopHeight(bWidth);
  tp.ninePatch.setBottomHeight(bWidth);
  ninePatches.add(tp);
  tp = new TestPatch("fat left");
  tp.ninePatch.setLeftWidth(3 * tp.ninePatch.getRightWidth());
  ninePatches.add(tp);
  tp = new TestPatch("fat top");
  tp.ninePatch.setTopHeight(3 * tp.ninePatch.getBottomHeight());
  ninePatches.add(tp);
  tp = new TestPatch("degenerate", newDegenerateNinePatch());
  ninePatches.add(tp);
  tp = new TestPatch("upper-left quad", newULQuadPatch());
  ninePatches.add(tp);
  tp = new TestPatch("no middle row", newMidlessPatch());
  ninePatches.add(tp);
  b = new SpriteBatch();
}
origin: com.badlogicgames.gdx/gdx

/** Returns the bottom padding if set, else returns {@link #getBottomHeight()}. */
public float getPadBottom () {
  if (padBottom == -1) return getBottomHeight();
  return padBottom;
}
origin: com.badlogicgames.gdx/gdx

float bottomHeight = getBottomHeight();
if ((patches[BOTTOM_LEFT] != null && patches[BOTTOM_LEFT].getRegionHeight() != bottomHeight)
  || (patches[BOTTOM_CENTER] != null && patches[BOTTOM_CENTER].getRegionHeight() != bottomHeight)
com.badlogic.gdx.graphics.g2dNinePatchgetBottomHeight

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
  • getRightWidth
  • getTotalHeight
  • getTotalWidth
  • add
  • 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

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 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