use of net.rptools.tokentool.model.ImageView_Preferences in project tokentool by RPTools.
the class TokenTool_Controller method setPortraitFrom_Preferences.
public void setPortraitFrom_Preferences(String preferencesJson) {
if (preferencesJson != null) {
ImageView_Preferences imageView_Preferences = new Gson().fromJson(preferencesJson, new TypeToken<ImageView_Preferences>() {
}.getType());
portraitImageView = imageView_Preferences.toImageView(portraitImageView);
} else {
log.debug("No Preferences currently saved.");
}
}
use of net.rptools.tokentool.model.ImageView_Preferences in project tokentool by RPTools.
the class TokenTool_Controller method setBackgroundFrom_Preferences.
public void setBackgroundFrom_Preferences(String preferencesJson) {
if (preferencesJson != null) {
ImageView_Preferences imageView_Preferences = new Gson().fromJson(preferencesJson, new TypeToken<ImageView_Preferences>() {
}.getType());
backgroundImageView = imageView_Preferences.toImageView(backgroundImageView);
setBackgroundColor(imageView_Preferences.getBackgroundColor());
} else {
backgroundImageView.setImage(null);
setBackgroundColor(Color.TRANSPARENT);
}
}
Aggregations