- java.lang.Object
- 
- com.inductiveautomation.factorypmi.application.components.chart.easychart.Pen
 
- 
- 
Constructor SummaryConstructors Constructor Description Pen()Creates a blank pen, using the default values for all attributes that apply to this pen's type.Pen(Pen copy)Pen(Dataset ds, int row)Creates a pen object from the given dataset/row, pulling values for all attributes that apply to this pen's type
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(Pen o)java.lang.Objectget(PenAttribute attr)booleangetBoolean(PenAttribute attr)java.awt.ColorgetColor(PenAttribute attr)abstract IPenDatasourceFactorygetDataGrouping(java.util.Set<java.lang.String> dynamicGroups)An object that is hashable and unique to any parameters required to pull the data for this penfloatgetFloat(PenAttribute attr)java.lang.StringgetGroupAndName()Returns the pen's group and name together as "Group\Name" or just "Name" if the group is blank.intgetInt(PenAttribute attr)java.lang.StringgetName()java.lang.IntegergetSortOrder()java.lang.StringgetString(PenAttribute attr)abstract PenTypegetType()voidset(PenAttribute attr, java.lang.Object value)static DatasettoDataset(java.util.List<Pen> pens, PenAttribute[] penAttributes, PenType type)Creates a dataset that represents the given list.java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
Penpublic Pen(Dataset ds, int row) Creates a pen object from the given dataset/row, pulling values for all attributes that apply to this pen's type
 - 
Penpublic Pen() Creates a blank pen, using the default values for all attributes that apply to this pen's type.
 - 
Penpublic Pen(Pen copy) 
 
- 
 - 
Method Detail- 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toDatasetpublic static Dataset toDataset(java.util.List<Pen> pens, PenAttribute[] penAttributes, PenType type) Creates a dataset that represents the given list. All pens must be of the same type
 - 
getTypepublic abstract PenType getType() 
 - 
getDataGroupingpublic abstract IPenDatasourceFactory getDataGrouping(java.util.Set<java.lang.String> dynamicGroups) An object that is hashable and unique to any parameters required to pull the data for this pen- Parameters:
- dynamicGroups- The names of all configured dynamic groups.
 
 - 
getNamepublic java.lang.String getName() 
 - 
getGroupAndNamepublic java.lang.String getGroupAndName() Returns the pen's group and name together as "Group\Name" or just "Name" if the group is blank.
 - 
getIntpublic int getInt(PenAttribute attr) 
 - 
getSortOrderpublic java.lang.Integer getSortOrder() 
 - 
getFloatpublic float getFloat(PenAttribute attr) 
 - 
getStringpublic java.lang.String getString(PenAttribute attr) 
 - 
getColorpublic java.awt.Color getColor(PenAttribute attr) 
 - 
getBooleanpublic boolean getBoolean(PenAttribute attr) 
 - 
setpublic void set(PenAttribute attr, java.lang.Object value) 
 - 
getpublic java.lang.Object get(PenAttribute attr) 
 
- 
 
-