gui
Class GridDisplay
public class GridDisplay
extends JComponent
Überschrift:
Beschreibung:
Copyright: Copyright (c) 2002
Organisation:
private JPopupMenu | createPopupMenu()
|
void | handleMouseClick(MouseEvent e) - This method checks if the mouseclick hit one of the grid coordinates.
|
void | paint(Graphics g)
|
private void | paintGridNode(Graphics2D g, int status, int gridRow, int gridCol) - This method provides the painting of un-/filled dots at the grid coordinates
|
void | setGrid(Grid gr)
|
backgroundRectangle
private Rectangle2D.Double backgroundRectangle
gridFieldHeight
private double gridFieldHeight
gridFieldWidth
private double gridFieldWidth
popupMenu
private JPopupMenu popupMenu
scaleFactor
private int scaleFactor
showGridScaleCheckBox
private JCheckBoxMenuItem showGridScaleCheckBox
startCol
private double startCol
startLine
private double startLine
GridDisplay
public GridDisplay(Grid gr,
Gui g)
createPopupMenu
private JPopupMenu createPopupMenu()
handleMouseClick
public void handleMouseClick(MouseEvent e)
This method checks if the mouseclick hit one of the grid coordinates.
If it does, the status of this field in the class Grid is changed.
paint
public void paint(Graphics g)
paintGridNode
private void paintGridNode(Graphics2D g,
int status,
int gridRow,
int gridCol)
This method provides the painting of un-/filled dots at the grid coordinates
setGrid
public void setGrid(Grid gr)