默认
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

36 lines
891 B

package com.fr.plugin.sqy.surface.option;
import com.fanruan.api.json.JSONKit;
import com.fr.json.JSONObject;
import com.fr.plugin.sqy.surface.option.modle.OptionProvider;
public class Wireframe implements OptionProvider {
private boolean show;
private LineStyle lineStyle;
public boolean isShow() {
return show;
}
public void setShow(boolean show) {
this.show = show;
}
public LineStyle getLineStyle() {
return lineStyle;
}
public void setLineStyle(LineStyle lineStyle) {
this.lineStyle = lineStyle;
}
@Override
public JSONObject getJSONObject() {
JSONObject wireframe = JSONKit.create();
wireframe.put("show",this.isShow());
if(this.getLineStyle() != null){
wireframe.put("lineStyle",this.getLineStyle().getJSONObject());
}
return wireframe;
}
}