/** * 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); }