gui

Class DiffImageTab.ImagePanel

Enclosing Class:
DiffImageTab

public class DiffImageTab.ImagePanel
extends JComponent

Field Summary

private Rectangle2D.Double
backgroundShape1
private Rectangle2D.Double
backgroundShape2
private boolean
blockMatch
private int
borderX
private int
borderY
private double
error
private TextLayout
errorText
private Graphics2D
g2
private Image
image
private Rectangle2D.Double
optimalPosition
private Rectangle2D.Double
rect
private int
startX
private int
startY
private TextLayout
text1
private TextLayout
text2
private TextLayout
text3
private TextLayout
text4
private int
threshold
private TextLayout
thresholdText

Constructor Summary

ImagePanel(Image img)

Method Summary

void
displayError(double err)
void
displayThresholdValue(int th, boolean match)
void
paint(Graphics g)
boolean
setOptimalPosition(Point optPos)
boolean
setRectanglePosition(Point p)

Field Details

backgroundShape1

private Rectangle2D.Double backgroundShape1

backgroundShape2

private Rectangle2D.Double backgroundShape2

blockMatch

private boolean blockMatch

borderX

private int borderX

borderY

private int borderY

error

private double error

errorText

private TextLayout errorText

g2

private Graphics2D g2

image

private Image image

optimalPosition

private Rectangle2D.Double optimalPosition

rect

private Rectangle2D.Double rect

startX

private int startX

startY

private int startY

text1

private TextLayout text1

text2

private TextLayout text2

text3

private TextLayout text3

text4

private TextLayout text4

threshold

private int threshold

thresholdText

private TextLayout thresholdText

Constructor Details

ImagePanel

public ImagePanel(Image img)

Method Details

displayError

public void displayError(double err)

displayThresholdValue

public void displayThresholdValue(int th,
                                  boolean match)

paint

public void paint(Graphics g)

setOptimalPosition

public boolean setOptimalPosition(Point optPos)

setRectanglePosition

public boolean setRectanglePosition(Point p)