gui

Class DiffImageTab


public class DiffImageTab
extends JPanel

Überschrift:

Beschreibung:

Copyright: Copyright (c) 2002

Organisation:

Nested Class Summary

class
DiffImageTab.ImagePanel

Field Summary

static int
THREE_BUTTON_PANEL
static int
TWO_BUTTON_PANEL
private JLabel
actualIcon
private AlgorithmListener
algoListener
private JPanel
buttons
private JLabel
diffIcon
private LinkedList
graphicItems
private Gui
gui
private JPanel
iconPanel
private ImageHolder
images
private BorderLayout
layout
private JPanel
panel
private DiffImageTab.ImagePanel
searchAreaImagePanel
private int
searchRange

Constructor Summary

DiffImageTab(ImageHolder ih, Gui g)

Method Summary

Line2D.Double
addLine(Line2D.Double line)
add a shape component to the diffImage (e.g.
void
clear()
void
displayComparisonResults(Point p, double error)
void
displayThresholdValue(int threshold, boolean match)
boolean
enableTab(int sr)
boolean
removeGraphicItem(Shape item)
removes the specified Shape-object from the diffImage
void
removeThresholdValue()
void
reset()

Field Details

THREE_BUTTON_PANEL

public static final int THREE_BUTTON_PANEL
Field Value:
1

TWO_BUTTON_PANEL

public static final int TWO_BUTTON_PANEL
Field Value:
0

actualIcon

private JLabel actualIcon

algoListener

private AlgorithmListener algoListener

buttons

private JPanel buttons

diffIcon

private JLabel diffIcon

graphicItems

private LinkedList graphicItems

gui

private Gui gui

iconPanel

private JPanel iconPanel

images

private ImageHolder images

layout

private BorderLayout layout

panel

private JPanel panel

searchAreaImagePanel

private DiffImageTab.ImagePanel searchAreaImagePanel

searchRange

private int searchRange

Constructor Details

DiffImageTab

public DiffImageTab(ImageHolder ih,
                    Gui g)

Method Details

addLine

public Line2D.Double addLine(Line2D.Double line)
add a shape component to the diffImage (e.g. a Line2D or a Rectangle2D)
Parameters:

clear

public void clear()

displayComparisonResults

public void displayComparisonResults(Point p,
                                     double error)

displayThresholdValue

public void displayThresholdValue(int threshold,
                                  boolean match)

enableTab

public boolean enableTab(int sr)

removeGraphicItem

public boolean removeGraphicItem(Shape item)
removes the specified Shape-object from the diffImage
Parameters:

removeThresholdValue

public void removeThresholdValue()

reset

public void reset()