motris.gui
Class EdgeElementAssignmentLayer

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

public class EdgeElementAssignmentLayer
extends VectorFieldLayer

Display Layer for Edge Element Assigments

Author:
preuter, dahlkamp

Nested Class Summary
 
Nested classes inherited from class parameter.ParameterizedObject
ParameterizedObject.ParameterChangedListener, ParameterizedObject.ParameterizedObjectManager
 
Field Summary
private  DerivativeImage assignmentImage
           
private  int clickCount
           
private  java.awt.Color colorSelectedEdge
           
private  java.awt.Color colorSelectedEdgeElement
           
private  ExperimentViewController controller
           
private  DataManager dataManager
           
private  EdgeElementAdaption EEAdaption
           
private  boolean needRecompute
           
private  ImageEdge selectedEdge
           
private  Double2Vector selectedEdgeElement
           
private  EdgeInterval selectedInterval
           
(package private)  ImageSequenceData sequence
           
private  int whichAssignmentVecs
           
 
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
EdgeElementAssignmentLayer(DataManager _data, ExperimentViewController _controller)
           
 
Method Summary
 void colorizedDraw(java.awt.Graphics g, javax.swing.JPanel _c, double zoomFactor)
           
 void drawCustom(java.awt.Graphics g, javax.swing.JPanel _c, double zoomFactor)
           
private  java.util.Vector findClosestInterval(Double2Vector position, ImageGeometry imageGeo)
           
(package private)  java.lang.String getCustomDrawName()
           
 java.lang.String getDisplayedName()
           
 ParameterSet getParameters()
          Get a Vector of Strings with a description of each Parameter
 ParameterSet getPixelDetails(Double2Vector position)
          Get Detailed information (read-only) for pixel
 boolean setParameters(ParameterSet _params)
          Set Parameters of this class
 void setVectorData()
           
 
Methods inherited from class motris.gui.VectorFieldLayer
drawAngle, drawArrow, drawArrows, drawNorm, getColor, getNormalizedValue, getPreferedDimension
 
Methods inherited from class motris.gui.ColorizedLayer
draw, getIdentification
 
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

EEAdaption

private EdgeElementAdaption EEAdaption

assignmentImage

private DerivativeImage assignmentImage

dataManager

private DataManager dataManager

controller

private ExperimentViewController controller

sequence

ImageSequenceData sequence

clickCount

private int clickCount

selectedEdgeElement

private Double2Vector selectedEdgeElement

selectedEdge

private ImageEdge selectedEdge

selectedInterval

private EdgeInterval selectedInterval

colorSelectedEdge

private java.awt.Color colorSelectedEdge

colorSelectedEdgeElement

private java.awt.Color colorSelectedEdgeElement

whichAssignmentVecs

private int whichAssignmentVecs

needRecompute

private boolean needRecompute
Constructor Detail

EdgeElementAssignmentLayer

public EdgeElementAssignmentLayer(DataManager _data,
                                  ExperimentViewController _controller)
Method Detail

getDisplayedName

public java.lang.String getDisplayedName()

colorizedDraw

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

setVectorData

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

drawCustom

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

getCustomDrawName

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

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

findClosestInterval

private java.util.Vector findClosestInterval(Double2Vector position,
                                             ImageGeometry imageGeo)

getParameters

public ParameterSet getParameters()
Description copied from interface: ParameterizedObject
Get a Vector of Strings with a description of each Parameter

Specified by:
getParameters in interface ParameterizedObject
Overrides:
getParameters in class VectorFieldLayer

setParameters

public boolean setParameters(ParameterSet _params)
Description copied from interface: ParameterizedObject
Set Parameters of this class

Specified by:
setParameters in interface ParameterizedObject
Overrides:
setParameters in class VectorFieldLayer