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