コード例 #1
0
  /**
   * Take the snapshot of current cluster
   *
   * @return
   */
  public RenderedImage SnapShotCluster() {
    BufferedImage bufferedImage =
        new BufferedImage(
            _clusterArea.getWidth(), _clusterArea.getHeight(), BufferedImage.TYPE_INT_RGB);

    // Create a graphics contents on the buffered image
    Graphics2D g2d = bufferedImage.createGraphics();

    _clusterArea.paint(g2d);

    return bufferedImage;
  }
コード例 #2
0
 public void SetDisplayAxis(boolean choice) {
   _displayAxis = choice;
   _clusterArea.repaint();
 }
コード例 #3
0
 /**
  * Should I display the outliner
  *
  * @param choice
  */
 public void SetDisplayOutliner(boolean choice) {
   _displayOutliner = choice;
   _clusterArea.repaint();
 }