|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.gui.visualization.core.plot.AbstractHitDetector
adams.gui.visualization.core.plot.AbstractDistanceBasedHitDetector
adams.gui.visualization.instance.InstancePointHitDetector
public class InstancePointHitDetector
Detects selections of instance points in the instance panel.
| Field Summary | |
|---|---|
protected InstancePanel |
m_Owner
the owner of this detector. |
| Fields inherited from class adams.gui.visualization.core.plot.AbstractDistanceBasedHitDetector |
|---|
m_MinimumPixelDifference |
| Fields inherited from class adams.gui.visualization.core.plot.AbstractHitDetector |
|---|
m_Debug, m_Enabled |
| Constructor Summary | |
|---|---|
InstancePointHitDetector(InstancePanel owner)
Initializes the hit detector. |
|
| Method Summary | |
|---|---|
void |
cleanUp()
Cleans up data structures, frees up memory. |
protected int |
findClosestAttributeIndex(Instance inst,
double x)
Returns the closest attribute index for the given x. |
protected int[] |
findEnclosingAttributeIndices(Instance inst,
double x)
Determines the enclosing attribute indices for the given x value. |
protected InstancePoint |
findInstancePoint(Instance inst,
int index)
Returns the Instance point at the specified position. |
InstancePanel |
getOwner()
Returns the owner. |
protected Object |
isHit(MouseEvent e)
Checks for a hit. |
protected Object |
processHit(MouseEvent e,
Object hit)
Performs the action when a hit is detected. |
| Methods inherited from class adams.gui.visualization.core.plot.AbstractDistanceBasedHitDetector |
|---|
distance, getMinimumPixelDifference, setMinimumPixelDifference |
| Methods inherited from class adams.gui.visualization.core.plot.AbstractHitDetector |
|---|
detect, getDebug, isEnabled, setDebug, setEnabled |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected InstancePanel m_Owner
| Constructor Detail |
|---|
public InstancePointHitDetector(InstancePanel owner)
owner - the panel that uses this detector| Method Detail |
|---|
public InstancePanel getOwner()
protected int[] findEnclosingAttributeIndices(Instance inst,
double x)
inst - the underlying instancex - the x on the plot
protected int findClosestAttributeIndex(Instance inst,
double x)
inst - the underlying Instancex - the x to get the index for
protected InstancePoint findInstancePoint(Instance inst,
int index)
inst - the Instance data structure to searchindex - the attribute index (original dataset)
protected Object isHit(MouseEvent e)
isHit in class AbstractHitDetectore - the MouseEvent (for coordinates)
protected Object processHit(MouseEvent e,
Object hit)
processHit in class AbstractHitDetectore - the MouseEvent (for coordinates)hit - the object that got determined by the hit
public void cleanUp()
cleanUp in interface CleanUpHandlercleanUp in class AbstractHitDetector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||