This commit is contained in:
gac-S_Changer
2018-08-22 08:50:52 +02:00
parent 401d2b10ff
commit b42b1cf988
7 changed files with 133 additions and 27 deletions

View File

@@ -301,6 +301,15 @@ public class BasePlatePanel extends DevicePanel {
}
void selectSample(Sample sample){
if (getDevice().isSelectable()){
sample.setSelected(true);
repaint();
}
Controller.getInstance().onSamplePressed(sample);
}
void onSamplePressed(MouseEvent e, Sample sample){
if (getDevice().isSelectable()){
if (TOGGLE_SELECTION){
@@ -332,6 +341,14 @@ public class BasePlatePanel extends DevicePanel {
}
void selectPuck(Puck puck){
if (getDevice().isSelectable()){
puck.setSelected(true);
repaint();
}
Controller.getInstance().onPuckPressed(puck);
}
void onPuckPressed(MouseEvent e, Puck puck){
if (getDevice().isSelectable()){
if (TOGGLE_SELECTION){