com.metsci.glimpse.painter.decoration
Class MapBorderPainter

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.MapBorderPainter
All Implemented Interfaces:
GlimpsePainter

public class MapBorderPainter
extends GlimpsePainter2D

An alternative BorderPainter which displays alternating white and black lines (to emulate a geographic map border).

Author:
ulman

Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
MapBorderPainter(AxisLabelHandler ticksX, AxisLabelHandler ticksY)
           
 
Method Summary
 void paintTo(GlimpseContext context, GlimpseBounds bounds, Axis2D axis)
           
 void setBorderSize(int size)
           
 void setInnerColor(float[] rgba)
           
 void setInnerColor(float r, float g, float b, float a)
           
 void setOuterColor(float[] rgba)
           
 void setOuterColor(float r, float g, float b, float a)
           
 
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

MapBorderPainter

public MapBorderPainter(AxisLabelHandler ticksX,
                        AxisLabelHandler ticksY)
Method Detail

setBorderSize

public void setBorderSize(int size)

setInnerColor

public void setInnerColor(float r,
                          float g,
                          float b,
                          float a)

setInnerColor

public void setInnerColor(float[] rgba)

setOuterColor

public void setOuterColor(float r,
                          float g,
                          float b,
                          float a)

setOuterColor

public void setOuterColor(float[] rgba)

paintTo

public void paintTo(GlimpseContext context,
                    GlimpseBounds bounds,
                    Axis2D axis)
Specified by:
paintTo in class GlimpsePainter2D


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