edu.udo.cs.yale.gui.experimenteditor
Class OperatorRenderer

java.lang.Object
  extended by edu.udo.cs.yale.gui.experimenteditor.OperatorRenderer
Direct Known Subclasses:
ChainRenderer, LeafRenderer

public abstract class OperatorRenderer
extends java.lang.Object

Superclass for renderers that can display operators. Chains, wrappers and simple operators must be treated differently. The rendered image can be used in box view or in the wizard dialog.

Version:
$Id: OperatorRenderer.java,v 1.2 2006/08/03 14:39:28 ingomierswa Exp $
Author:
Ingo Mierswa, Simon Fischer

Field Summary
static int ICON_GAP
           
static java.awt.Font NAME_FONT
           
static java.awt.Font TYPE_FONT
           
 
Constructor Summary
OperatorRenderer()
           
 
Method Summary
 void drawName(Operator op, java.awt.Graphics2D g)
           
abstract  void drawOperator(Operator op, java.awt.Graphics2D g)
           
 java.awt.Dimension getNameSize(Operator op, java.awt.Graphics2D g)
           
abstract  java.awt.Dimension getSize(Operator op, java.awt.Graphics2D g)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME_FONT

public static final java.awt.Font NAME_FONT

TYPE_FONT

public static final java.awt.Font TYPE_FONT

ICON_GAP

public static final int ICON_GAP
See Also:
Constant Field Values
Constructor Detail

OperatorRenderer

public OperatorRenderer()
Method Detail

drawName

public void drawName(Operator op,
                     java.awt.Graphics2D g)

getNameSize

public java.awt.Dimension getNameSize(Operator op,
                                      java.awt.Graphics2D g)

drawOperator

public abstract void drawOperator(Operator op,
                                  java.awt.Graphics2D g)

getSize

public abstract java.awt.Dimension getSize(Operator op,
                                           java.awt.Graphics2D g)


Copyright © 2001-2006