Browse Source

Merge pull request #257 in BA/design from ~XIAOHU/design:dev to dev

* commit 'd4c9d71562ab60012e70bce49f0d00b54d91d497':
  新图标矩形图条件属性可设置圆角
master
superman 8 years ago
parent
commit
57f05f4469
  1. 6
      designer_chart/src/com/fr/design/chart/series/SeriesCondition/LabelBorderAttrPane.java
  2. 2
      designer_chart/src/com/fr/design/chart/series/SeriesCondition/LabelBorderPane.java

6
designer_chart/src/com/fr/design/chart/series/SeriesCondition/LabelBorderAttrPane.java

@ -24,7 +24,7 @@ public abstract class LabelBorderAttrPane extends ConditionAttrSingleConditionPa
public LabelBorderAttrPane(ConditionAttributesPane conditionAttributesPane, boolean isRemove, String label) { public LabelBorderAttrPane(ConditionAttributesPane conditionAttributesPane, boolean isRemove, String label) {
super(conditionAttributesPane, isRemove); super(conditionAttributesPane, isRemove);
nameLabel = new UILabel(label); nameLabel = new UILabel(label);
linePane = new BorderAttriPane(); linePane = initBorderAttrPane();
if (isRemove) { if (isRemove) {
this.add(nameLabel); this.add(nameLabel);
@ -33,6 +33,10 @@ public abstract class LabelBorderAttrPane extends ConditionAttrSingleConditionPa
this.labelName = label; this.labelName = label;
} }
protected BorderAttriPane initBorderAttrPane(){
return new BorderAttriPane();
}
@Override @Override
public String nameForPopupMenuItem() { public String nameForPopupMenuItem() {
return labelName; return labelName;

2
designer_chart/src/com/fr/design/chart/series/SeriesCondition/LabelBorderPane.java

@ -12,7 +12,7 @@ import com.fr.general.Inter;
*/ */
public class LabelBorderPane extends LabelBorderAttrPane { public class LabelBorderPane extends LabelBorderAttrPane {
private AttrBorder attrBorder = new AttrBorder(); protected AttrBorder attrBorder = new AttrBorder();
public LabelBorderPane(ConditionAttributesPane conditionAttributesPane) { public LabelBorderPane(ConditionAttributesPane conditionAttributesPane) {
super(conditionAttributesPane, true, Inter.getLocText(new String[]{"Border", "Format"})); super(conditionAttributesPane, true, Inter.getLocText(new String[]{"Border", "Format"}));

Loading…
Cancel
Save