zpc 8 years ago
parent
commit
6f92950c99
  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