org.knime.base.node.viz.plotter.basic
Class Basic2DDrawingElement

java.lang.Object
  extended by org.knime.base.node.viz.plotter.basic.BasicDrawingElement
      extended by org.knime.base.node.viz.plotter.basic.Basic2DDrawingElement
Direct Known Subclasses:
BasicEllipse, BasicRectangle

public abstract class Basic2DDrawingElement
extends BasicDrawingElement

This class is a specialization of the BasicDrawingElement by providing a flag whether the shape should be filled or not.

Author:
Fabian Dill, University of Konstanz
See Also:
BasicDrawingElement

Constructor Summary
Basic2DDrawingElement(boolean filled)
          Creates a shape either filled or not.
 
Method Summary
 boolean isFilled()
          Returns whether the shape should be filled (true) or not (false).
abstract  void paint(Graphics2D g2)
          The method which "knows" how to paint it.
 
Methods inherited from class org.knime.base.node.viz.plotter.basic.BasicDrawingElement
addDomainValue, addPoint, getColor, getDomainValues, getPoints, getStroke, setColor, setDomainValues, setDomainValues, setPoints, setPoints, setStroke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Basic2DDrawingElement

public Basic2DDrawingElement(boolean filled)
Creates a shape either filled or not.

Parameters:
filled - true, if the shape should be filled, false otherwise.
Method Detail

isFilled

public boolean isFilled()
Returns whether the shape should be filled (true) or not (false).

Returns:
true if the shape should be filled

paint

public abstract void paint(Graphics2D g2)
The method which "knows" how to paint it.

Specified by:
paint in class BasicDrawingElement
Parameters:
g2 - the graphics object


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.