MOEA Framework 2.5
API Specification

org.moeaframework.analysis.diagnostics
Class PaintHelper

java.lang.Object
  extended by org.moeaframework.analysis.diagnostics.PaintHelper

public class PaintHelper
extends Object

Helper class for maintaining a mapping from series in a plot to their assigned paint. If the series has not yet been assigned a paint, one will be automatically assigned when invoking get(Comparable).


Constructor Summary
PaintHelper()
          Constructs a new paint helper with no assigned paints.
 
Method Summary
 void clear()
          Clears all paint assignments from this paint helper.
 Paint get(Comparable<?> key)
          Returns the paint used by the specified series key.
 void set(Comparable<?> key, Paint paint)
          Assigns a paint for the specified series key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaintHelper

public PaintHelper()
Constructs a new paint helper with no assigned paints.

Method Detail

get

public Paint get(Comparable<?> key)
Returns the paint used by the specified series key. If the series key has not yet been assigned a paint, one is automatically assigned.

Parameters:
key - the series key
Returns:
the paint used by the specified series key

set

public void set(Comparable<?> key,
                Paint paint)
Assigns a paint for the specified series key. All subsequent invocations of get(Comparable) with this series key will return the specified paint.

Parameters:
key - the series key
paint - the paint to be used for the specified series key

clear

public void clear()
Clears all paint assignments from this paint helper.


MOEA Framework 2.5
API Specification

Copyright 2009-2015 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Hosted by Get MOEA Framework at SourceForge.net. Fast, secure and Free Open Source software downloads