kcl.waterloo.graphics.plots2D
Class BarExtra
- java.lang.Object
-
- kcl.waterloo.graphics.plots2D.FontSupport
-
- kcl.waterloo.graphics.plots2D.BarExtra
-
public class BarExtra extends FontSupport
Object to support bar charts. For implementation details of how individual fields will be interpreted, see the help for the implementing chart class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classBarExtra.MODEFor bar plots, indicates the display mode for multiplexed data.static classBarExtra.ORIENTATIONOrientation for the boxes.
-
Constructor Summary
Constructors Constructor and Description BarExtra()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetBarWidth()Get the bar width in axes units.doublegetBaseValue()BarExtra.ORIENTATIONgetLabelOrientation()java.util.ArrayList<java.lang.String>getLabels()BarExtra.MODEgetMode()BarExtra.ORIENTATIONgetOrientation()Returns the orientation: BarExtra.ORIENTATION.HORIZONTAL or VERTICAL.voidsetBarWidth(double barWidth)Set the bar width in axes units.voidsetBaseValue(double baseValue)voidsetLabelOrientation(BarExtra.ORIENTATION labelOrientation)voidsetLabelOrientation(java.lang.String s)voidsetLabels(java.util.ArrayList<java.lang.String> labels)voidsetLabels(java.lang.String[] labels)voidsetMode(BarExtra.MODE mode)voidsetOrientation(BarExtra.ORIENTATION orientation)Sets the orientation: BarExtra.ORIENTATION.HORIZONTAL or VERTICAL.-
Methods inherited from class kcl.waterloo.graphics.plots2D.FontSupport
getFont, getFontBackground, getFontBackground, getFontForeground, getFontForeground, setFont, setFontBackground, setFontBackground, setFontBackground, setFontForeground, setFontForeground, setFontForeground
-
-
-
-
Method Detail
-
getBarWidth
public double getBarWidth()
Get the bar width in axes units.- Returns:
- the barWidth
-
setBarWidth
public void setBarWidth(double barWidth)
Set the bar width in axes units.- Parameters:
barWidth- the barWidth to set
-
getMode
public BarExtra.MODE getMode()
- Returns:
- the mode
-
setMode
public void setMode(BarExtra.MODE mode)
- Parameters:
mode- the mode to set
-
getOrientation
public BarExtra.ORIENTATION getOrientation()
Returns the orientation: BarExtra.ORIENTATION.HORIZONTAL or VERTICAL.- Returns:
- the orientation
-
setOrientation
public void setOrientation(BarExtra.ORIENTATION orientation)
Sets the orientation: BarExtra.ORIENTATION.HORIZONTAL or VERTICAL.- Parameters:
orientation- the orientation to set
-
getBaseValue
public double getBaseValue()
- Returns:
- the baseValue
-
setBaseValue
public void setBaseValue(double baseValue)
- Parameters:
baseValue- the baseValue to set
-
getLabels
public java.util.ArrayList<java.lang.String> getLabels()
- Returns:
- the labels
-
setLabels
public void setLabels(java.util.ArrayList<java.lang.String> labels)
- Parameters:
labels- the labels to set
-
setLabels
public void setLabels(java.lang.String[] labels)
-
getLabelOrientation
public BarExtra.ORIENTATION getLabelOrientation()
- Returns:
- the labelOrientation
-
setLabelOrientation
public void setLabelOrientation(BarExtra.ORIENTATION labelOrientation)
- Parameters:
labelOrientation- the labelOrientation to set
-
setLabelOrientation
public void setLabelOrientation(java.lang.String s)
-
-
DMelt 3.0 © DataMelt by jWork.ORG