Examples of AbbreviatingTableLabelingAlgorithm


Examples of gov.nasa.arc.mct.table.model.AbbreviatingTableLabelingAlgorithm

    };
   
    assert identifiers.length == 4;
    assert data.length == 4;

    AbbreviatingTableLabelingAlgorithm algorithm = new AbbreviatingTableLabelingAlgorithm();
    algorithm.setOrientation(TableOrientation.COLUMN_MAJOR);
    algorithm.setContextLabels("Ku_VBSP");

    LabeledTableModel model = new LabeledTableModel(algorithm, TableOrientation.COLUMN_MAJOR) {

      @Override
      public int getObjectCount() {
View Full Code Here

Examples of gov.nasa.arc.mct.table.model.AbbreviatingTableLabelingAlgorithm

  };

  @BeforeMethod
  public void init() {
    MockitoAnnotations.initMocks(this);
    algorithm = new AbbreviatingTableLabelingAlgorithm();
    model = new MockTableModel(identifiers, algorithm);
    table = new LabeledTable(model);
  }
View Full Code Here

Examples of gov.nasa.arc.mct.table.model.AbbreviatingTableLabelingAlgorithm

   * @param vi the view information for this view
   */
  public TableViewManifestation(AbstractComponent component, ViewInfo vi) {
    super(component,vi);

    labelingAlgorithm = new AbbreviatingTableLabelingAlgorithm();
    setLabelingContext(labelingAlgorithm, getNamingContext());
    TableStructure structure = TableViewPolicy
        .getTableStructure(getManifestedComponent());
    model = new ComponentTableModel(structure, labelingAlgorithm, this);
    model.updateLabels();
View Full Code Here

Examples of gov.nasa.arc.mct.table.model.AbbreviatingTableLabelingAlgorithm

 
  @Test
  public void testNamingContext() throws Exception {
    Field f = TableViewManifestation.class.getDeclaredField("labelingAlgorithm");
    f.setAccessible(true);
    f.set(manifestation, new AbbreviatingTableLabelingAlgorithm() {
      @Override
      public void setContextLabels(String... s) { naming = s[0]; }
    });
   
    NamingContext nullContext = Mockito.mock(NamingContext.class);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.