示例#1
0
  public void setBlock(int idx) {
    model.setBlock(idx);
    lines.setBlock(idx);
    lines.setRowCount(this.getRowCount());

    onTableChanged(true);
  }
示例#2
0
 Object[] getValues(Long rid) {
   return model.getValues(rid);
 }
示例#3
0
 public Object[] getFlatValues(int row) {
   return model.getFlatValues(row);
 }
示例#4
0
 Object[] getValues(int row) {
   return model.getValues(row);
 }
示例#5
0
 public void addRow(Object[] rowdata, boolean newrow) {
   model.addRow(rowdata, newrow);
   lines.setRowCount(this.getRowCount());
 }
示例#6
0
 private void endTag(TagWriter writer) throws IOException {
   closingPolicy.endTag(writer, tagName);
 }
示例#7
0
 public void setFlatValueAt(Object aValue, int row, int col) {
   model.setFlatValueAt(aValue, row, col);
 }
示例#8
0
 public Object getFlatValueAt(int row, int col) {
   return model.getFlatValueAt(row, col);
 }
示例#9
0
 public ContentChanges getChanges() {
   return model.getChanges();
 }
示例#10
0
 public int getBlock() {
   return model.getBlock();
 }
示例#11
0
 public int getBlockCount() {
   return model.getBlockCount();
 }
示例#12
0
  public void insertRow(int row) {
    model.insertRow(row);
    lines.setRowCount(this.getRowCount());

    onTableChanged(true);
  }
示例#13
0
 public void addColumn(String text, int type) {
   model.addColumn(text, type);
 }
示例#14
0
 public int getFlatRow() {
   return model.toFlatRow(getRow());
 }
示例#15
0
 public int getColumnCount() {
   return model.getColumnCount();
 }
示例#16
0
 public int getFlatRowCount() {
   return model.getFlatRowCount();
 }
示例#17
0
 public int getColumnIndex(String name) {
   return model.getColumnIndex(name);
 }
示例#18
0
 public void resetFlatValueAt(int row, int col) {
   model.resetFlatValueAt(row, col);
 }
示例#19
0
 public String getColumnName(int idx) {
   return model.getColumnName(idx);
 }
示例#20
0
 public void resetCellValue() {
   model.resetValueAt(data.getSelectedRow(), data.getSelectedColumn());
   data.tableChanged(new TableModelEvent(data.getModel(), data.getSelectedRow()));
 }
示例#21
0
 public int getColumnType(int idx) {
   return model.getColumnType(idx);
 }
示例#22
0
  @Override
  public void start(Stage stage) throws Exception {

    this.mainBorderPane = new BorderPane();

    FlowPane toolbar = new FlowPane();

    Button btnClear = new Button("Clear");

    btnClear.setOnAction(
        event -> {
          root.getChildren().clear();
        });
    Button btnLoadFtof = new Button("FTOF");

    btnLoadFtof.setOnAction(
        event -> {
          loadDetector("FTOF");
        });

    toolbar.getChildren().add(btnClear);
    toolbar.getChildren().add(btnLoadFtof);

    SplitPane splitPane = new SplitPane();
    StackPane treePane = new StackPane();

    root = new Group();
    BorderPane pane = new BorderPane();

    treeView = new TreeView<String>();

    treePane.getChildren().add(treeView);

    this.content = new ContentModel(800, 800, 200);
    this.content.setContent(root);

    content.getSubScene().heightProperty().bind(pane.heightProperty());
    content.getSubScene().widthProperty().bind(pane.widthProperty());

    pane.setCenter(content.getSubScene());
    mainBorderPane.setTop(toolbar);
    splitPane.getItems().addAll(treePane, pane);
    splitPane.setDividerPositions(0.2);

    // this.addDetector("FTOF");
    // this.test();
    this.testFTOF();
    // this.testDC();
    // this.testBST();
    // final Scene scene = new Scene(pane, 880, 880, true);
    this.mainBorderPane.setCenter(splitPane);
    HBox statusPane = new HBox();

    ColorPicker colorPicker = new ColorPicker();
    colorPicker.setOnAction(
        new EventHandler() {
          @Override
          public void handle(Event event) {
            content.setBackgroundColor(colorPicker.getValue());
          }
        });
    statusPane.getChildren().add(colorPicker);
    this.mainBorderPane.setBottom(statusPane);

    final Scene scene = new Scene(mainBorderPane, 1280, 880, true);

    scene.setFill(Color.ALICEBLUE);
    stage.setTitle("CLAS12 Geometry Viewer - JavaFX3D");
    stage.setScene(scene);
    stage.show();
  }
示例#23
0
 public boolean isReadOnly() {
   return model.isReadOnly();
 }