Class NumericValue
java.lang.Object
com.independentsoft.office.spreadsheet.pivotTables.ItemValue
com.independentsoft.office.spreadsheet.pivotTables.NumericValue
The Class NumericValue.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new numeric value.NumericValue(double value)Instantiates a new numeric value. -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the background color.Gets the caption.intgetCount()Gets the count.Gets the foreground color.intGets the format index.intgetIndex()Gets the index.doublegetValue()Gets the value.booleanChecks for calculated value.booleanisBold()Checks if is bold.booleanisItalic()Checks if is italic.booleanChecks if is strikethrough.booleanChecks if is underline.booleanChecks if is unused item.voidsetBackgroundColor(String backgroundColor)Sets the background color.voidsetBold(boolean bold)Sets the bold.voidsetCalculatedValue(boolean hasCalculatedValue)Sets the calculated value.voidsetCaption(String caption)Sets the caption.voidsetCount(int count)Sets the count.voidsetForegroundColor(String foregroundColor)Sets the foreground color.voidsetFormatIndex(int formatIndex)Sets the format index.voidsetIndex(int index)Sets the index.voidsetItalic(boolean italic)Sets the italic.voidsetStrikethrough(boolean strikethrough)Sets the strikethrough.voidsetUnderline(boolean underline)Sets the underline.voidsetUnusedItem(boolean isUnusedItem)Sets the unused item.voidsetValue(double value)Sets the value.toString()
-
Constructor Details
-
NumericValue
public NumericValue()Instantiates a new numeric value. -
NumericValue
public NumericValue(double value)Instantiates a new numeric value.- Parameters:
value- the value
-
-
Method Details
-
clone
-
toString
-
isBold
public boolean isBold()Checks if is bold.- Returns:
- true, if is bold
-
setBold
public void setBold(boolean bold)Sets the bold.- Parameters:
bold- the new bold
-
getBackgroundColor
Gets the background color.- Returns:
- the background color
-
setBackgroundColor
Sets the background color.- Parameters:
backgroundColor- the new background color
-
getCaption
Gets the caption.- Returns:
- the caption
-
setCaption
Sets the caption.- Parameters:
caption- the new caption
-
getCount
public int getCount()Gets the count.- Returns:
- the count
-
setCount
public void setCount(int count)Sets the count.- Parameters:
count- the new count
-
hasCalculatedValue
public boolean hasCalculatedValue()Checks for calculated value.- Returns:
- true, if successful
-
setCalculatedValue
public void setCalculatedValue(boolean hasCalculatedValue)Sets the calculated value.- Parameters:
hasCalculatedValue- the new calculated value
-
getForegroundColor
Gets the foreground color.- Returns:
- the foreground color
-
setForegroundColor
Sets the foreground color.- Parameters:
foregroundColor- the new foreground color
-
isItalic
public boolean isItalic()Checks if is italic.- Returns:
- true, if is italic
-
setItalic
public void setItalic(boolean italic)Sets the italic.- Parameters:
italic- the new italic
-
getFormatIndex
public int getFormatIndex()Gets the format index.- Returns:
- the format index
-
setFormatIndex
public void setFormatIndex(int formatIndex)Sets the format index.- Parameters:
formatIndex- the new format index
-
isStrikethrough
public boolean isStrikethrough()Checks if is strikethrough.- Returns:
- true, if is strikethrough
-
setStrikethrough
public void setStrikethrough(boolean strikethrough)Sets the strikethrough.- Parameters:
strikethrough- the new strikethrough
-
isUnusedItem
public boolean isUnusedItem()Checks if is unused item.- Returns:
- true, if is unused item
-
setUnusedItem
public void setUnusedItem(boolean isUnusedItem)Sets the unused item.- Parameters:
isUnusedItem- the new unused item
-
isUnderline
public boolean isUnderline()Checks if is underline.- Returns:
- true, if is underline
-
setUnderline
public void setUnderline(boolean underline)Sets the underline.- Parameters:
underline- the new underline
-
getIndex
public int getIndex()Gets the index.- Returns:
- the index
-
setIndex
public void setIndex(int index)Sets the index.- Parameters:
index- the new index
-
getValue
public double getValue()Gets the value.- Returns:
- the value
-
setValue
public void setValue(double value)Sets the value.- Parameters:
value- the new value
-