コード例 #1
0
ファイル: MatrixTheme.java プロジェクト: szopenfx/code
  /**
   * Create window appearance
   *
   * @param selected Selected or normal
   * @return Appearance object
   */
  protected Appearance createWindow(boolean selected) {
    String name = "matrix-window.jpg";
    int plane = TexturedAppearance.SIDE_PLANE;
    int x = 256, y = 256;

    return selected
        ? (Appearance) TexturedAppearance.createSelected(plane, name, x, y)
        : (Appearance) TexturedAppearance.createNormal(plane, name, x, y);
  }
コード例 #2
0
ファイル: MatrixTheme.java プロジェクト: szopenfx/code
  /**
   * Create door appearance
   *
   * @param selected Selected or normal
   * @return Appearance object
   */
  protected Appearance createDoor(boolean selected) {
    String name = "matrix-door.jpg";
    int plane = TexturedAppearance.FRONT_PLANE;
    int x = 512, y = 512;

    return selected
        ? (Appearance) TexturedAppearance.createSelected(plane, name, x, y)
        : (Appearance) TexturedAppearance.createNormal(plane, name, x, y);
  }