Class FMGraphicalPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----FMGraphicalPanel

public class FMGraphicalPanel
extends Panel
implements Observer
A Panel that displays pictures.


Variable Index

 o dim
 o drawBox
 o drawImage
 o dx
 o dy
 o features
 o image
 o observable
 o selectedFeature
 o symLineNr
 o wx0
 o wx1
 o wy0
 o wy1
 o x
 o x0
 o x1
 o xb
 o xe
 o y
 o y0
 o y1
 o yb
 o ye

Constructor Index

 o FMGraphicalPanel(SetFMModule)

Method Index

 o getPreferredSize()
Determines the preferred size of the panel by looking at the image that must be displayed.
 o paint(Graphics)
 o update(Graphics)
Update the graphics.
 o update(Observable, Object)
Called when the feature map data has been modified.

Variables

 o observable
 FMObservable observable
 o image
 Image image
 o dim
 Dimension dim
 o x0
 int x0
 o y0
 int y0
 o x1
 int x1
 o y1
 int y1
 o xb
 int xb
 o yb
 int yb
 o xe
 int xe
 o ye
 int ye
 o wx0
 int wx0
 o wy0
 int wy0
 o wx1
 int wx1
 o wy1
 int wy1
 o x
 int x
 o y
 int y
 o drawImage
 boolean drawImage
 o drawBox
 boolean drawBox
 o features
 int features[][]
 o dx
 double dx
 o dy
 double dy
 o selectedFeature
 int selectedFeature
 o symLineNr
 int symLineNr

Constructors

 o FMGraphicalPanel
 public FMGraphicalPanel(SetFMModule sfmm)

Methods

 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o update
 public void update(Graphics g)
Update the graphics. Works like paint but does not clear the background when it is called.

Overrides:
update in class Container
 o update
 public void update(Observable o,
                    Object obj)
Called when the feature map data has been modified.

 o getPreferredSize
 public Dimension getPreferredSize()
Determines the preferred size of the panel by looking at the image that must be displayed.

Overrides:
getPreferredSize in class Container