com.metsci.glimpse.painter.geo
Class ScalePainter

java.lang.Object
  extended by com.metsci.glimpse.painter.base.GlimpsePainterImpl
      extended by com.metsci.glimpse.painter.geo.ScalePainter
All Implemented Interfaces:
GlimpsePainter

public class ScalePainter
extends GlimpsePainterImpl

Displays a simple distance scale in the lower right corner of the plot.

Author:
ulman

Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
ScalePainter(Axis1D axis)
           
 
Method Summary
 void dispose(javax.media.opengl.GLContext context)
           
 float[] getBorderColor()
           
 int getPixelBufferX()
           
 int getPixelBufferY()
           
 int getPixelHeight()
           
 float[] getPrimaryColor()
           
 int getScaleHeight()
           
 float[] getSecondaryColor()
           
 float[] getTextColor()
           
 AxisUnitConverter getUnitConverter()
           
 java.lang.String getUnitLabel()
           
 void setBorderColor(float[] borderColor)
           
 void setPixelBufferX(int buffer)
           
 void setPixelBufferY(int buffer)
           
 void setPixelHeight(int pixelHeight)
           
 void setPixelWidth(int pixelWidth)
           
 void setPrimaryColor(float[] primaryColor)
           
 void setSecondaryColor(float[] secondaryColor)
           
 void setTextColor(float[] textColor)
           
 void setUnitConverter(AxisUnitConverter converter)
           
 void setUnitLabel(java.lang.String unitLabel)
           
 
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

ScalePainter

public ScalePainter(Axis1D axis)
Method Detail

getBorderColor

public float[] getBorderColor()

setBorderColor

public void setBorderColor(float[] borderColor)

getPrimaryColor

public float[] getPrimaryColor()

setPrimaryColor

public void setPrimaryColor(float[] primaryColor)

getSecondaryColor

public float[] getSecondaryColor()

setSecondaryColor

public void setSecondaryColor(float[] secondaryColor)

getTextColor

public float[] getTextColor()

setTextColor

public void setTextColor(float[] textColor)

getPixelBufferX

public int getPixelBufferX()

setPixelBufferX

public void setPixelBufferX(int buffer)

getPixelBufferY

public int getPixelBufferY()

setPixelBufferY

public void setPixelBufferY(int buffer)

getScaleHeight

public int getScaleHeight()

setPixelHeight

public void setPixelHeight(int pixelHeight)

getPixelHeight

public int getPixelHeight()

setPixelWidth

public void setPixelWidth(int pixelWidth)

getUnitConverter

public AxisUnitConverter getUnitConverter()

setUnitConverter

public void setUnitConverter(AxisUnitConverter converter)

getUnitLabel

public java.lang.String getUnitLabel()

setUnitLabel

public void setUnitLabel(java.lang.String unitLabel)

dispose

public void dispose(javax.media.opengl.GLContext context)


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