Class LegendPainter.LineLegendPainter
- java.lang.Object
-
- com.metsci.glimpse.core.painter.base.GlimpsePainterBase
-
- com.metsci.glimpse.core.painter.decoration.LegendPainter
-
- com.metsci.glimpse.core.painter.decoration.LegendPainter.LineLegendPainter
-
- All Implemented Interfaces:
GlimpsePainter
- Enclosing class:
- LegendPainter
public static class LegendPainter.LineLegendPainter extends LegendPainter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LegendPainter.LineLegendPainter.LineLegendPainterItem
-
Nested classes/interfaces inherited from class com.metsci.glimpse.core.painter.decoration.LegendPainter
LegendPainter.BlockLegendPainter, LegendPainter.LegendPlacement, LegendPainter.LineLegendPainter
-
-
Constructor Summary
Constructors Constructor Description LineLegendPainter(LegendPainter.LegendPlacement placement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItem(String label, float[] rgba)
void
clear()
void
removeItem(String label)
void
setLineStipple(String label, boolean stipple)
Toggles stipple on the legend item.void
setLineStipple(String label, int stippleFactor, short stipplePattern)
Enables stipple and sets the pattern on the legend item.void
setLineWidth(String label, float width)
-
Methods inherited from class com.metsci.glimpse.core.painter.decoration.LegendPainter
addItem, doDispose, doPaintTo, getFont, setColor, setColor, setFont, setFont, setFont, setFont, setLegendItemWidth, setLookAndFeel, setOffset, setOffsetX, setOffsetY, setPlacement, setSpacing, setTextColor, setTextColor
-
Methods inherited from class com.metsci.glimpse.core.painter.base.GlimpsePainterBase
dispose, getAxis1D, getAxis2D, getBounds, getGL3, isDisposed, isVisible, paintTo, requireAxis1D, requireAxis2D, setVisible
-
-
-
-
Constructor Detail
-
LineLegendPainter
public LineLegendPainter(LegendPainter.LegendPlacement placement)
-
-
Method Detail
-
setLineStipple
public void setLineStipple(String label, int stippleFactor, short stipplePattern)
Enables stipple and sets the pattern on the legend item.
-
setLineStipple
public void setLineStipple(String label, boolean stipple)
Toggles stipple on the legend item.
-
setLineWidth
public void setLineWidth(String label, float width)
-
addItem
public void addItem(String label, float[] rgba)
- Overrides:
addItem
in classLegendPainter
-
removeItem
public void removeItem(String label)
- Overrides:
removeItem
in classLegendPainter
-
clear
public void clear()
- Overrides:
clear
in classLegendPainter
-
-