/** * Add an empty VisualTable to this visualization, using the given data * group name. This adds a group of VisualItems that do not have a * backing data set, useful for creating interactive visual objects * that do not represent data. An exception will be thrown if the group * name is already in use. * @param group the data group name for the visualized data * @return the added VisualTable */ public synchronized VisualTable addTable(String group) { VisualTable vt = new VisualTable(this, group); addDataGroup(group, vt, null); return vt; }
/** * Add an empty VisualTable to this visualization, using the given data * group name and table schema. This adds a group of VisualItems that do * not have a backing data set, useful for creating interactive visual * objects that do not represent data. An exception will be thrown if the * group name is already in use. * @param group the data group name for the visualized data * @param schema the data schema to use for the VisualTable * @return the added VisualTable */ public synchronized VisualTable addTable(String group, Schema schema) { VisualTable vt = new VisualTable(this, group, schema); addDataGroup(group, vt, null); return vt; }
/** * Adds a data table to this visualization, using the given data group * name. A visual abstraction of the data will be created and registered * with the visualization. An exception will be thrown if the group name * is already in use. * @param group the data group name for the visualized data * @param table the data table to visualize * @param filter a filter Predicate determining which data Tuples in the * input table are visualized */ public synchronized VisualTable addTable( String group, Table table, Predicate filter) { VisualTable vt = new VisualTable(table, this, group, filter); addDataGroup(group, vt, table); return vt; }
/** * Adds a data table to this visualization, using the given data group * name. A visual abstraction of the data will be created and registered * with the visualization. An exception will be thrown if the group name * is already in use. * @param group the data group name for the visualized data * @param table the data table to visualize * @param filter a filter Predicate determining which data Tuples in the * input table are visualized * @param schema the data schema to use for the created VisualTable */ public synchronized VisualTable addTable( String group, Table table, Predicate filter, Schema schema) { VisualTable vt = new VisualTable(table, this, group, filter, schema); addDataGroup(group, vt, table); return vt; }
/** * Add a derived table, a VisualTable that is cascaded from an * existing VisualTable. This is useful for creating VisualItems * that inherit a set of visual properties from another group of * VisualItems. This might be used, for example, in the creation * of small multiples where only a few visual attributes vary * across the multiples. * @param group the data group to use for the derived table * @param source the source data group to derive from * @param filter a Predicate filter indicating which tuples of the * source group should be inheritable by the new group * @param override a data schema indicating which data fields * should not be inherited, but managed locally by the derived group * @return the derived VisualTable */ public synchronized VisualTable addDerivedTable( String group, String source, Predicate filter, Schema override) { VisualTable src = (VisualTable)getGroup(source); VisualTable vt = new VisualTable(src, this, group, filter, override); addDataGroup(group, vt, getSourceData(source)); return vt; }