com.metsci.glimpse.painter.decoration
Class LegendPainter.LineLegendPainter

java.lang.Object
  extended by com.metsci.glimpse.painter.base.GlimpsePainterImpl
      extended by com.metsci.glimpse.painter.base.GlimpsePainter2D
          extended by com.metsci.glimpse.painter.decoration.LegendPainter
              extended by com.metsci.glimpse.painter.decoration.LegendPainter.LineLegendPainter
All Implemented Interfaces:
GlimpsePainter
Enclosing class:
LegendPainter

public static class LegendPainter.LineLegendPainter
extends LegendPainter


Nested Class Summary
 
Nested classes/interfaces inherited from class com.metsci.glimpse.painter.decoration.LegendPainter
LegendPainter.BlockLegendPainter, LegendPainter.LegendPlacement, LegendPainter.LineLegendPainter
 
Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
LegendPainter.LineLegendPainter(LegendPainter.LegendPlacement placement)
           
 
Method Summary
 void addItem(java.lang.String label, float[] rgba, boolean stipple)
           
 void addItem(java.lang.String label, float r, float g, float b, float a, boolean stipple)
           
 void clear()
           
 void removeItem(java.lang.String label)
           
 void setLineStipple(java.lang.String label, boolean stipple)
           
 void setLineStipplePattern(int stippleFactor, short stipplePattern)
           
 
Methods inherited from class com.metsci.glimpse.painter.decoration.LegendPainter
addItem, addItem, dispose, paintTo, setColor, setColor, setFont, setFont, setLegendItemWidth, setOffset, setOffsetX, setOffsetY, setPlacement, setSpacing, setTextColor, setTextColor
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpsePainter2D
paintTo
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
dispose, isDisposed, isVisible, paintTo, setErrorHandling, setLookAndFeel, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegendPainter.LineLegendPainter

public LegendPainter.LineLegendPainter(LegendPainter.LegendPlacement placement)
Method Detail

setLineStipplePattern

public void setLineStipplePattern(int stippleFactor,
                                  short stipplePattern)

setLineStipple

public void setLineStipple(java.lang.String label,
                           boolean stipple)

addItem

public void addItem(java.lang.String label,
                    float r,
                    float g,
                    float b,
                    float a,
                    boolean stipple)

addItem

public void addItem(java.lang.String label,
                    float[] rgba,
                    boolean stipple)

removeItem

public void removeItem(java.lang.String label)
Overrides:
removeItem in class LegendPainter

clear

public void clear()
Overrides:
clear in class LegendPainter


Copyright © 2012 Metron, Inc.. All Rights Reserved.