org.gudy.azureus2.ui.swt.components
Class BufferedTableItemImpl

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.components.BufferedTableItemImpl
All Implemented Interfaces:
BufferedTableItem
Direct Known Subclasses:
BufferedGraphicTableItem1

public abstract class BufferedTableItemImpl
extends Object
implements BufferedTableItem

Author:
Olivier

Field Summary
protected  BufferedTableRow row
           
 
Constructor Summary
BufferedTableItemImpl(BufferedTableRow row, int position)
           
 
Method Summary
 void dispose()
           
 org.eclipse.swt.graphics.Color getBackground()
           
 org.eclipse.swt.graphics.Image getBackgroundImage()
           
 org.eclipse.swt.graphics.Rectangle getBounds()
           
 org.eclipse.swt.graphics.Rectangle getBoundsRaw()
           
 org.eclipse.swt.graphics.Color getForeground()
           
 int getHeight()
           
 org.eclipse.swt.graphics.Image getIcon()
           
 int getMaxLines()
          # of lines item can handle
 int getPosition()
           
 TableOrTreeSWT getTable()
           
 String getText()
           
 boolean isInPaintItem()
           
 boolean isMouseOver()
           
 boolean isShown()
          Is the cell currently shown on the screen?
 void locationChanged()
          Column location (not position) changed.
 boolean needsPainting()
           
protected  void quickRedrawCell(TableOrTreeSWT table, org.eclipse.swt.graphics.Rectangle dirty, org.eclipse.swt.graphics.Rectangle cellBounds)
           
 void redraw()
          Set to redraw at the next OS paint
 void setCursor(int cursorID)
           
 boolean setForeground(org.eclipse.swt.graphics.Color color)
           
 boolean setForeground(int red, int green, int blue)
           
 void setIcon(org.eclipse.swt.graphics.Image img)
           
 void setRowForeground(org.eclipse.swt.graphics.Color color)
           
 boolean setText(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gudy.azureus2.ui.swt.components.BufferedTableItem
invalidate, refresh
 

Field Detail

row

protected BufferedTableRow row
Constructor Detail

BufferedTableItemImpl

public BufferedTableItemImpl(BufferedTableRow row,
                             int position)
Method Detail

getText

public String getText()
Specified by:
getText in interface BufferedTableItem

setText

public boolean setText(String text)
Specified by:
setText in interface BufferedTableItem

redraw

public void redraw()
Description copied from interface: BufferedTableItem
Set to redraw at the next OS paint

Specified by:
redraw in interface BufferedTableItem

quickRedrawCell

protected void quickRedrawCell(TableOrTreeSWT table,
                               org.eclipse.swt.graphics.Rectangle dirty,
                               org.eclipse.swt.graphics.Rectangle cellBounds)

setIcon

public void setIcon(org.eclipse.swt.graphics.Image img)
Specified by:
setIcon in interface BufferedTableItem

getIcon

public org.eclipse.swt.graphics.Image getIcon()
Specified by:
getIcon in interface BufferedTableItem

setRowForeground

public void setRowForeground(org.eclipse.swt.graphics.Color color)
Specified by:
setRowForeground in interface BufferedTableItem

setForeground

public boolean setForeground(org.eclipse.swt.graphics.Color color)
Specified by:
setForeground in interface BufferedTableItem

getForeground

public org.eclipse.swt.graphics.Color getForeground()
Specified by:
getForeground in interface BufferedTableItem
Returns:

setForeground

public boolean setForeground(int red,
                             int green,
                             int blue)
Specified by:
setForeground in interface BufferedTableItem

getBackground

public org.eclipse.swt.graphics.Color getBackground()
Specified by:
getBackground in interface BufferedTableItem

getBounds

public org.eclipse.swt.graphics.Rectangle getBounds()
Specified by:
getBounds in interface BufferedTableItem

getBoundsRaw

public org.eclipse.swt.graphics.Rectangle getBoundsRaw()
Specified by:
getBoundsRaw in interface BufferedTableItem

getTable

public TableOrTreeSWT getTable()

dispose

public void dispose()
Specified by:
dispose in interface BufferedTableItem

isShown

public boolean isShown()
Description copied from interface: BufferedTableItem
Is the cell currently shown on the screen?

Specified by:
isShown in interface BufferedTableItem
Returns:

needsPainting

public boolean needsPainting()
Specified by:
needsPainting in interface BufferedTableItem

locationChanged

public void locationChanged()
Description copied from interface: BufferedTableItem
Column location (not position) changed. Usually due to a resize of a column in a position prior to this one.

Specified by:
locationChanged in interface BufferedTableItem

getPosition

public int getPosition()
Specified by:
getPosition in interface BufferedTableItem

getBackgroundImage

public org.eclipse.swt.graphics.Image getBackgroundImage()
Specified by:
getBackgroundImage in interface BufferedTableItem

getMaxLines

public int getMaxLines()
Description copied from interface: BufferedTableItem
# of lines item can handle

Specified by:
getMaxLines in interface BufferedTableItem
Returns:

setCursor

public void setCursor(int cursorID)
Specified by:
setCursor in interface BufferedTableItem

isMouseOver

public boolean isMouseOver()
Specified by:
isMouseOver in interface BufferedTableItem

isInPaintItem

public boolean isInPaintItem()
Specified by:
isInPaintItem in interface BufferedTableItem
Returns:

getHeight

public int getHeight()
Specified by:
getHeight in interface BufferedTableItem
Returns: