|
|
@ -35,6 +35,7 @@ public class ChartTextAttrPane extends BasicPane { |
|
|
|
private UIToggleButton italic; |
|
|
|
private UIToggleButton italic; |
|
|
|
private UIColorButton fontColor; |
|
|
|
private UIColorButton fontColor; |
|
|
|
public static Integer[] FONT_SIZES = new Integer[FONT_END - FONT_START + 1]; |
|
|
|
public static Integer[] FONT_SIZES = new Integer[FONT_END - FONT_START + 1]; |
|
|
|
|
|
|
|
|
|
|
|
static { |
|
|
|
static { |
|
|
|
for (int i = FONT_START; i <= FONT_END; i++) { |
|
|
|
for (int i = FONT_START; i <= FONT_END; i++) { |
|
|
|
FONT_SIZES[i - FONT_START] = i; |
|
|
|
FONT_SIZES[i - FONT_START] = i; |
|
|
@ -88,6 +89,10 @@ public class ChartTextAttrPane extends BasicPane { |
|
|
|
populate(frFont); |
|
|
|
populate(frFont); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void populate(TextAttr textAttr, boolean autoFont) { |
|
|
|
|
|
|
|
populate(textAttr); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void update(TextAttr textAttr) { |
|
|
|
public void update(TextAttr textAttr) { |
|
|
|
if (textAttr == null) { |
|
|
|
if (textAttr == null) { |
|
|
|
textAttr = new TextAttr(); |
|
|
|
textAttr = new TextAttr(); |
|
|
|