public class Border extends Object implements OOXMLElement
| Constructor and Description |
|---|
Border() |
Border(Border b) |
Border(HashMap<String,String> attrs,
HashMap<String,io.starter.formats.OOXML.BorderElement> borderElements) |
Border(WorkBookHandle bk,
int[] styles,
int[] colors)
set borders
|
| Modifier and Type | Method and Description |
|---|---|
OOXMLElement |
cloneElement() |
int[] |
getBorderColorInts()
returns an array representing the border colors as rgb string
top, left, bottom, right, diag |
String[] |
getBorderColors()
returns an array representing the border colors as rgb string
top, left, bottom, right, diag |
int[] |
getBorderSizes()
returns an array representing the border sizes
top, left, bottom, right, diag |
int[] |
getBorderStyles()
returns an array representing the border styles
translated from OOXML String value to 2003-int value
top, left, bottom, right, diag |
String |
getOOXML() |
static String |
getOOXML(int[] styles,
int[] colors)
return the OOMXL to define a border based on the below specifications:
|
static String |
getOOXML(Xf xf)
return an OOXML representation of this border based on this FormatHandle object
|
static OOXMLElement |
parseOOXML(org.xmlpull.v1.XmlPullParser xpp,
WorkBookHandle bk) |
String |
toString() |
public Border()
public Border(HashMap<String,String> attrs, HashMap<String,io.starter.formats.OOXML.BorderElement> borderElements)
styles - int array {top, left, top, bottom, right, [diagonal]}colors - int array {top, left, top, bottom, right, [diagonal]}public Border(Border b)
public Border(WorkBookHandle bk, int[] styles, int[] colors)
bk - styles - t, l, b, rcolors - public static OOXMLElement parseOOXML(org.xmlpull.v1.XmlPullParser xpp, WorkBookHandle bk)
public String getOOXML()
getOOXML in interface OOXMLElementOOXMLElement.getOOXML()public int[] getBorderSizes()
public int[] getBorderStyles()
public String[] getBorderColors()
public int[] getBorderColorInts()
public OOXMLElement cloneElement()
cloneElement in interface OOXMLElementOOXMLElement.cloneElement()public static String getOOXML(Xf xf)
public static String getOOXML(int[] styles, int[] colors)
styles - int array {top, left, top, bottom, right, [diagonal]}colors - int array {top, left, top, bottom, right, [diagonal]}Copyright © 2002–2019 Starter Inc.. All rights reserved.