Esempio n. 1
0
  public void setBlock(int idx) {
    model.setBlock(idx);
    lines.setBlock(idx);
    lines.setRowCount(this.getRowCount());

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

    onTableChanged(true);
  }
Esempio n. 13
0
 public void addColumn(String text, int type) {
   model.addColumn(text, type);
 }
Esempio n. 14
0
 public int getFlatRow() {
   return model.toFlatRow(getRow());
 }
Esempio n. 15
0
 public int getColumnCount() {
   return model.getColumnCount();
 }
Esempio n. 16
0
 public int getFlatRowCount() {
   return model.getFlatRowCount();
 }
Esempio n. 17
0
 public int getColumnIndex(String name) {
   return model.getColumnIndex(name);
 }
Esempio n. 18
0
 public void resetFlatValueAt(int row, int col) {
   model.resetFlatValueAt(row, col);
 }
Esempio n. 19
0
 public String getColumnName(int idx) {
   return model.getColumnName(idx);
 }
Esempio n. 20
0
 public void resetCellValue() {
   model.resetValueAt(data.getSelectedRow(), data.getSelectedColumn());
   data.tableChanged(new TableModelEvent(data.getModel(), data.getSelectedRow()));
 }
Esempio n. 21
0
 public int getColumnType(int idx) {
   return model.getColumnType(idx);
 }
Esempio n. 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();
  }
Esempio n. 23
0
 public boolean isReadOnly() {
   return model.isReadOnly();
 }