Package limelight.builtin.players

Source Code of limelight.builtin.players.Image

package limelight.builtin.players;

import limelight.ui.events.panel.PanelEvent;
import limelight.ui.model.ImagePanel;
import limelight.ui.model.PropPanel;

public class Image
{
  private PropPanel propPanel;
  private ImagePanel imagePanel;

  public void install(PanelEvent event)
  {
    imagePanel = new ImagePanel();
    propPanel = (PropPanel) event.getRecipient();
    propPanel.add(imagePanel);
    propPanel.getBackstage().put("image", this);
  }

  public PropPanel getPropPanel()
  {
    return propPanel;
  }

  public ImagePanel getImagePanel()
  {
    return imagePanel;
  }

  public void setFilename(String path)
  {
    imagePanel.setFilename(path);
  }

  public String getFilename()
  {
    return imagePanel.getFilename();
  }

  public void setRotation(double angle)
  {
    imagePanel.setRotation(angle);
  }

  public double getRotation()
  {
    return imagePanel.getRotation();
  }

  public boolean isScaled()
  {
    return imagePanel.isScaled();
  }

  public void setScaled(boolean value)
  {
    imagePanel.setScaled(value);
  }
}
TOP

Related Classes of limelight.builtin.players.Image

TOP
Copyright © 2018 www.massapi.com. 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.