com.rapidminer.gui.renderer
Class DefaultComponentRenderable

java.lang.Object
  extended by com.rapidminer.gui.renderer.DefaultComponentRenderable
All Implemented Interfaces:
Renderable, Reportable

public class DefaultComponentRenderable
extends java.lang.Object
implements Renderable

The default component renderer.

Author:
Ingo Mierswa

Constructor Summary
DefaultComponentRenderable(java.awt.Component component)
           
 
Method Summary
 void finishRendering()
          Will be invoked directly after rendering and gives the object the chance to perform some clean-up.
 int getRenderHeight(int preferredHeight)
          This method return the pixel height the rendering needs
 int getRenderWidth(int preferredWidth)
          This method returns the pixel width the rendering needs
 void prepareRendering()
          Will be invoked before rendering and even before render width and height retrieval.
 void render(java.awt.Graphics graphics, int width, int height)
          This method paints the visual representation onto the given graphics
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultComponentRenderable

public DefaultComponentRenderable(java.awt.Component component)
Method Detail

getRenderHeight

public int getRenderHeight(int preferredHeight)
Description copied from interface: Renderable
This method return the pixel height the rendering needs

Specified by:
getRenderHeight in interface Renderable
Parameters:
preferredHeight - tells the renderable of the size it should deliver best
Returns:
the pixel height

getRenderWidth

public int getRenderWidth(int preferredWidth)
Description copied from interface: Renderable
This method returns the pixel width the rendering needs

Specified by:
getRenderWidth in interface Renderable
Parameters:
preferredWidth - tells the renderable of the size it should deliver best
Returns:
the pixel width

prepareRendering

public void prepareRendering()
Description copied from interface: Renderable
Will be invoked before rendering and even before render width and height retrieval.

Specified by:
prepareRendering in interface Renderable

finishRendering

public void finishRendering()
Description copied from interface: Renderable
Will be invoked directly after rendering and gives the object the chance to perform some clean-up.

Specified by:
finishRendering in interface Renderable

render

public void render(java.awt.Graphics graphics,
                   int width,
                   int height)
Description copied from interface: Renderable
This method paints the visual representation onto the given graphics

Specified by:
render in interface Renderable
Parameters:
graphics - the graphics to render onto


Copyright © 2001-2009 by Rapid-I