-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Feature Table Selection from Loading Plot dblclick
Signed-off-by: Lorenz Gerber <[email protected]>
- Loading branch information
1 parent
a1c29af
commit 8521d6f
Showing
4 changed files
with
226 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
....supplier.pca/src/org/eclipse/chemclipse/xxd/process/supplier/pca/model/FeatureDelta.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Lablicate GmbH. | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Lorenz Gerber - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.chemclipse.xxd.process.supplier.pca.model; | ||
|
||
import java.util.Objects; | ||
|
||
public class FeatureDelta { | ||
|
||
private Feature feature = null; | ||
private double deltaX = 0; | ||
private double deltaY = 0; | ||
|
||
public FeatureDelta(Feature feature, double deltaX, double deltaY) { | ||
|
||
this.feature = feature; | ||
this.deltaX = deltaX; | ||
this.deltaY = deltaY; | ||
} | ||
|
||
public Feature getFeature() { | ||
|
||
return feature; | ||
} | ||
|
||
public double getDeltaX() { | ||
|
||
return deltaX; | ||
} | ||
|
||
public double getDeltaY() { | ||
|
||
return deltaY; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
|
||
return Objects.hash(feature); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
|
||
if(this == obj) | ||
return true; | ||
if(obj == null) | ||
return false; | ||
if(getClass() != obj.getClass()) | ||
return false; | ||
FeatureDelta other = (FeatureDelta)obj; | ||
return Objects.equals(feature, other.feature); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
|
||
return "FeatureDelta [featurePCA=" + feature + ", deltaX=" + deltaX + ", deltaY=" + deltaY + "]"; | ||
} | ||
} |