⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 controlinfo.java

📁 WAP ide 代码
💻 JAVA
字号:
package Designer;

/**
 * Stores information for each control created in the PhoneDesigner class, also
 * for controls created in the menu designer.
 * Copyright:    Copyright (c) 2003
 * @author  Mark Busman
 * @version 1.0
 *
 * For License and contact information see PhoneDesigner.java
 */

import java.awt.Color;

public class ControlInfo extends Object {

  //Class Variables
  String ImageFile = "";
  int Width = 0;
  int Height = 0;
  int X = 0;
  int Y = 0;
  String Action = "";
  Color aColor = new Color(255, 255, 255);
  boolean Transparent = false;

  /** Creates new ControlInfo */
  public ControlInfo() {
  }

  /** Returns a string with the file location of the image file */
  public String GetImageFile() {
    return ImageFile;
  }

  /** Returns an int containing the width of the control */
  public int GetWidth() {
    return Width;
  }

  /** Returns an int containing the height of the control */
  public int GetHeight() {
    return Height;
  }

  /** Returns an int with the X location of the control */
  public int GetX() {
    return X;
  }

  /** Returns an int with the Y location of the control */
  public int GetY() {
    return Y;
  }

  /** Returns the action associated with the control */
  public String GetAction() {
    return Action;
  }

  /** Returns the color of the control */
  public Color GetColor() {
    return aColor;
  }

  /** Returns the transparency of the control */
  public boolean GetTransparent() {
    return Transparent;
  }

  /** Sets a string with the file location of the image file */
  public void SetImageFile(String f) {
    ImageFile = f;
  }

  /** Sets an int containing the width of the control */
  public void SetWidth(int w) {
    Width = w;
  }

  /** Returns an int containing the height of the control */
  public void SetHeight(int h) {
    Height = h;
  }

  /** Returns an int with the X location of the control */
  public void SetX(int x) {
    X = x;
  }

  /** Returns an int with the Y location of the control */
  public void SetY(int y) {
    Y = y;
  }

  /** Returns the action associated with the control */
  public void SetAction(String a) {
    Action = a;
  }

  /** Returns the color of the control */
  public void SetColor(Color c) {
    aColor = c;
  }

  /** Returns the transparency of the control */
  public void SetTransparent(boolean t) {
    Transparent = t;
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -