Source code: com/paradoxpoint/libitina/monument/Layer.java
1 /*
2 * Libitina - Funeral Monument Image Compositor
3 * Copyright (C) 2003,2004 Luke Imhoff
4 *
5 * Contact Info:
6 * luke@paradoxpoint.com
7 * Luke Imhoff
8 * 2514 Pied Piper Lane
9 * Wausau, WI 54403
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 *
25 * LayerConstants.java
26 *
27 * Created on June 8, 2003, 2:51 AM
28 */
29
30 package com.paradoxpoint.libitina.monument;
31
32 /** Constants describing default positions of <CODE>Item</CODE>s
33 * @author Luke Imhoff
34 */
35 public class Layer implements PositionBias {
36
37 private final int positionBias;
38
39 private Layer(String name, int positionBias) {
40 this.positionBias = positionBias;
41 }
42
43 public int getPositionBias() {
44 return positionBias;
45 }
46
47 public boolean hasBias() {
48 return true;
49 }
50
51 public static final Layer BACKGROUND = new Layer("background", -1);
52 public static final Layer SIMPLE_DESIGN = new Layer("simple_design", -2);
53 public static final Layer MASKING_DESIGN = new Layer("masking_design", -3);
54 public static final Layer MATERIAL = new Layer("material", -2);
55
56 }