net.aavalla.utils.gui.twovenn
Class VennParameters
java.lang.Object
net.aavalla.utils.jobpool.parameters.ParameterCollection
net.aavalla.utils.gui.twovenn.VennParameters
All Implemented Interfaces: java.lang.Cloneable, java.lang.Iterable<FieldInstance >
public class VennParameters extends ParameterCollection implements java.lang.Cloneable
Author:
Lari Natri
Methods inherited from class net.aavalla.utils.jobpool.parameters.ParameterCollection
clearHiddenFields , copyHiddenFieldsSetFrom , getDescription , getHelpID , getHelpURL , getHiddenFields , hideFieldByName , isFinal , iterator , makeFinal , parseFieldsWithAnnotations , setDescription , setHelpID , setHelpURL , unHideFieldByName
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aTotal
protected double aTotal
abIntersect
protected double abIntersect
bTotal
protected double bTotal
VennParameters
public VennParameters ()
VennParameters
public VennParameters (double aTotal,
double bTotal,
double abIntersect)
getMaxFontSize
public int getMaxFontSize ()
setMaxFontSize
public void setMaxFontSize (int maxFontSize)
getMinFontSize
public int getMinFontSize ()
setMinFontSize
public void setMinFontSize (int minFontSize)
getLabelAColor
public java.awt.Color getLabelAColor ()
setLabelAColor
public void setLabelAColor (java.awt.Color aColorFG)
getaLabel
public java.lang.String getaLabel ()
setaLabel
public void setaLabel (java.lang.String aLabel)
getaTotal
public double getaTotal ()
setaTotal
public void setaTotal (double aTotal)
getLabelABColor
public java.awt.Color getLabelABColor ()
setLabelABColor
public void setLabelABColor (java.awt.Color abColorFG)
getAbIntersect
public double getAbIntersect ()
setAbIntersect
public void setAbIntersect (double abIntersect)
getAbLabel
public java.lang.String getAbLabel ()
setAbLabel
public void setAbLabel (java.lang.String abLabel)
isAntialiase
public boolean isAntialiase ()
setAntialiase
public void setAntialiase (boolean antialiase)
getLabelBColor
public java.awt.Color getLabelBColor ()
getLabelBColor
public void getLabelBColor (java.awt.Color bColorFG)
getaCircleOutlineColor
public java.awt.Color getaCircleOutlineColor ()
setaCircleOutlineColor
public void setaCircleOutlineColor (java.awt.Color aCircleOutlineColor)
getbCircleOutlineColor
public java.awt.Color getbCircleOutlineColor ()
setbCircleOutlineColor
public void setbCircleOutlineColor (java.awt.Color bCircleOutlineColor)
getbLabel
public java.lang.String getbLabel ()
setbLabel
public void setbLabel (java.lang.String bLabel)
getbTotal
public double getbTotal ()
setbTotal
public void setbTotal (double bTotal)
getCanvasColorBG
public java.awt.Color getCanvasColorBG ()
setCanvasColorBG
public void setCanvasColorBG (java.awt.Color canvasColorBG)
getEmbeddedLabelType
public VennParameters.LabelType getEmbeddedLabelType ()
setEmbeddedLabelType
public void setEmbeddedLabelType (VennParameters.LabelType embeddedLabelType)
getExternalLabelType
public VennParameters.LabelType getExternalLabelType ()
setExternalLabelType
public void setExternalLabelType (VennParameters.LabelType externalLabelType)
getLineThickness
public int getLineThickness ()
setLineThickness
public void setLineThickness (int lineThickness)
getMarginBetween
public int getMarginBetween ()
setMarginBetween
public void setMarginBetween (int marginBetween)
getMarginImage
public int getMarginImage ()
setMarginImage
public void setMarginImage (int marginImage)
getMarginLabel
public int getMarginLabel ()
setMarginLabel
public void setMarginLabel (int marginLabel)
getLabelFont
public java.awt.Font getLabelFont ()
setLabelFont
public void setLabelFont (java.awt.Font labelFont)
addParameterChangedListener
public void addParameterChangedListener (VennPanel p)
removeParameterChangedListener
public boolean removeParameterChangedListener (VennPanel p)
validateFieldRelations
public java.lang.String validateFieldRelations ()
Description copied from class: ParameterCollection
This ought to validate the relations of all annotated fields. It should
be called from UI parameter handler after all individual fields have
been validated. For individual field validation, use classes derived
from ParameterValidator. Derived classes should overwrite
this method. The default implementation only returns null signifying
that parameter collection is valid.
Overrides: validateFieldRelations
in class ParameterCollection
Returns: null if validation ok, reason as a string if not
clone
public VennParameters clone ()
Overrides: clone
in class java.lang.Object