Ejemplo n.º 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);
  }
Ejemplo n.º 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);
  }
Ejemplo n.º 3
0
 /**
  * Create front appearance
  *
  * @return Appearance object
  */
 protected Appearance createFront() {
   return TexturedAppearance.createNormal(
       TexturedAppearance.FRONT_PLANE, "matrix-side.jpg", 256, 256);
 }
Ejemplo n.º 4
0
 /**
  * Create side appearance
  *
  * @return Appearance object
  */
 protected Appearance createSide() {
   return TexturedAppearance.createNormal(
       TexturedAppearance.SIDE_PLANE, "matrix-side.jpg", 256, 256);
 }
Ejemplo n.º 5
0
 /**
  * Create floor appearance
  *
  * @return Appearance object
  */
 protected Appearance createFloor() {
   return TexturedAppearance.createNormal(
       TexturedAppearance.FLAT_PLANE, "matrix-floor.jpg", 256, 256);
 }
Ejemplo n.º 6
0
 /**
  * Create ceiling appearance
  *
  * @return Appearance object
  */
 protected Appearance createCeiling() {
   return TexturedAppearance.createNormal(
       TexturedAppearance.FLAT_PLANE, "matrix-ceiling.jpg", 256, 256);
 }