motris.gui
Class DisplacementRateDisplayLayer

java.lang.Object
  extended bymotris.data.Description
      extended byparameter.ParameterizedObjectAdaptor
          extended bymotris.gui.ColorizedLayer
              extended bymotris.gui.VectorFieldLayer
                  extended bymotris.gui.DisplacementRateDisplayLayer
All Implemented Interfaces:
Layer, ParameterizedObject

public class DisplacementRateDisplayLayer
extends VectorFieldLayer

Display layer for Point Displacement Rate used in the OF Adaption algorithm

Author:
preuter, ottlik

Nested Class Summary
 
Nested classes inherited from class parameter.ParameterizedObject
ParameterizedObject.ParameterChangedListener, ParameterizedObject.ParameterizedObjectManager
 
Field Summary
(package private)  java.lang.String actorName
           
private  OFImage bufferedImage
           
private  OFAdaption myOFAdaption
           
 
Fields inherited from class motris.gui.VectorFieldLayer
allowCustomDraw, ANGLEMODE, blackPointsTransparent, CUSTOMMODE, D2, D3, displayImage, displayMode, maxValue, minValue, NORMMODE, opacity, vectorData, VECTORMODE, xoff, yoff
 
Fields inherited from class motris.gui.ColorizedLayer
color, strokeWidth
 
Fields inherited from class parameter.ParameterizedObjectAdaptor
parameterChangedNotifyList
 
Fields inherited from class motris.data.Description
 
Constructor Summary
DisplacementRateDisplayLayer(OFAdaption adap, java.lang.String actorName)
           
 
Method Summary
 void colorizedDraw(java.awt.Graphics g, javax.swing.JPanel _c, double zoomFactor)
           
 void displacementRateChanged()
           
 void drawCustom(java.awt.Graphics g, javax.swing.JPanel _c, double zoomFactor)
           
(package private)  java.lang.String getCustomDrawName()
           
 java.lang.String getDisplayedName()
           
 java.lang.String getIdentification()
          Default Identification = DisplayedName (may be overridden)
 ParameterSet getPixelDetails(Double2Vector position)
          Get Detailed information (read-only) for pixel
 java.awt.Dimension getPreferedDimension()
           
 void setVectorData()
           
 
Methods inherited from class motris.gui.VectorFieldLayer
drawAngle, drawArrow, drawArrows, drawNorm, getColor, getNormalizedValue, getParameters, getPreferedDimension, setParameters
 
Methods inherited from class motris.gui.ColorizedLayer
draw
 
Methods inherited from class parameter.ParameterizedObjectAdaptor
addParameterChangedListener, finalize, fireParameterChanged, parameterEdited, removeParameterChangedListener
 
Methods inherited from class motris.data.Description
getDescription, getIdentifier, getName, setDescription, setIdentifier, setName
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface parameter.ParameterizedObject
addParameterChangedListener, parameterEdited, removeParameterChangedListener
 

Field Detail

bufferedImage

private OFImage bufferedImage

myOFAdaption

private OFAdaption myOFAdaption

actorName

java.lang.String actorName
Constructor Detail

DisplacementRateDisplayLayer

public DisplacementRateDisplayLayer(OFAdaption adap,
                                    java.lang.String actorName)
Method Detail

colorizedDraw

public void colorizedDraw(java.awt.Graphics g,
                          javax.swing.JPanel _c,
                          double zoomFactor)
Overrides:
colorizedDraw in class VectorFieldLayer

getDisplayedName

public java.lang.String getDisplayedName()

getIdentification

public java.lang.String getIdentification()
Description copied from class: ColorizedLayer
Default Identification = DisplayedName (may be overridden)

Specified by:
getIdentification in interface Layer
Overrides:
getIdentification in class ColorizedLayer

getPreferedDimension

public java.awt.Dimension getPreferedDimension()

displacementRateChanged

public void displacementRateChanged()

getPixelDetails

public ParameterSet getPixelDetails(Double2Vector position)
Description copied from interface: Layer
Get Detailed information (read-only) for pixel

Specified by:
getPixelDetails in interface Layer
Overrides:
getPixelDetails in class VectorFieldLayer

drawCustom

public void drawCustom(java.awt.Graphics g,
                       javax.swing.JPanel _c,
                       double zoomFactor)
Specified by:
drawCustom in class VectorFieldLayer

setVectorData

public void setVectorData()
Specified by:
setVectorData in class VectorFieldLayer

getCustomDrawName

java.lang.String getCustomDrawName()
Specified by:
getCustomDrawName in class VectorFieldLayer