Package whiteboard.graphics.labels
Class StatisticsLabel
java.lang.Object
whiteboard.graphics.labels.StatisticsLabel
- Direct Known Subclasses:
StaticLabel,TimerLabel,TimeSinceLabel,TimeTilLabel
public abstract class StatisticsLabel
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected javax.swing.JLabeldescriptorLabelprotected java.lang.StringfontNameprotected StatisticsLabelinstanceprotected LabelConfiglabelDataprotected javax.swing.JLabelvalueLabelprotected Viewview -
Constructor Summary
Constructors Constructor Description StatisticsLabel(LabelConfig labelData, View view) -
Method Summary
Modifier and Type Method Description java.lang.StringgetDescriptor()Getters Settersjavax.swing.JLabelgetDescriptorLabel()intgetId()java.lang.StringgetType()java.lang.StringgetValue()javax.swing.JLabelgetValueLabel()private voidinitDescriptorLabel()Abstract functionsprotected abstract voidinitValueLabel()voidsetDescriptor(java.lang.String descriptor)voidsetDescriptorLabel(javax.swing.JLabel descriptorLabel)voidsetId(int id)voidsetLabelData(LabelConfig config)voidsetType(java.lang.String type)voidsetValue(java.lang.String value)voidsetValueLabel(javax.swing.JLabel valueLabel)
-
Field Details
-
labelData
-
descriptorLabel
protected javax.swing.JLabel descriptorLabel -
valueLabel
protected javax.swing.JLabel valueLabel -
view
-
instance
-
fontName
protected java.lang.String fontName
-
-
Constructor Details
-
Method Details
-
getDescriptor
public java.lang.String getDescriptor()Getters Setters -
setDescriptor
public void setDescriptor(java.lang.String descriptor) -
getValue
public java.lang.String getValue() -
setValue
public void setValue(java.lang.String value) -
getType
public java.lang.String getType() -
setType
public void setType(java.lang.String type) -
getId
public int getId() -
setId
public void setId(int id) -
getDescriptorLabel
public javax.swing.JLabel getDescriptorLabel() -
setDescriptorLabel
public void setDescriptorLabel(javax.swing.JLabel descriptorLabel) -
getValueLabel
public javax.swing.JLabel getValueLabel() -
setValueLabel
public void setValueLabel(javax.swing.JLabel valueLabel) -
setLabelData
-
initDescriptorLabel
private void initDescriptorLabel()Abstract functions -
initValueLabel
protected abstract void initValueLabel()
-