Package ru.snake.spritepacker.core

Examples of ru.snake.spritepacker.core.Sprite


  }

  @Override
  public void actionPerformed(ActionEvent arg0) {
    Animation animation = factory.getActiveAnimation();
    Sprite sprite = factory.getActiveSprite();

    if (animation == null || sprite == null) {
      Dialogs.warning(parent,
          Messages.getString("MoveSpriteUpAction.NO_SPRITE")); //$NON-NLS-1$
View Full Code Here


  }

  @Override
  public void actionPerformed(ActionEvent arg0) {
    Animation animation = factory.getActiveAnimation();
    Sprite sprite = factory.getActiveSprite();

    if (animation == null || sprite == null) {
      Dialogs.warning(parent,
          Messages.getString("MoveSpriteDownAction.NO_SPRITE")); //$NON-NLS-1$
View Full Code Here

        builder.append(current.x);
        builder.append('+');
        builder.append(current.y);

        if (needLoad(propTransparent, propColored, subimage)) {
          Sprite sprite;

          sprite = createSprite(propWidth, propHeight, propCrop,
              textureLoader, subimage, builder.toString());

          if (sprite != null) {
View Full Code Here

    if (texture == null) {
      return null;
    }

    return new Sprite(offset.x, offset.y, namer, texture);
  }
View Full Code Here

  }

  @Override
  public void actionPerformed(ActionEvent arg0) {
    Animation animation = factory.getActiveAnimation();
    Sprite sprite = factory.getActiveSprite();

    if (animation == null || sprite == null) {
      Dialogs.warning(parent,
          Messages.getString("SetSpriteTextureAction.NO_SPRITE")); //$NON-NLS-1$
View Full Code Here

    setIcon(ICON_NAME, true);
  }

  @Override
  public void actionPerformed(ActionEvent arg0) {
    Sprite sprite = factory.getActiveSprite();

    if (sprite == null) {
      Dialogs.warning(parent,
          Messages.getString("RenameSpriteAction.NO_SPRITE")); //$NON-NLS-1$
View Full Code Here

    return value instanceof Sprite;
  }

  @Override
  protected void updateIcon(Object value) {
    Sprite sprite = (Sprite) value;
    Texture texture = sprite.texture;
    Icon textureIcon = getTextureIcon(texture);

    icon.setIcon(textureIcon);
  }
View Full Code Here

    icon.setIcon(textureIcon);
  }

  @Override
  protected void updateText(Object value) {
    Sprite sprite = (Sprite) value;

    label.setText(String.format(
        Messages.getString("SpriteCellRenderer.NAME_FORMAT"), sprite.name, //$NON-NLS-1$
        sprite.offsetX, sprite.offsetY));
  }
View Full Code Here

    if (!(value instanceof Sprite)) {
      return;
    }

    Sprite sprite = (Sprite) value;

    factory.setActiveSprite(sprite);
  }
View Full Code Here

    return factory.getActiveSprite() != null;
  }

  @Override
  protected void processDoubleClick() {
    Sprite sprite = factory.getActiveSprite();

    String newnane = Dialogs.inputString(parent,
        Messages.getString("SpriteMouseListener.MESSAGE"), //$NON-NLS-1$
        sprite.name);
View Full Code Here

TOP

Related Classes of ru.snake.spritepacker.core.Sprite

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.