com.guigarage.jgrid.ui
Class MacOsGridUI
java.lang.Object
javax.swing.plaf.ComponentUI
com.guigarage.jgrid.ui.GridUI
com.guigarage.jgrid.ui.BasicGridUI
com.guigarage.jgrid.ui.MacOsGridUI
public class MacOsGridUI
- extends BasicGridUI
A default UI for the Grid. The UI is for MAC OS and the rendering looks like the grid in iPhoto.
- Since:
- 0.1
- Version:
- 0.1
- Author:
- Hendrik Ebbers
| Methods inherited from class com.guigarage.jgrid.ui.BasicGridUI |
getCellAt, getCellBounds, getCellsIntersectedBy, getColumnCount, getColumnForIndex, getIndexAt, getPreferredHeightForWidth, getPreferredSize, getRowCount, getRowForIndex, isDebugMode, markCellBoundsAsDirty, paint, uninstallUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MacOsGridUI
public MacOsGridUI()
installUI
public void installUI(JComponent c)
- Overrides:
installUI in class BasicGridUI
paintCell
protected void paintCell(Graphics g,
JComponent c,
int index,
Rectangle bounds,
int leadIndex)
- Description copied from class:
BasicGridUI
- Paints the specified cell.
Subclasses should override this method and use the specified
Graphics object to render the cell.
- Overrides:
paintCell in class BasicGridUI
- Parameters:
g - the Graphics context in which to paintc - the JGrid being paintedindex - the cellindexbounds - the bounds of the cell
paintCellBorder
protected void paintCellBorder(Graphics g,
JComponent c,
int index,
Rectangle bounds,
int leadIndex)
- Description copied from class:
BasicGridUI
- Paints the Border for the specified cell.
Subclasses should override this method and use the specified
Graphics object to render the Border of the cell.
- Overrides:
paintCellBorder in class BasicGridUI
- Parameters:
g - the Graphics context in which to paintc - the JGrid being paintedindex - the cellindexbounds - the bounds of the cell
Copyright © 2012. All Rights Reserved.