Debian Codegraph @

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

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 /**
2 * ditaa - Diagrams Through Ascii Art
3 *
•4 * Copyright (C) 2004-2011 Efstathios Sideris
5 *
•6 * ditaa is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation, either version 3 of
9 * the License, or (at your option) any later version.
10 *
•11 * ditaa 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 Lesser General Public License for more details.
15 *
•16 * You should have received a copy of the GNU Lesser General Public
17 * License along with ditaa. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20 package org.stathissideris.ascii2image.graphics;
21
22 public class CustomShapeDefinition {
23 private String tag;
24 private boolean stretch = false;
25 private boolean dropShadow = true;
26 private boolean hasBorder = false;
27 private String filename;
28 private String comment;
29
30 public boolean dropsShadow() {
31 return dropShadow;
32 }
33 public void setDropsShadow(boolean dropShadow) {
34 this.dropShadow = dropShadow;
35 }
36 public String getFilename() {
37 return filename;
38 }
39 public void setFilename(String filename) {
40 this.filename = filename;
41 }
42 public boolean stretches() {
43 return stretch;
44 }
45 public void setStretches(boolean stretch) {
46 this.stretch = stretch;
47 }
48 public boolean hasBorder() {
49 return hasBorder;
50 }
51 public void setHasBorder(boolean hasBorder) {
52 this.hasBorder = hasBorder;
53 }
54 public String getTag() {
55 return tag;
56 }
57 public void setTag(String tag) {
58 this.tag = tag;
59 }
60
61 public String getComment() {
62 return comment;
63 }
64 public void setComment(String comment) {
65 this.comment = comment;
66 }
67
68 public String toString(){
69 return
70 "Custom shape: \""+getTag()+"\":\n"
71 +"\tfile: "+getFilename()+"\n"
72 +"\tstretches: "+stretches()+"\n"
73 +"\thas border: "+hasBorder()+"\n"
74 +"\tdrops shadow: "+dropsShadow()+"\n"
75 +"\tcomment: "+getComment()+"\n"
76 ;
77 }
78
79 }