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

java.lang.Object
  extended by org.knime.base.node.viz.plotter.basic.BasicDrawingElement
      extended by org.knime.base.node.viz.plotter.basic.BasicLine

public class BasicLine
extends BasicDrawingElement

Represents a line by a list of points which are connected to one line. Hence, the ordering of the points in the list is important.

Author:
Fabian Dill, University of Konstanz

Constructor Summary
BasicLine()
           
 
Method Summary
 void paint(Graphics2D g)
          Paints the line by connecting all points.
 void setPoints(List<Point> points)
          Sets the mapped points.
 void setPoints(Point... points)
          Sets the mapped points.
 void setStroke(Stroke stroke)
          
 
Methods inherited from class org.knime.base.node.viz.plotter.basic.BasicDrawingElement
addDomainValue, addPoint, getColor, getDomainValues, getPoints, getStroke, setColor, setDomainValues, setDomainValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicLine

public BasicLine()
Method Detail

paint

public void paint(Graphics2D g)
Paints the line by connecting all points.

Specified by:
paint in class BasicDrawingElement
Parameters:
g - the graphics object
See Also:
#paint(java.awt.Graphics2D)

setPoints

public void setPoints(List<Point> points)
Sets the mapped points. Should be used by the BasicPlotter only.

Overrides:
setPoints in class BasicDrawingElement
Parameters:
points - the mapped points making up this drawing element

setPoints

public void setPoints(Point... points)
Sets the mapped points. Should be used by the BasicPlotter only.

Overrides:
setPoints in class BasicDrawingElement
Parameters:
points - mapped points

setStroke

public void setStroke(Stroke stroke)

Overrides:
setStroke in class BasicDrawingElement
Parameters:
stroke - the stroke of this element


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.