Tabnine Logo
ArraySelection.contains
Code IndexAdd Tabnine to your IDE (free)

How to use
contains
method
in
com.badlogic.gdx.scenes.scene2d.utils.ArraySelection

Best Java code snippets using com.badlogic.gdx.scenes.scene2d.utils.ArraySelection.contains (Showing top 4 results out of 315)

origin: libgdx/libgdx

if (cullingArea == null || (itemY - itemHeight <= cullingArea.y + cullingArea.height && itemY >= cullingArea.y)) {
  T item = items.get(i);
  boolean selected = selection.contains(item);
  if (selected) {
    Drawable drawable = selectedDrawable;
origin: libgdx/libgdx

if (cullingArea == null || (itemY - itemHeight <= cullingArea.y + cullingArea.height && itemY >= cullingArea.y)) {
  T item = items.get(i);
  boolean selected = selection.contains(item);
  if (selected) {
    Drawable drawable = selectedDrawable;
origin: bladecoder/bladecoder-adventure-engine

@Override
public void draw(Batch batch, float parentAlpha) {
  validate();
  Color color = getColor();
  batch.setColor(color.r, color.g, color.b, color.a * parentAlpha);
  float x = getX(), y = getY(), width = getWidth(), height = getHeight();
  float itemY = height;
  Drawable background = style.background;
  if (background != null) {
    background.draw(batch, x, y, width, height);
    float leftWidth = background.getLeftWidth();
    x += leftWidth;
    itemY -= background.getTopHeight();
    width -= leftWidth + background.getRightWidth();
  }
  for (int i = 0; i < items.size; i++) {
    if (cullingArea == null || (itemY - cellRenderer.getItemHeight() <= cullingArea.y + cullingArea.height
        && itemY >= cullingArea.y)) {
      T item = items.get(i);
      boolean selected = selection.contains(item);
      cellRenderer.draw(batch, parentAlpha, item, selected, x, y + itemY, width,
          cellRenderer.getItemHeight());
    } else if (itemY < cullingArea.y) {
      break;
    }
    itemY -= cellRenderer.getItemHeight();
  }
}

origin: com.badlogicgames.gdx/gdx

if (cullingArea == null || (itemY - itemHeight <= cullingArea.y + cullingArea.height && itemY >= cullingArea.y)) {
  T item = items.get(i);
  boolean selected = selection.contains(item);
  if (selected) {
    Drawable drawable = selectedDrawable;
com.badlogic.gdx.scenes.scene2d.utilsArraySelectioncontains

Popular methods of ArraySelection

  • first
  • items
  • set
  • setRequired
  • addAll
  • choose
  • clear
  • getRequired
  • isDisabled
  • setActor
  • setProgrammaticChangeEvents
  • validate
    Removes objects from the selection that are no longer in the items array. If #getRequired() is true
  • setProgrammaticChangeEvents,
  • validate,
  • changed,
  • cleanup,
  • fireChangeEvent,
  • getMultiple,
  • revert,
  • setMultiple,
  • snapshot

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • ImageIO (javax.imageio)
  • 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