Debian Codegraph @

src/org/stathissideris/ascii2image/graphics/CustomShapeDefinition.java

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 /*
2 * DiTAA - Diagrams Through Ascii Art
3 *
4 * Copyright (C) 2004 Efstathios Sideris
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 *
20 */
21 package org.stathissideris.ascii2image.graphics;
22
23 public class CustomShapeDefinition {
24 private String tag;
25 private boolean stretch = false;
26 private boolean dropShadow = true;
27 private boolean hasBorder = false;
28 private String filename;
29 private String comment;
30
31 public boolean dropsShadow() {
32 return dropShadow;
33 }
34 public void setDropsShadow(boolean dropShadow) {
35 this.dropShadow = dropShadow;
36 }
37 public String getFilename() {
38 return filename;
39 }
40 public void setFilename(String filename) {
41 this.filename = filename;
42 }
43 public boolean stretches() {
44 return stretch;
45 }
46 public void setStretches(boolean stretch) {
47 this.stretch = stretch;
48 }
49 public boolean hasBorder() {
50 return hasBorder;
51 }
52 public void setHasBorder(boolean hasBorder) {
53 this.hasBorder = hasBorder;
54 }
55 public String getTag() {
56 return tag;
57 }
58 public void setTag(String tag) {
59 this.tag = tag;
60 }
61
62 public String getComment() {
63 return comment;
64 }
65 public void setComment(String comment) {
66 this.comment = comment;
67 }
68
69 public String toString(){
70 return
71 "Custom shape: \""+getTag()+"\":\n"
72 +"\tfile: "+getFilename()+"\n"
73 +"\tstretches: "+stretches()+"\n"
74 +"\thas border: "+hasBorder()+"\n"
75 +"\tdrops shadow: "+dropsShadow()+"\n"
76 +"\tcomment: "+getComment()+"\n"
77 ;
78 }
79
80 }