Package org.zkoss.chart.plotOptions
Class OrganizationPlotOptions
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.plotOptions.SeriesPlotOptions
-
- org.zkoss.chart.plotOptions.SankeyPlotOptions
-
- org.zkoss.chart.plotOptions.OrganizationPlotOptions
-
- All Implemented Interfaces:
Serializable
,OptionDataListener
,org.zkoss.json.JSONAware
public class OrganizationPlotOptions extends SankeyPlotOptions
An option for organization plot.All the options in this class support
DynamicalAttribute
.- Since:
- 7.2.1.0
- Author:
- rudyhuang
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description OrganizationPlotOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
getBorderColor()
Returns the color of the border surrounding each slice.Number
getBorderWidth()
Returns the width of the border surrounding each column or bar.OrganizationDataLabels
getDataLabels()
Returns the first or single option of data labels.Number
getHangingIndent()
Returns the indentation in pixels of hanging nodes, nodes which parent has layout set to hanging.String
getHangingIndentTranslation()
Defines the indentation of a hanging layout parent's children.String
getHangingSide()
Returns whether links connecting hanging nodes should be drawn on the left or right side.List<Level>
getLevels()
Returns options on specific levels.Color
getLinkColor()
Returns the color of the links between nodes.Number
getLinkLineWidth()
Returns the line width of the links connecting nodes, in pixels.Number
getLinkRadius()
Returns radius for the rounded corners of the links between nodes.Number
getMinNodeLength()
In a horizontal chart, the minimum width of the hanging nodes only, in pixels.Number
getNodeWidth()
In a horizontal chart, returns the width of the nodes in pixels.protected DataLabels
newDataLabels()
Internal method for subclasses to provide specific type of data labels.void
setBorderColor(String borderColor)
Sets the color of the border surrounding each slice.void
setBorderColor(Color borderColor)
Sets the color of the border surrounding each slice.void
setBorderWidth(Number borderWidth)
Sets the width of the border surrounding each column or bar.void
setHangingIndent(Number hangingIndent)
Sets the indentation in pixels of hanging nodes, nodes which parent has layout set to hanging.void
setHangingIndentTranslation(String hangingIndentTranslation)
Defines the indentation of a hanging layout parent's children.void
setHangingSide(String hangingSide)
Sets whether links connecting hanging nodes should be drawn on the left or right side.void
setLevels(List<Level> levels)
Sets options on specific levels.void
setLevels(Level... levels)
Set options on specific levels.void
setLinkColor(String linkColor)
Sets the color of the links between nodes.void
setLinkColor(Color linkColor)
Sets the color of the links between nodes.void
setLinkLineWidth(Number linkLineWidth)
Sets the line width of the links connecting nodes, in pixels.void
setLinkRadius(Number linkRadius)
Sets radius for the rounded corners of the links between nodes.void
setMinNodeLength(Number minNodeLength)
In a horizontal chart, the minimum width of the hanging nodes only, in pixels.-
Methods inherited from class org.zkoss.chart.plotOptions.SankeyPlotOptions
getColors, getCurveFactor, getLinkColorMode, getLinkOpacity, getMinLinkWidth, getNodeAlignment, getNodeDistance, getNodePadding, isCenterInCategory, setCenterInCategory, setColors, setColors, setColors, setCurveFactor, setLinkColorMode, setLinkOpacity, setMinLinkWidth, setNodeAlignment, setNodeDistance, setNodePadding, setNodeWidth, setNodeWidth
-
Methods inherited from class org.zkoss.chart.plotOptions.SeriesPlotOptions
addDataLabels, getAccessibility, getAnimation, getAnimationLimit, getBoostBlending, getBoostThreshold, getBorderRadius, getClassName, getColor, getColorAxis, getColorIndex, getColorKey, getConnectorWidth, getCropThreshold, getCursor, getCustom, getDashStyle, getDataLabelsList, getDataSorting, getDepth, getDescription, getDragDrop, getFindNearestPointBy, getGroupPadding, getId, getIndex, getKeys, getLabel, getLegendSymbol, getLinecap, getLineWidth, getLinkedTo, getMarker, getName, getNeckHeight, getNeckWidth, getNegativeColor, getOnPoint, getOpacity, getPointDescriptionFormatter, getPointInterval, getPointIntervalUnit, getPointPlacement, getPointStart, getStacking, getStates, getStep, getThreshold, getTooltip, getTurboThreshold, getZoneAxis, getZones, isAllowPointSelect, isAnimation, isClip, isColorByPoint, isConnectEnds, isConnectNulls, isCrisp, isDataAsColumns, isEnableMouseTracking, isGetExtremesFromAll, isIncludeInDataExport, isRelativeXValue, isSelected, isShadow, isShowCheckbox, isShowInLegend, isSkipKeyboardNavigation, isSoftThreshold, isStacking, isStickyTracking, isVisible, setAccessibility, setAllowPointSelect, setAnimation, setAnimation, setAnimationLimit, setBoostBlending, setBoostThreshold, setBorderRadius, setBorderRadius, setCenter, setCenter, setClassName, setClip, setColor, setColor, setColor, setColor, setColorAxis, setColorAxis, setColorAxis, setColorByPoint, setColorIndex, setColorKey, setConnectEnds, setConnectNulls, setConnectorWidth, setCrisp, setCropThreshold, setCursor, setCustom, setDashStyle, setDataAsColumns, setDataLabels, setDataLabels, setDataSorting, setDepth, setDescription, setDragDrop, setEnableMouseTracking, setFindNearestPointBy, setGetExtremesFromAll, setGroupPadding, setId, setIncludeInDataExport, setIndex, setKeys, setLabel, setLegendSymbol, setLinecap, setLineWidth, setLinkedTo, setMarker, setName, setNeckHeight, setNeckWidth, setNegativeColor, setNegativeColor, setNegativeColor, setNegativeColor, setOnPoint, setOpacity, setPointDescriptionFormatter, setPointInterval, setPointIntervalUnit, setPointPlacement, setPointPlacement, setPointStart, setRelativeXValue, setSelected, setShadow, setShowCheckbox, setShowInLegend, setSkipKeyboardNavigation, setSoftThreshold, setStacking, setStacking, setStates, setStep, setStickyTracking, setThreshold, setTooltip, setTurboThreshold, setVisible, setWidth, setZoneAxis, setZones, setZones
-
Methods inherited from class org.zkoss.chart.Optionable
addExtraAttr, addOptionDataListener, clearOptonDataListener, clone, containsKey, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getAttr, getAttr, getClientState, getExtraAttr, merge, onChange, removeExtraAttr, removeKey, removeOptionDataListener, setAttr, setAttr, setAttr, setAttr, toJSONString, toString
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.zkoss.chart.OptionDataListener
onChange
-
-
-
-
Method Detail
-
getBorderColor
public Color getBorderColor()
Returns the color of the border surrounding each slice.Default: #666666
- Overrides:
getBorderColor
in classSankeyPlotOptions
- Since:
- 10.2.1.0
-
setBorderColor
public void setBorderColor(Color borderColor)
Sets the color of the border surrounding each slice. Default: #666666- Overrides:
setBorderColor
in classSankeyPlotOptions
- Since:
- 10.2.1.0
-
setBorderColor
public void setBorderColor(String borderColor)
Sets the color of the border surrounding each slice. Default: #666666- Overrides:
setBorderColor
in classSankeyPlotOptions
- Since:
- 10.2.1.0
-
getBorderWidth
public Number getBorderWidth()
Returns the width of the border surrounding each column or bar.Default:
1
when the columns are so dense that a border would cover the next column.- Overrides:
getBorderWidth
in classSeriesPlotOptions
- Since:
- 10.2.1.0
-
setBorderWidth
public void setBorderWidth(Number borderWidth)
Sets the width of the border surrounding each column or bar.Default:
1
when the columns are so dense that a border would cover the next column.- Overrides:
setBorderWidth
in classSeriesPlotOptions
- Since:
- 10.2.1.0
-
newDataLabels
protected DataLabels newDataLabels()
Description copied from class:SeriesPlotOptions
Internal method for subclasses to provide specific type of data labels.- Overrides:
newDataLabels
in classSankeyPlotOptions
-
getDataLabels
public OrganizationDataLabels getDataLabels()
Description copied from class:SeriesPlotOptions
Returns the first or single option of data labels.- Overrides:
getDataLabels
in classSankeyPlotOptions
-
getHangingIndent
public Number getHangingIndent()
Returns the indentation in pixels of hanging nodes, nodes which parent has layout set to hanging.Default: 20
-
setHangingIndent
public void setHangingIndent(Number hangingIndent)
Sets the indentation in pixels of hanging nodes, nodes which parent has layout set to hanging.
-
getHangingIndentTranslation
public String getHangingIndentTranslation()
Defines the indentation of a hanging layout parent's children. (Requires organization)Possible options:
-
"inherit"
(default): Only the first child adds the indentation, children of a child with indentation inherit the indentation. -
"cumulative"
: All children of a child with indentation add its own indent. The option may cause overlapping of nodes. Then use shrink option: -
"shrink"
: Nodes shrink by the hangingIndent value until they reach the minNodeLength.
Defaults to
"inherit"
.- Since:
- 10.2.1.0
-
-
setHangingIndentTranslation
public void setHangingIndentTranslation(String hangingIndentTranslation)
Defines the indentation of a hanging layout parent's children. (Requires organization)Possible options:
-
"inherit"
(default): Only the first child adds the indentation, children of a child with indentation inherit the indentation. -
"cumulative"
: All children of a child with indentation add its own indent. The option may cause overlapping of nodes. Then use shrink option: -
"shrink"
: Nodes shrink by the hangingIndent value until they reach the minNodeLength.
Defaults to
"inherit"
.- Since:
- 10.2.1.0
-
-
getHangingSide
public String getHangingSide()
Returns whether links connecting hanging nodes should be drawn on the left or right side.Default: "left"
- Since:
- 11.4.7.0
-
setHangingSide
public void setHangingSide(String hangingSide)
Sets whether links connecting hanging nodes should be drawn on the left or right side. Useful for RTL layouts. Note: Only effects inverted charts (vertical layout).Default: "left"
- Since:
- 11.4.7.0
-
getLevels
public List<Level> getLevels()
Returns options on specific levels. Takes precedence over series options, but not point options.Default: null
- Overrides:
getLevels
in classSankeyPlotOptions
-
setLevels
public void setLevels(List<Level> levels)
Sets options on specific levels. Takes precedence over series options, but not point options.- Overrides:
setLevels
in classSankeyPlotOptions
- See Also:
SankeyPlotOptions.getLevels()
-
setLevels
public void setLevels(Level... levels)
Set options on specific levels. Takes precedence over series options, but not node and link options.- Overrides:
setLevels
in classSankeyPlotOptions
- Since:
- 10.2.1.0
-
getLinkColor
public Color getLinkColor()
Returns the color of the links between nodes.Default: #666666
-
setLinkColor
public void setLinkColor(Color linkColor)
Sets the color of the links between nodes.
-
setLinkColor
public void setLinkColor(String linkColor)
Sets the color of the links between nodes.
-
getLinkLineWidth
public Number getLinkLineWidth()
Returns the line width of the links connecting nodes, in pixels.Default: 1
-
setLinkLineWidth
public void setLinkLineWidth(Number linkLineWidth)
Sets the line width of the links connecting nodes, in pixels.
-
getLinkRadius
public Number getLinkRadius()
Returns radius for the rounded corners of the links between nodes.Default: 10
-
setLinkRadius
public void setLinkRadius(Number linkRadius)
Sets radius for the rounded corners of the links between nodes.
-
getNodeWidth
public Number getNodeWidth()
In a horizontal chart, returns the width of the nodes in pixels. Node that most organization charts are vertical, so the name of this option is counterintuitive.Default: 50
- Overrides:
getNodeWidth
in classSankeyPlotOptions
-
getMinNodeLength
public Number getMinNodeLength()
In a horizontal chart, the minimum width of the hanging nodes only, in pixels. In a vertical chart, the minimum height of the hanging nodes only, in pixels too.Note: Used only when
getHangingIndentTranslation()
is set to {@code "shrink").Defaults to {@code 10}.
- Since:
- 10.2.1.0
-
setMinNodeLength
public void setMinNodeLength(Number minNodeLength)
In a horizontal chart, the minimum width of the hanging nodes only, in pixels. In a vertical chart, the minimum height of the hanging nodes only, in pixels too.Note: Used only when
getHangingIndentTranslation()
is set to {@code "shrink").Defaults to {@code 10}.
- Since:
- 10.2.1.0
-
-