Class EventPainterManager
- java.lang.Object
-
- com.metsci.glimpse.core.painter.base.GlimpsePainterBase
-
- com.metsci.glimpse.core.plot.timeline.event.paint.EventPainterManager
-
- All Implemented Interfaces:
GlimpsePainter
public class EventPainterManager extends GlimpsePainterBase
Paints 1D events with associated color, time span, icon, and label information.- Author:
- ulman
-
-
Constructor Summary
Constructors Constructor Description EventPainterManager(EventPlotInfo plot, EventManager manager, Epoch epoch, TextureAtlas atlas)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doPaintTo(GlimpseContext context)
float[]
getBackgroundColor()
float[]
getBorderColor()
float
getBorderThickness()
Epoch
getEpoch()
GroupedEventPainter
getEventPainter()
EventPlotInfo
getEventPlotInfo()
float[]
getTextColor()
float[]
getTextColorNoBackground()
TextRenderer
getTextRenderer()
TextureAtlas
getTextureAtlas()
boolean
isBackgroundColorSet()
boolean
isBorderColorSet()
boolean
isBorderThicknessSet()
boolean
isHorizontal()
boolean
isTextColorSet()
void
setBackgroundColor(float[] backgroundColor)
void
setBorderColor(float[] borderColor)
void
setBorderThickness(float thickness)
void
setEventPainter(GroupedEventPainter painter)
EventPainterManager
setFont(Font font, boolean antialias)
void
setLookAndFeel(LookAndFeel laf)
Sets display options for the painter based on the provided LookAndFeel.void
setTextColor(float[] textColor)
-
Methods inherited from class com.metsci.glimpse.core.painter.base.GlimpsePainterBase
dispose, getAxis1D, getAxis2D, getBounds, getGL3, isDisposed, isVisible, paintTo, requireAxis1D, requireAxis2D, setVisible
-
-
-
-
Constructor Detail
-
EventPainterManager
public EventPainterManager(EventPlotInfo plot, EventManager manager, Epoch epoch, TextureAtlas atlas)
-
-
Method Detail
-
setEventPainter
public void setEventPainter(GroupedEventPainter painter)
-
getEventPainter
public GroupedEventPainter getEventPainter()
-
isBorderThicknessSet
public boolean isBorderThicknessSet()
-
isTextColorSet
public boolean isTextColorSet()
-
isBackgroundColorSet
public boolean isBackgroundColorSet()
-
isBorderColorSet
public boolean isBorderColorSet()
-
getBorderThickness
public float getBorderThickness()
-
setBorderThickness
public void setBorderThickness(float thickness)
-
getBackgroundColor
public float[] getBackgroundColor()
-
setBackgroundColor
public void setBackgroundColor(float[] backgroundColor)
-
getBorderColor
public float[] getBorderColor()
-
setBorderColor
public void setBorderColor(float[] borderColor)
-
getTextColorNoBackground
public float[] getTextColorNoBackground()
-
getTextColor
public float[] getTextColor()
-
setTextColor
public void setTextColor(float[] textColor)
-
getTextRenderer
public TextRenderer getTextRenderer()
-
getTextureAtlas
public TextureAtlas getTextureAtlas()
-
setFont
public EventPainterManager setFont(Font font, boolean antialias)
-
isHorizontal
public boolean isHorizontal()
-
getEpoch
public Epoch getEpoch()
-
getEventPlotInfo
public EventPlotInfo getEventPlotInfo()
-
doPaintTo
public void doPaintTo(GlimpseContext context)
-
setLookAndFeel
public void setLookAndFeel(LookAndFeel laf)
Description copied from interface:GlimpsePainter
Sets display options for the painter based on the provided LookAndFeel.- Specified by:
setLookAndFeel
in interfaceGlimpsePainter
- Overrides:
setLookAndFeel
in classGlimpsePainterBase
-
-