| •1 |
|
| 2 |
|
| 3 |
|
| •4 |
|
| 5 |
|
| •6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| •11 |
|
| 12 |
|
| 13 |
|
| •14 |
|
| 15 |
|
| •16 |
|
| 17 |
|
| 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 |
} |