Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
Fixes and add some functional
Browse files Browse the repository at this point in the history
  • Loading branch information
iSergio authored and basduineveld committed Jul 19, 2016
1 parent aca1486 commit 7c6a061
Showing 1 changed file with 59 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,14 @@ public void setInputTransparentColor(final String val) {
addInputTransparentColor(val);
}

public Boolean getInputTransparentColor() {
public String getInputTransparentColor() {
Element el = getParameter(inputTransparentColorFilter);
if (el != null) {
List<Element> values = el.getChildren();
for (Element elm : values) {
String value = elm.getValue();
if (!value.equalsIgnoreCase(inputTransparentColor)) {
return Boolean.valueOf(value);
return value;
}
}
}
Expand Down Expand Up @@ -265,16 +265,16 @@ protected void addOutputTransparentColor(final String val) {

public void setOutputTransparentColor(final String val) {
removeParameter(outputTransparentColorFilter);
addInputTransparentColor(val);
addOutputTransparentColor(val);
}
public Boolean getOutputTransparentColor() {
public String getOutputTransparentColor() {
Element el = getParameter(outputTransparentColorFilter);
if (el != null) {
List<Element> values = el.getChildren();
for (Element elm : values) {
String value = elm.getValue();
if (!value.equalsIgnoreCase(outputTransparentColor)) {
return Boolean.valueOf(value);
return value;
}
}
}
Expand Down Expand Up @@ -409,7 +409,7 @@ protected void addSORTING(final String val) {

public void setSORTING(final String val) {
removeParameter(SORTING_FILTER);
addBackgroundValues(val);
addSORTING(val);
}

//
Expand All @@ -432,6 +432,58 @@ protected void addMergeBehavior(final String val) {

public void setMergeBehavior(final String val) {
removeParameter(MERGEBEHAVIOR_FILTER);
addBackgroundValues(val);
addMergeBehavior(val);
}

public final static String ACCURATERESOLUTIONCOMPUTATION = "Accurate resolution computation";
protected void addAccurateResolutionComputation(final boolean val) {
final List<Element> list = new ArrayList<Element>(2);
list.add(new Element(STRING).setText(ACCURATERESOLUTIONCOMPUTATION));
list.add(new Element(STRING).setText((val) ? "true" : "false"));
parameters.add(null, list);
}
private final static Filter ACCURATERESOLUTIONCOMPUTATION_FILTER = new parametersFilter(ACCURATERESOLUTIONCOMPUTATION);
public void setAccurateResolutionComputation(final boolean val) {
removeParameter(ACCURATERESOLUTIONCOMPUTATION_FILTER);
addAccurateResolutionComputation(val);
}
public Boolean getAccurateResolutionComputation() {
Element el = getParameter(ACCURATERESOLUTIONCOMPUTATION_FILTER);
if (el != null) {
List<Element> values = el.getChildren();
for (Element elm : values) {
String value = elm.getValue();
if (!value.equalsIgnoreCase(ACCURATERESOLUTIONCOMPUTATION)) {
return Boolean.valueOf(value);
}
}
}
return null;
}

public final static String FOOTPRONTBEHAVIOR = "FootprintBehavior";
protected void addFootprintBehavior(final String val) {
final List<Element> list = new ArrayList<Element>(2);
list.add(new Element(STRING).setText(FOOTPRONTBEHAVIOR));
list.add(new Element(STRING).setText(val));
parameters.add(null, list);
}
private final static Filter FOOTPRONTBEHAVIOR_FILTER = new parametersFilter(FOOTPRONTBEHAVIOR);
public void setFootprintBehavior(final String val) {
removeParameter(FOOTPRONTBEHAVIOR_FILTER);
addFootprintBehavior(val);
}
public String getFootprintBehavior() {
Element el = getParameter(FOOTPRONTBEHAVIOR_FILTER);
if (el != null) {
List<Element> values = el.getChildren();
for (Element elm : values) {
String value = elm.getValue();
if (!value.equalsIgnoreCase(FOOTPRONTBEHAVIOR)) {
return value;
}
}
}
return null;
}
}

0 comments on commit 7c6a061

Please sign in to comment.