Class SlotsVisualSet<E extends Interval>
java.lang.Object
com.amalgamasimulation.visualsets.VisualSet<E>
com.amalgamasimulation.visualsets.LabeledVisualSet<E>
com.amalgamasimulation.visualsets.GanttVisualSet<E>
com.amalgamasimulation.visualsets.SlotsVisualSet<E>
- All Implemented Interfaces:
IBeginEndArgumentPropertyOwner<E>,IGanttChartRowPropertyOwner,IUpdatePolicyPropertyOwner,IAbstractChartVisualSet,IGanttChartVisualSet
-
Nested Class Summary
Nested classes/interfaces inherited from class com.amalgamasimulation.visualsets.GanttVisualSet
GanttVisualSet.GanttVisualElementNested classes/interfaces inherited from class com.amalgamasimulation.visualsets.LabeledVisualSet
LabeledVisualSet.LabeledVisualElementNested classes/interfaces inherited from class com.amalgamasimulation.visualsets.VisualSet
VisualSet.ContextMenuHandler<T>, VisualSet.UpdatePolicy, VisualSet.VisualElement -
Field Summary
Fields inherited from class com.amalgamasimulation.visualsets.LabeledVisualSet
labelColorExtractors, labelFontSizeExtractors, labelTextExtractors, labelTextSidesListFields inherited from class com.amalgamasimulation.visualsets.VisualSet
argumentExtractor, contentsToBeginArguments, contentsToEndArguments, contentsToVisualElements, contextMenuHandlers, dataElementsProvider, listeners, maxArgument, maxValueCache, minArgument, minValueCache, mouseEnterHandlers, mouseExitHandlers, mousePressedHandlers, mouseTransparent, name, needsUpdate, oldContentsList, tooltipTextExtractor, updatePolicy, visibilityChangeHandlers, visualElementsList -
Constructor Summary
ConstructorsConstructorDescriptionSlotsVisualSet(String name, GanttChartRow row, Supplier<List<E>> elementsProvider, Function<E, Double> beginArgumentExtractor, Function<E, Double> endArgumentExtractor) SlotsVisualSet(String name, Supplier<List<E>> elementsProvider, Function<E, Double> beginArgumentExtractor, Function<E, Double> endArgumentExtractor) -
Method Summary
Modifier and TypeMethodDescriptionsetBackgroundColor(Function<? extends E, Color> backgroundColor) Sets the background color for each data element.Methods inherited from class com.amalgamasimulation.visualsets.GanttVisualSet
addContextMenuHandler, addMouseEnterHandler, addMouseExitHandler, addMousePressedHandler, addVisibilityChangeHandler, createVisualElement, getBackgroundColor, getBeginArgument, getBorderColor, getBorderWidth, getEndArgument, getGanttChartRow, getRowHeightFraction, getVisualElements, setBorderColor, setBorderWidth, setLabelText, setLabelText, setMouseTransparent, setRowHeightFraction, setTooltipText, setUpdatePolicyMethods inherited from class com.amalgamasimulation.visualsets.LabeledVisualSet
getLabelColor, getLabelFontSize, getLabelSides, getLabelTextMethods inherited from class com.amalgamasimulation.visualsets.VisualSet
addVisualElement, addVisualElement, addVisualSetChangeHandler, clearDependencies, getArgument, getContents, getContextMenuHandlers, getDataElements, getInjectionIndex, getMaxArgument, getMinArgument, getMouseEnterHandlers, getMouseExitHandlers, getMousePressedHandlers, getName, getTooltipText, getUpdatePolicy, getVisibilityChangeHandlers, getVisibleVisualElementIndex, getVisibleVisualElementsCount, isMouseTransparent, isNeedsUpdate, recalculateVisualElements, removeContextMenuHandler, removeMouseEnterHandler, removeMouseExitHandler, removeMousePressedHandler, removeVisibilityChangeHandler, removeVisualElement, removeVisualSetChangeHandler, sortVisualElements, toString, update, updateMinMaxArguments, updateMinMaxArgumentsValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.amalgamasimulation.visualsets.types.IAbstractChartVisualSet
addVisualSetChangeHandler, getContents, getMaxArgument, getMinArgument, getName, getUpdatePolicy, getVisibilityChangeHandlers, getVisibleVisualElementsCount, isMouseTransparent, removeVisibilityChangeHandler, removeVisualSetChangeHandler
-
Constructor Details
-
SlotsVisualSet
-
SlotsVisualSet
-
-
Method Details
-
setBackgroundColor
Description copied from class:GanttVisualSetSets the background color for each data element. The color may be different for different data elements.- Overrides:
setBackgroundColorin classGanttVisualSet<E extends Interval>- Parameters:
backgroundColor- the background color extractor, i.e. method returning color depending on the data element- Returns:
- reference to this object
-
addLabel
-
addLabel
-
addLabel
-
addLabel
-