public final class DataBarStyle extends Object
Modifier and Type | Method and Description |
---|---|
SpreadsheetColor |
getAxisColor()
Gets the data bar axis color.
|
DataBarAxisPosition |
getAxisPosition()
Gets the data bar axis position.
|
SpreadsheetColor |
getBorderColor()
Gets the data bar border color.
|
DataBarDirection |
getDirection()
Gets the data bar direction.
|
SpreadsheetColor |
getFillColor()
Gets the data bar fill color.
|
SpreadsheetColor |
getNegativeBorderColor()
Gets the data bar border color for negative values.
|
SpreadsheetColor |
getNegativeFillColor()
Gets the data bar fill color for negative values.
|
boolean |
isGradientFill()
Gets a value indicating whether the data bar
fill color is gradient or solid. |
void |
setAxisColor(SpreadsheetColor axisColor)
Sets the data bar axis color.
|
void |
setAxisPosition(DataBarAxisPosition value)
Sets the data bar axis position.
|
void |
setBorderColor(SpreadsheetColor borderColor)
Sets the data bar border color.
|
void |
setDirection(DataBarDirection value)
Sets the data bar direction.
|
void |
setFillColor(SpreadsheetColor fillColor)
Sets the data bar fill color.
|
void |
setGradientFill(boolean gradientFill)
Sets a value indicating whether the data bar
fill color is gradient or solid. |
void |
setNegativeBorderColor(SpreadsheetColor negativeBorderColor)
Sets the data bar border color for negative values.
|
void |
setNegativeFillColor(SpreadsheetColor negativeFillColor)
Sets the data bar fill color for negative values.
|
String |
toString()
Returns a
String that represents this DataBarStyle instance. |
public SpreadsheetColor getAxisColor()
public DataBarAxisPosition getAxisPosition()
public SpreadsheetColor getBorderColor()
Gets the data bar border color.
If border color SpreadsheetColor.isEmpty()
, then data bar won't have any border.
public DataBarDirection getDirection()
public SpreadsheetColor getFillColor()
public SpreadsheetColor getNegativeBorderColor()
Gets the data bar border color for negative values.
If negative data bar border color SpreadsheetColor.isEmpty()
, then data bar border color for negative values is same as for positive values.
public SpreadsheetColor getNegativeFillColor()
Gets the data bar fill color for negative values.
If negative data bar fill color SpreadsheetColor.isEmpty()
, then data bar fill color for negative values is same as for positive values.
public boolean isGradientFill()
Gets a value indicating whether the data bar fill color
is gradient or solid.
Default value is false
(data bar fill color
is solid).
true
if the data bar fill color
is gradient; otherwise, false
.public void setAxisColor(SpreadsheetColor axisColor)
axisColor
- The data bar axis color.public void setAxisPosition(DataBarAxisPosition value)
value
- The data bar axis position.public void setBorderColor(SpreadsheetColor borderColor)
Sets the data bar border color.
If border color SpreadsheetColor.isEmpty()
, then data bar won't have any border.
borderColor
- The data bar border color.public void setDirection(DataBarDirection value)
value
- The data bar direction.public void setFillColor(SpreadsheetColor fillColor)
fillColor
- The data bar fill color.public void setGradientFill(boolean gradientFill)
Sets a value indicating whether the data bar fill color
is gradient or solid.
Default value is false
(data bar fill color
is solid).
gradientFill
- true
if the data bar fill color
is gradient; otherwise, false
.public void setNegativeBorderColor(SpreadsheetColor negativeBorderColor)
Sets the data bar border color for negative values.
If negative data bar border color SpreadsheetColor.isEmpty()
, then data bar border color for negative values is same as for positive values.
negativeBorderColor
- The data bar border color for negative values.public void setNegativeFillColor(SpreadsheetColor negativeFillColor)
Sets the data bar fill color for negative values.
If negative data bar fill color SpreadsheetColor.isEmpty()
, then data bar fill color for negative values is same as for positive values.
negativeFillColor
- The data bar fill color for negative values.public String toString()
String
that represents this DataBarStyle
instance.
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).
toString
in class Object
String
that represents this DataBarStyle
instance.© GemBox d.o.o. — All rights reserved.