org.netbeans.swing.outline.Outline.columnAtPoint()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(82)

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

Outline.columnAtPoint介绍

暂无

代码示例

代码示例来源:origin: uk.gov.nationalarchives/droid-ui

} else {
  Point mousePoint = e.getPoint();
  int colIndex = resultsOutline.columnAtPoint(mousePoint);
  int rowIndex = resultsOutline.rowAtPoint(mousePoint);
  int colModelIndex = resultsOutline.convertColumnIndexToModel(resultsOutline.columnAtPoint(mousePoint));

代码示例来源:origin: digital-preservation/droid

} else {
  Point mousePoint = e.getPoint();
  int colIndex = resultsOutline.columnAtPoint(mousePoint);
  int rowIndex = resultsOutline.rowAtPoint(mousePoint);
  int colModelIndex = resultsOutline.convertColumnIndexToModel(resultsOutline.columnAtPoint(mousePoint));

代码示例来源:origin: uk.gov.nationalarchives/droid-ui

/**
   * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
   */
  @Override
  public void mouseClicked(MouseEvent e) {
    Point mousePoint = e.getPoint();
    int colIndex = resultsOutline.columnAtPoint(mousePoint);
    int rowIndex = resultsOutline.rowAtPoint(mousePoint);
    int colModelIndex = resultsOutline.convertColumnIndexToModel(resultsOutline.columnAtPoint(mousePoint));
    if (colModelIndex == OutlineColumn.IDENTIFICATION_COUNT.ordinal() + 1) {
      DirectoryComparableLong count = (DirectoryComparableLong) resultsOutline
        .getValueAt(rowIndex, colIndex);
      if (count != null && count.getSource() != null && count.getSource() > 1) {
        int rowModelIndex = resultsOutline.convertRowIndexToModel(rowIndex);
        DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) mdl.getValueAt(rowModelIndex, 0);
        ProfileResourceNode node = (ProfileResourceNode) treeNode.getUserObject();
        multiIdentificationDialog.showDialog(node);
      }
    }
  }
}

代码示例来源:origin: digital-preservation/droid

/**
   * @see java.awt.event.MouseAdapter#mouseClicked(java.awt.event.MouseEvent)
   */
  @Override
  public void mouseClicked(MouseEvent e) {
    Point mousePoint = e.getPoint();
    int colIndex = resultsOutline.columnAtPoint(mousePoint);
    int rowIndex = resultsOutline.rowAtPoint(mousePoint);
    int colModelIndex = resultsOutline.convertColumnIndexToModel(resultsOutline.columnAtPoint(mousePoint));
    if (colModelIndex == OutlineColumn.IDENTIFICATION_COUNT.ordinal() + 1) {
      DirectoryComparableLong count = (DirectoryComparableLong) resultsOutline
        .getValueAt(rowIndex, colIndex);
      if (count != null && count.getSource() != null && count.getSource() > 1) {
        int rowModelIndex = resultsOutline.convertRowIndexToModel(rowIndex);
        DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) mdl.getValueAt(rowModelIndex, 0);
        ProfileResourceNode node = (ProfileResourceNode) treeNode.getUserObject();
        multiIdentificationDialog.showDialog(node);
      }
    }
  }
}

代码示例来源:origin: uk.gov.nationalarchives/droid-ui

final int colIndex = resultsOutline.columnAtPoint(mousePoint);
final int rowIndex = resultsOutline.rowAtPoint(mousePoint);
final int colModelIndex = resultsOutline.convertColumnIndexToModel(
    resultsOutline.columnAtPoint(mousePoint));
final Object cellObject = resultsOutline.getValueAt(rowIndex, colIndex);
if (cellObject != null) {
    DirectoryComparableLong value = (DirectoryComparableLong) 
      resultsOutline.getValueAt(resultsOutline.rowAtPoint(e.getPoint()),
        resultsOutline.columnAtPoint(e.getPoint()));
    if (value.getSource() != null && value.getSource() > 1) {
      setCursor(new Cursor(Cursor.HAND_CURSOR));

代码示例来源:origin: digital-preservation/droid

final int colIndex = resultsOutline.columnAtPoint(mousePoint);
final int rowIndex = resultsOutline.rowAtPoint(mousePoint);
final int colModelIndex = resultsOutline.convertColumnIndexToModel(
    resultsOutline.columnAtPoint(mousePoint));
final Object cellObject = resultsOutline.getValueAt(rowIndex, colIndex);
if (cellObject != null) {
    DirectoryComparableLong value = (DirectoryComparableLong) 
      resultsOutline.getValueAt(resultsOutline.rowAtPoint(e.getPoint()),
        resultsOutline.columnAtPoint(e.getPoint()));
    if (value.getSource() != null && value.getSource() > 1) {
      setCursor(new Cursor(Cursor.HAND_CURSOR));

代码示例来源:origin: org.netbeans.api/org-openide-explorer

int column = view.getOutline().columnAtPoint(p);
log("doDragOver row == " + row + " column == " + column); // NOI18N

相关文章