util.classificationFeatures.implementations
Class PositionalClassificationFeatureDrawing

java.lang.Object
  extended by util.classificationFeatures.implementations.PositionalClassificationFeatureDrawing
All Implemented Interfaces:
ClassificationFeatureDrawing

public class PositionalClassificationFeatureDrawing
extends java.lang.Object
implements ClassificationFeatureDrawing

This class is designed to draw the scores assigned to features generated by the positional classificationfeature type.

Author:
Michiel Van Bel

Constructor Summary
PositionalClassificationFeatureDrawing(PositionalClassificationFeature pcf)
           
 
Method Summary
 java.awt.Color createColor(double value)
           
 java.awt.Color createColor(int value)
           
 double createColorValue(double value, double maxvalue)
           
 void draw(java.awt.Graphics2D g2d, java.util.List<java.lang.Integer> list)
          This method draws the scores assigned to each feature, that is generated by this corresponding ClassificationFeature.
 void draw(org.apache.batik.svggen.SVGGraphics2D svg, java.util.List<java.lang.Double> list, int blocksize, int splicesite_increase)
          This method draws the scores assigned to each feature, that is generated by this corresponding ClassificationFeature.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PositionalClassificationFeatureDrawing

public PositionalClassificationFeatureDrawing(PositionalClassificationFeature pcf)
Method Detail

draw

public void draw(java.awt.Graphics2D g2d,
                 java.util.List<java.lang.Integer> list)
          throws IncorrectClassificationFeatureException
Description copied from interface: ClassificationFeatureDrawing
This method draws the scores assigned to each feature, that is generated by this corresponding ClassificationFeature. The normal idea is to let certain FeatureSelection methods assign a score to each feature, and then draw these scores in a classificationfeature dependend way.

Specified by:
draw in interface ClassificationFeatureDrawing
Throws:
IncorrectClassificationFeatureException

draw

public void draw(org.apache.batik.svggen.SVGGraphics2D svg,
                 java.util.List<java.lang.Double> list,
                 int blocksize,
                 int splicesite_increase)
          throws IncorrectClassificationFeatureException
This method draws the scores assigned to each feature, that is generated by this corresponding ClassificationFeature. The normal idea is to let certain FeatureSelection methods assign a score to each feature, and then draw these scores in a classificationfeature dependend way.

Specified by:
draw in interface ClassificationFeatureDrawing
Parameters:
svg -
list -
Throws:
IncorrectClassificationFeatureException

createColor

public java.awt.Color createColor(double value)

createColor

public java.awt.Color createColor(int value)

createColorValue

public double createColorValue(double value,
                               double maxvalue)