info.bioinfweb.treegraph.document.format
Class PieChartLabelFormats
java.lang.Object
info.bioinfweb.treegraph.document.format.LabelFormats
info.bioinfweb.treegraph.document.format.GraphicalLabelFormats
info.bioinfweb.treegraph.document.format.PieChartLabelFormats
- All Implemented Interfaces:
- ElementFormats, LineFormats, Cloneable
public class PieChartLabelFormats
- extends GraphicalLabelFormats
- implements LineFormats
Stores the formats of pie chart label.
- Since:
- 2.0.43
- Author:
- Ben Stöver
DEFAULT_SHOW_INTERNAL_LINES
public static final boolean DEFAULT_SHOW_INTERNAL_LINES
- See Also:
- Constant Field Values
DEFAULT_SHOW_NULL_LINES
public static final boolean DEFAULT_SHOW_NULL_LINES
- See Also:
- Constant Field Values
pieColors
private List<Color> pieColors
showInternalLines
private boolean showInternalLines
showNullLines
private boolean showNullLines
PieChartLabelFormats
public PieChartLabelFormats(Label owner,
boolean above,
int line,
int linePosition)
PieChartLabelFormats
public PieChartLabelFormats(Label owner)
addPieColor
public boolean addPieColor(Color color)
addPieColor
public void addPieColor(int index,
Color color)
getPieColor
public Color getPieColor(int index)
- Returns the stored color with the specified index. If the index is out of the rage of the
currently stored field, new colors are added.
- Parameters:
index
- the index of the color
- Returns:
setPieColor
public Color setPieColor(int index,
Color color)
pieColorCount
public int pieColorCount()
getShowInternalLines
public boolean getShowInternalLines()
setShowInternalLines
public void setShowInternalLines(boolean showInternalLines)
getShowNullLines
public boolean getShowNullLines()
setShowNullLines
public void setShowNullLines(boolean showNullLines)
assignPieChartLabelFormats
public void assignPieChartLabelFormats(PieChartLabelFormats other)
assign
public void assign(PieChartLabelFormats other)
clone
public PieChartLabelFormats clone()
- Description copied from class:
LabelFormats
- Returns a deep copy with the owner
null
.
- Specified by:
clone
in interface ElementFormats
- Specified by:
clone
in interface LineFormats
- Overrides:
clone
in class LabelFormats