org.ujmp.core.Matrix.getGUIObject()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(113)

本文整理了Java中org.ujmp.core.Matrix.getGUIObject()方法的一些代码示例,展示了Matrix.getGUIObject()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Matrix.getGUIObject()方法的具体详情如下:
包路径:org.ujmp.core.Matrix
类名称:Matrix
方法名:getGUIObject

Matrix.getGUIObject介绍

暂无

代码示例

代码示例来源:origin: ujmp/universal-java-matrix-package

public MatrixPlot(Matrix m) {
  this((MatrixGUIObject) m.getGUIObject(), false);
}

代码示例来源:origin: ujmp/universal-java-matrix-package

public AbstractMatrixPanel(Matrix m) {
  super(m.getGUIObject());
}

代码示例来源:origin: ujmp/universal-java-matrix-package

public MatrixChartPanel(Matrix m) {
  this((MatrixGUIObject) m.getGUIObject());
}

代码示例来源:origin: org.ujmp/ujmp-jfreechart

public MatrixChartPanel(Matrix m) {
  this((MatrixGUIObject) m.getGUIObject());
}

代码示例来源:origin: org.ujmp/ujmp-jfreechart

public MatrixChartPanel(Matrix m, ChartConfiguration config) {
  this((MatrixGUIObject) m.getGUIObject(), config);
}

代码示例来源:origin: ujmp/universal-java-matrix-package

public AbstractFrame(Matrix matrix, JComponent component) {
  this(matrix.getGUIObject(), component);
}

代码示例来源:origin: ujmp/universal-java-matrix-package

public MatrixChartPanel(Matrix m, ChartConfiguration config) {
  this((MatrixGUIObject) m.getGUIObject(), config);
}

代码示例来源:origin: ujmp/universal-java-matrix-package

public MatrixFrame(Matrix m) {
  this((MatrixGUIObject) m.getGUIObject());
}

代码示例来源:origin: jdmp/java-data-mining-package

public void paintVariableList(Graphics g, List variableList) {
  if (variableList == null)
    return;
  int count = variableList.size();
  if (count == 0)
    return;
  int componentWidth = width / count;
  for (Object o : variableList) {
    if (o != null && o instanceof Variable) {
      Variable v = (Variable) o;
      MatrixHeatmapRenderer.paintMatrix(g, (MatrixGUIObject) v.getLast().getGUIObject(),
          componentWidth, height + PADDINGY + PADDINGY);
      g.translate(componentWidth, 0);
    }
  }
}

代码示例来源:origin: ujmp/universal-java-matrix-package

public Object call() {
    if (guiClass != null && getGUIObject() == null) {
      try {
        Object o = guiClass.newInstance();
        if (o instanceof Matrix) {
          setGUIObject(((Matrix) o).getGUIObject());
        } else {
          setGUIObject((GUIObject) o);
        }
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
    return getGUIObject();
  }
}

代码示例来源:origin: jdmp/java-data-mining-package

jTable.setRowSelectionInterval(row, row);
MatrixGUIObject m = (MatrixGUIObject) ((Matrix) dataModel.getValueAt(
    jTable.getSelectedRow(), 0)).getGUIObject();
MatrixFrame mf = new MatrixFrame(m);
mf.setVisible(true);

代码示例来源:origin: ujmp/universal-java-matrix-package

public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
    int row, int column) {
  if (value instanceof MatrixGUIObject) {
    plotSettings.setMatrixGUIObject((MatrixGUIObject) value);
  } else if (value instanceof Matrix) {
    plotSettings.setMatrixGUIObject((MatrixGUIObject) ((Matrix) value).getGUIObject());
  }
  if (isSelected) {
    plotSettings.setPlotBackGroundColor(table.getSelectionBackground());
  } else {
    plotSettings.setPlotBackGroundColor(new Color(216, 213, 196));
  }
  return this;
}

代码示例来源:origin: jdmp/java-data-mining-package

matrix = (MatrixGUIObject) ((Matrix) value).getGUIObject();
} else {
  matrix = null;

代码示例来源:origin: jdmp/java-data-mining-package

public VariablePanel(VariableGUIObject v) {
  super(v);
  MatrixGUIObject m = (MatrixGUIObject) v.getCoreObject().getAsListMatrix().getGUIObject();

代码示例来源:origin: ujmp/universal-java-matrix-package

public MatrixPopupMenu(JComponent c, MatrixGUIObject matrix, long row, long column) {
    JLabel label = new JLabel();
    label.setForeground(new Color(0, 0, 255));
    List<JComponent> actions = null;

    if (matrix.getRowSelectionModel().isSelectedIndex((int) row)
        && matrix.getColumnSelectionModel().isSelectedIndex((int) column)) {
      int startX = matrix.getColumnSelectionModel().getMinSelectionIndex();
      int endX = matrix.getColumnSelectionModel().getMaxSelectionIndex();
      int startY = matrix.getRowSelectionModel().getMinSelectionIndex();
      int endY = matrix.getRowSelectionModel().getMaxSelectionIndex();
      Matrix subMatrix = matrix.getMatrix().subMatrix(Ret.LINK, startY, startX, endY, endX);
      actions = new MatrixActions(c, (MatrixGUIObject) subMatrix.getGUIObject(), null);
      label.setText(" Selection " + Coordinates.toString(subMatrix.getSize()).replaceAll(",", "x"));
    } else {
      actions = new MatrixActions(c, matrix, null);
      label.setText(" Matrix " + Coordinates.toString("[", "x", "]", matrix.getMatrix().getSize()) + "]");
    }

    add(label);
    add(new JSeparator());

    for (JComponent jc : actions) {
      add(jc);
    }
  }
}

代码示例来源:origin: ujmp/universal-java-matrix-package

public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
    int row, int column) {
  if (value instanceof MatrixGUIObject) {
    matrixGUIObject = (MatrixGUIObject) value;
  } else if (value instanceof Matrix) {
    matrixGUIObject = (MatrixGUIObject) ((Matrix) value).getGUIObject();
  } else {
    matrixGUIObject = null;
  }
  setSize(table.getColumnModel().getColumn(column).getWidth() - 1, table.getRowHeight(row) - 1);
  if (isSelected) {
    super.setForeground(table.getSelectionForeground());
    super.setBackground(table.getSelectionBackground());
    super.setBorder(borderSelected);
  } else {
    super.setForeground(table.getForeground());
    super.setBackground(table.getBackground());
    super.setBorder(null);
  }
  setFont(table.getFont());
  return this;
}

代码示例来源:origin: ujmp/universal-java-matrix-package

public MatrixGUIObject getMatrixObject() {
  MatrixGUIObject m = (MatrixGUIObject) getGUIObject();
  if (m != null) {
    int startRow = m.getRowSelectionModel().getMinSelectionIndex();
    int endRow = m.getRowSelectionModel().getMaxSelectionIndex();
    int startColumn = m.getColumnSelectionModel().getMinSelectionIndex();
    int endColumn = m.getColumnSelectionModel().getMaxSelectionIndex();
    if (startRow != -1 && startColumn != -1) {
      m = (MatrixGUIObject) m.getMatrix().subMatrix(Ret.LINK, startRow, startColumn, endRow, endColumn)
          .getGUIObject();
    }
    return m;
  } else {
    // int min = variable.getRowSelectionModel().getMinSelectionIndex();
    // int max = variable.getRowSelectionModel().getMaxSelectionIndex();
    // Matrix all = new MatrixListToMatrixWrapper(variable);
    //
    // if (min >= 0 && max >= 0) {
    // Matrix selection = all.subMatrix(Ret.LINK, min, 0, max,
    // all.getColumnCount() - 1);
    // return (MatrixGUIObject) selection.getGUIObject();
    // } else {
    // return (MatrixGUIObject) all.getGUIObject();
    // }
  }
  return null;
}

相关文章

Matrix类方法