Summary: | RichTextRun.setBulletColor doesn't work | ||
---|---|---|---|
Product: | POI | Reporter: | 西门吹水 <zhangsilly> |
Component: | HSLF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.7-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Bug Depends on: | 45124 | ||
Bug Blocks: | |||
Attachments: | Set BulletColor to Color.RED |
this was fixed as part of #45124 |
Created attachment 26642 [details] Set BulletColor to Color.RED SlideShow ppt = new SlideShow(); Slide slide = ppt.createSlide(); TextBox shape = new TextBox(); RichTextRun rt = shape.getTextRun().getRichTextRuns()[0]; shape.setText( "January\r" + "February\r" + "March\r" + "April"); rt.setFontSize(42); rt.setBullet(true); //rt.setBulletColor(Color.BLUE); rt.setBulletOffset(0); //bullet offset rt.setTextOffset(50); //text offset (should be greater than bullet offset) rt.setBulletChar('\u263A'); //bullet character slide.addShape(shape); shape.setAnchor(new java.awt.Rectangle(50, 50, 500, 300)); //position of the text box in the slide slide.addShape(shape); FileOutputStream out = new FileOutputStream("bullets.ppt"); ppt.write(out); out.close(); If uncomment the //rt.setBulletColor(Color.BLUE); line, the ppt will show no Bullet. If rt.setBulletColor(Color.RED); Set the Color to RED, the Bullet Char shows, but it's wrong, and color is still black. The attachment red.ppt is generate by set BulletColor red.