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.
48 lines
1.1 KiB
48 lines
1.1 KiB
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 SplitLine implements OptionProvider { |
|
private boolean show = true; |
|
private LineStyle lineStyle; |
|
|
|
public SplitLine() { |
|
} |
|
|
|
public SplitLine(boolean show) { |
|
this.show = show; |
|
} |
|
|
|
public SplitLine(boolean show, LineStyle lineStyle) { |
|
this.show = show; |
|
this.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 splitLine = JSONKit.create(); |
|
splitLine.put("show",this.isShow()); |
|
if(this.getLineStyle() != null){ |
|
splitLine.put("lineStyle",this.getLineStyle().getJSONObject()); |
|
} |
|
return splitLine; |
|
} |
|
}
|
|
|