| |
|
| javax.swing.JPanel com.jeta.swingbuilder.gui.editor.DesignGridOverlay
DesignGridOverlay | public class DesignGridOverlay extends JPanel implements GridCellListener,GridOverlay(Code) | | This component renders the grid lines on a form in the designer. This class
is also responsible for drawing the blue selection rectangle for a selected
component in the designer.
author: Jeff Tassin |
DesignGridOverlay | public DesignGridOverlay(GridView view)(Code) | | Creates a GridOverlay instance.
Parameters: view - the GridView that contains this overlay. |
isGridVisible | public boolean isGridVisible()(Code) | | the flag that indicates if the grid is visible or not. |
paintComponent | public void paintComponent(Graphics g)(Code) | | Paint routine that renders the grid lines. Only renders the grid lines
that are contained in the clipping rectangle.
|
repaint | public void repaint(GridComponent gc)(Code) | | Repaints the region occupied by the given component
|
setGridVisible | public void setGridVisible(boolean bvis)(Code) | | Shows/hides the grid
|
updateUI | public void updateUI()(Code) | | Override updateUI so we can update the grid lines color. It should be one
shade darker than the current component background color. This method is
invoked when the look and feel changes in the designer.
|
|
|
|