public class CategoryAxesSettings extends AbstractChartObject
StockPanel. If there is no default value specified,
default value of CategoryAxis class will be used.
| Constructor and Description |
|---|
CategoryAxesSettings() |
| Modifier and Type | Method and Description |
|---|---|
CategoryAxesSettings |
addDateFormats(DateFormat... dateFormats)
Adds date formats.
|
CategoryAxesSettings |
addGroupToPeriods(java.lang.String... groupToPeriods)
Adds groupToPeriods strings.
|
java.lang.Boolean |
getAlwaysGroup() |
java.lang.Boolean |
getAutoGridCount() |
java.lang.Double |
getAxisAlpha() |
Color |
getAxisColor() |
java.lang.Integer |
getAxisHeight() |
java.lang.Integer |
getAxisThickness() |
java.lang.Boolean |
getBoldLabels() |
java.lang.Boolean |
getBoldPeriodBeginning() |
Color |
getColor() |
java.lang.Integer |
getDashLength() |
java.util.List<DateFormat> |
getDateFormats() |
java.lang.Boolean |
getEqualSpacing() |
java.lang.Double |
getFillAlpha() |
Color |
getFillColor() |
java.lang.Integer |
getFontSize() |
java.lang.Double |
getGridAlpha() |
Color |
getGridColor() |
java.lang.Integer |
getGridCount() |
java.lang.Integer |
getGridThickness() |
java.util.List<java.lang.String> |
getGroupToPeriods() |
java.lang.Boolean |
getInside() |
java.lang.Integer |
getLabelOffset() |
java.lang.Integer |
getLabelRotation() |
java.lang.Boolean |
getLabelsEnabled() |
java.lang.Boolean |
getMarkPeriodChange() |
java.lang.Integer |
getMaxSeries() |
java.lang.Integer |
getMinHorizontalGap() |
java.lang.Double |
getMinorGridAlpha() |
java.lang.Boolean |
getMinorGridEnabled() |
java.lang.String |
getMinPeriod() |
CategoryAxesPosition |
getPosition() |
java.lang.Boolean |
getStartOnAxis() |
java.lang.Integer |
getTickLength() |
java.lang.Boolean |
getTwoLineMode() |
CategoryAxesSettings |
setAlwaysGroup(java.lang.Boolean alwaysGroup)
Set alwaysGroup to true and if groupToPeriods doesn't have minPeriod value included, chart will always group
values to the first period available.
|
CategoryAxesSettings |
setAutoGridCount(java.lang.Boolean autoGridCount)
Set autoGridCount to false if you don't want the number of gridCount are specified automatically,
according to the axis size.
|
@Max(value=1L) @Min(value=0L) CategoryAxesSettings |
setAxisAlpha(java.lang.Double axisAlpha)
Sets axis opacity.
|
CategoryAxesSettings |
setAxisColor(Color axisColor)
Sets axis color.
|
CategoryAxesSettings |
setAxisHeight(java.lang.Integer axisHeight)
Sets height of category axes.
|
CategoryAxesSettings |
setAxisThickness(java.lang.Integer axisThickness)
Sets thickness of the axis.
|
CategoryAxesSettings |
setBoldLabels(java.lang.Boolean boldLabels)
Set to true if axis labels should be bold.
|
CategoryAxesSettings |
setBoldPeriodBeginning(java.lang.Boolean boldPeriodBeginning)
Set boldPeriodBeginning to false if you want chart will not try to highlight the beginning of the periods,
like month, in bold.
|
CategoryAxesSettings |
setColor(Color color)
Sets text color.
|
CategoryAxesSettings |
setDashLength(java.lang.Integer dashLength)
Sets length of a dash.
|
CategoryAxesSettings |
setDateFormats(java.util.List<DateFormat> dateFormats)
Sets list of date formats of different periods.
|
CategoryAxesSettings |
setEqualSpacing(java.lang.Boolean equalSpacing)
Set equalSpacing to true if you want data points to be placed at equal intervals (omitting dates with no data).
|
@Max(value=1L) @Min(value=0L) CategoryAxesSettings |
setFillAlpha(java.lang.Double fillAlpha)
Sets fill opacity.
|
CategoryAxesSettings |
setFillColor(Color fillColor)
Sets fill color.
|
CategoryAxesSettings |
setFontSize(java.lang.Integer fontSize)
Sets text size.
|
@Max(value=1L) @Min(value=0L) CategoryAxesSettings |
setGridAlpha(java.lang.Double gridAlpha)
Sets opacity of grid lines.
|
CategoryAxesSettings |
setGridColor(Color gridColor)
Sets color of grid lines.
|
CategoryAxesSettings |
setGridCount(java.lang.Integer gridCount)
Sets number of grid lines.
|
CategoryAxesSettings |
setGridThickness(java.lang.Integer gridThickness)
Sets thickness of grid lines.
|
CategoryAxesSettings |
setGroupToPeriods(java.util.List<java.lang.String> groupToPeriods)
Sets list of groupToPeriods strings.
|
CategoryAxesSettings |
setInside(java.lang.Boolean inside)
Set inside to true if values should be placed inside of plot area.
|
CategoryAxesSettings |
setLabelOffset(java.lang.Integer labelOffset)
Sets offset of axis labels.
|
CategoryAxesSettings |
setLabelRotation(java.lang.Integer labelRotation)
Sets rotation angle of a label.
|
CategoryAxesSettings |
setLabelsEnabled(java.lang.Boolean labelsEnabled)
Set labelsEnabled to false if you don't wont to display category axis labels and value axis values.
|
CategoryAxesSettings |
setMarkPeriodChange(java.lang.Boolean markPeriodChange)
Set markPeriodChange to false if period shouldn't be marked by a different date format.
|
CategoryAxesSettings |
setMaxSeries(java.lang.Integer maxSeries)
Sets maximum series shown at a time.
|
CategoryAxesSettings |
setMinHorizontalGap(java.lang.Integer minHorizontalGap)
Sets minimum cell width required for one span between grid lines.
|
@Max(value=1L) @Min(value=0L) CategoryAxesSettings |
setMinorGridAlpha(java.lang.Double minorGridAlpha)
Sets opacity of minor grid.
|
CategoryAxesSettings |
setMinorGridEnabled(java.lang.Boolean minorGridEnabled)
Set to true if minor grid should be displayed.
|
CategoryAxesSettings |
setMinPeriod(java.lang.String minPeriod)
Sets the shortest period of your data.
|
CategoryAxesSettings |
setPosition(CategoryAxesPosition position)
Sets position of category axes.
|
CategoryAxesSettings |
setStartOnAxis(java.lang.Boolean startOnAxis)
Set startOnAxis to false if the graph should start on axis.
|
CategoryAxesSettings |
setTickLength(java.lang.Integer tickLength)
Sets tick length.
|
CategoryAxesSettings |
setTwoLineMode(java.lang.Boolean twoLineMode)
Set twoLineMode to true, category axis will display date strings of bot small and big period, in two rows, at
the position where bigger period changes.
|
public java.lang.Boolean getAlwaysGroup()
@StudioProperty(defaultValue="false") public CategoryAxesSettings setAlwaysGroup(java.lang.Boolean alwaysGroup)
alwaysGroup - alwaysGroup optionpublic java.lang.Boolean getAutoGridCount()
@StudioProperty(defaultValue="true") public CategoryAxesSettings setAutoGridCount(java.lang.Boolean autoGridCount)
autoGridCount - autoGridCount optionpublic java.lang.Double getAxisAlpha()
@StudioProperty(defaultValue="0") @Max(value=1L) @Min(value=0L) public @Max(value=1L) @Min(value=0L) CategoryAxesSettings setAxisAlpha(java.lang.Double axisAlpha)
axisAlpha - axis opacitypublic Color getAxisColor()
@StudioProperty(type=OPTIONS) public CategoryAxesSettings setAxisColor(Color axisColor)
axisColor - axis colorpublic java.lang.Integer getAxisHeight()
@StudioProperty(defaultValue="28") public CategoryAxesSettings setAxisHeight(java.lang.Integer axisHeight)
axisHeight - height of category axespublic java.lang.Integer getAxisThickness()
@StudioProperty public CategoryAxesSettings setAxisThickness(java.lang.Integer axisThickness)
axisThickness - thickness of the axispublic java.lang.Boolean getBoldPeriodBeginning()
@StudioProperty(defaultValue="true") public CategoryAxesSettings setBoldPeriodBeginning(java.lang.Boolean boldPeriodBeginning)
boldPeriodBeginning - bold period beginning optionpublic Color getColor()
@StudioProperty(type=OPTIONS) public CategoryAxesSettings setColor(Color color)
color - text colorpublic java.lang.Integer getDashLength()
@StudioProperty public CategoryAxesSettings setDashLength(java.lang.Integer dashLength)
dashLength - length of a dashpublic java.util.List<DateFormat> getDateFormats()
@StudioElementsGroup(caption="Date Formats", xmlElement="dateFormats") public CategoryAxesSettings setDateFormats(java.util.List<DateFormat> dateFormats)
dateFormats - list of date formatspublic CategoryAxesSettings addDateFormats(DateFormat... dateFormats)
dateFormats - date formatspublic java.lang.Boolean getEqualSpacing()
@StudioProperty(defaultValue="false") public CategoryAxesSettings setEqualSpacing(java.lang.Boolean equalSpacing)
equalSpacing - equalSpacing optionpublic java.lang.Double getFillAlpha()
@StudioProperty @Max(value=1L) @Min(value=0L) public @Max(value=1L) @Min(value=0L) CategoryAxesSettings setFillAlpha(java.lang.Double fillAlpha)
fillAlpha - fill opacitypublic Color getFillColor()
@StudioProperty(type=OPTIONS) public CategoryAxesSettings setFillColor(Color fillColor)
fillColor - fill colorpublic java.lang.Integer getFontSize()
@StudioProperty public CategoryAxesSettings setFontSize(java.lang.Integer fontSize)
fontSize - text sizepublic java.lang.Double getGridAlpha()
@StudioProperty @Max(value=1L) @Min(value=0L) public @Max(value=1L) @Min(value=0L) CategoryAxesSettings setGridAlpha(java.lang.Double gridAlpha)
gridAlpha - opacity of grid linespublic Color getGridColor()
@StudioProperty(type=OPTIONS) public CategoryAxesSettings setGridColor(Color gridColor)
gridColor - color of grid linespublic java.lang.Integer getGridCount()
@StudioProperty(defaultValue="10") public CategoryAxesSettings setGridCount(java.lang.Integer gridCount)
gridCount - number of grid linespublic java.lang.Integer getGridThickness()
@StudioProperty public CategoryAxesSettings setGridThickness(java.lang.Integer gridThickness)
gridThickness - grid thicknesspublic java.util.List<java.lang.String> getGroupToPeriods()
@StudioProperty(type=STRING, defaultValue="ss,10ss,30ss,mm,10mm,30mm,hh,DD,WW,MM,YYYYY") public CategoryAxesSettings setGroupToPeriods(java.util.List<java.lang.String> groupToPeriods)
["ss", "10ss", "30ss",
"mm", "10mm", "30mm",
"hh", "DD", "WW",
"MM", "YYYY"]
groupToPeriods - list of groupToPeriods stringspublic CategoryAxesSettings addGroupToPeriods(java.lang.String... groupToPeriods)
groupToPeriods - groupToPeriodspublic java.lang.Boolean getInside()
@StudioProperty(defaultValue="false") public CategoryAxesSettings setInside(java.lang.Boolean inside)
inside - inside optionpublic java.lang.Integer getLabelOffset()
@StudioProperty(defaultValue="0") public CategoryAxesSettings setLabelOffset(java.lang.Integer labelOffset)
labelOffset - offset of axis labelspublic java.lang.Integer getLabelRotation()
@StudioProperty public CategoryAxesSettings setLabelRotation(java.lang.Integer labelRotation)
labelRotation - rotation angle of a labelpublic java.lang.Boolean getLabelsEnabled()
@StudioProperty(defaultValue="true") public CategoryAxesSettings setLabelsEnabled(java.lang.Boolean labelsEnabled)
labelsEnabled - labelsEnabled optionpublic java.lang.Boolean getMarkPeriodChange()
@StudioProperty(defaultValue="true") public CategoryAxesSettings setMarkPeriodChange(java.lang.Boolean markPeriodChange)
markPeriodChange - markPeriodChange optionpublic java.lang.Integer getMaxSeries()
@StudioProperty(defaultValue="150") public CategoryAxesSettings setMaxSeries(java.lang.Integer maxSeries)
maxSeries - maximum series shown at a timepublic java.lang.Integer getMinHorizontalGap()
@StudioProperty(defaultValue="75") public CategoryAxesSettings setMinHorizontalGap(java.lang.Integer minHorizontalGap)
minHorizontalGap - minimum cell widthpublic java.lang.String getMinPeriod()
@StudioProperty(type=OPTIONS, options={"fff","ss","mm","hh","DD","MM","YYYY"}, defaultValue="DD") public CategoryAxesSettings setMinPeriod(java.lang.String minPeriod)
minPeriod - the shortest periodpublic CategoryAxesPosition getPosition()
@StudioProperty(type=ENUMERATION) public CategoryAxesSettings setPosition(CategoryAxesPosition position)
position - position of category axespublic java.lang.Boolean getStartOnAxis()
@StudioProperty(defaultValue="false") public CategoryAxesSettings setStartOnAxis(java.lang.Boolean startOnAxis)
startOnAxis - startOnAxis optionpublic java.lang.Integer getTickLength()
@StudioProperty(defaultValue="0") public CategoryAxesSettings setTickLength(java.lang.Integer tickLength)
tickLength - tick lengthpublic java.lang.Boolean getTwoLineMode()
@StudioProperty(defaultValue="false") public CategoryAxesSettings setTwoLineMode(java.lang.Boolean twoLineMode)
twoLineMode - twoLineMode optionpublic java.lang.Boolean getBoldLabels()
@StudioProperty public CategoryAxesSettings setBoldLabels(java.lang.Boolean boldLabels)
boldLabels - boldLabels optionpublic java.lang.Double getMinorGridAlpha()
@StudioProperty @Max(value=1L) @Min(value=0L) public @Max(value=1L) @Min(value=0L) CategoryAxesSettings setMinorGridAlpha(java.lang.Double minorGridAlpha)
minorGridAlpha - opacity of minor gridpublic java.lang.Boolean getMinorGridEnabled()
@StudioProperty public CategoryAxesSettings setMinorGridEnabled(java.lang.Boolean minorGridEnabled)
minorGridEnabled - minorGridEnabled option