@Override
    public void getOptions() {
        for (Component p : getParent().getComponents()) {
            if (p instanceof OptionsPanel) {
                matrixOn = ((OptionsPanel) p).isMatrixOn();
                type = ((OptionsPanel) p).getType();
            }
        }

        if (matrixOn) {
            startMatrix();
        } else {
            stopMatrix();
        }
    }