|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.man.bioinf.gui.color.ThreadedColorMap
ThreadedColorMap.java This class implements the threaded functionality for ColorMap. You can use this class to wrap up any other ThreadableColorMap and it will take care of the out thread calculation. This class it should be noted is immutable in the sense that the SequenceAlignment it set in the constructor, and you can not change this, so you will need to create a new object. Created: Fri Dec 1 14:58:48 2000
Field Summary | |
static String |
NAME
|
Constructor Summary | |
ThreadedColorMap(JAlignmentViewer viewer,
SequenceAlignment alignment,
ThreadableColorMap map)
|
|
ThreadedColorMap(JAlignmentViewer viewer,
SequenceAlignment alignment,
ThreadableColorMap map,
InvokerInternalQueue queue)
|
Method Summary | |
void |
changeOccurred(AlignmentEvent event)
method signalled after a change has occured to a multiple alignment |
void |
changeOccurred(SequenceEvent event)
Method called when a change occurs |
void |
destroy()
|
Color |
getColorAt(SequenceAlignment alignment,
Element element,
SequenceAlignmentPoint point)
Returns the Color at a specific position in the alignment. |
String |
getInternalThreadedColorMap()
|
String |
getName()
Returns the name of this colour scheme. |
void |
propertyChange(PropertyChangeEvent event)
|
protected void |
validate()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String NAME
Constructor Detail |
public ThreadedColorMap(JAlignmentViewer viewer, SequenceAlignment alignment, ThreadableColorMap map)
public ThreadedColorMap(JAlignmentViewer viewer, SequenceAlignment alignment, ThreadableColorMap map, InvokerInternalQueue queue)
Method Detail |
public Color getColorAt(SequenceAlignment alignment, Element element, SequenceAlignmentPoint point)
ColorMap
getColorAt
in interface ColorMap
alignment
- the sequence alignmentelement
- the elementpoint
- the location within the SA
protected void validate()
public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
public void changeOccurred(SequenceEvent event)
SequenceListener
changeOccurred
in interface SequenceListener
event
- public void changeOccurred(AlignmentEvent event)
AlignmentListener
changeOccurred
in interface AlignmentListener
event
- the event typepublic String getName()
ColorMap
getName
in interface ColorMap
public String getInternalThreadedColorMap()
public void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |