Пример #1
0
  /**
   * 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
  /**
   * 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);
  }