Package com.projity.graphic.configuration

Examples of com.projity.graphic.configuration.GraphicConfiguration


    }
  }
 
 
  public void updateBounds(){     
    GraphicConfiguration config=GraphicConfiguration.getInstance();
   
    Point2D origin=new Point2D.Double(config.getTreeXOffset(),config.getTreeYOffset());
    Rectangle2D ref=new Rectangle2D.Double(config.getTreeXOffset(),config.getTreeYOffset(),config.getTreeCellWidth(),config.getTreeCellHeight());
    setEmpty();
    dependencies.clear();
   
    bounds.setFrame(0.0,0.0,0.0,0.0);
   
View Full Code Here


  }
 
  public void updateBounds(){
      dependencyGraph.updatePertLevels();
     
    GraphicConfiguration config=GraphicConfiguration.getInstance();
   
    Point2D origin=new Point2D.Double(config.getPertXOffset(),config.getPertYOffset());
    Rectangle2D ref=new Rectangle2D.Double(config.getPertXOffset(),config.getPertYOffset(),config.getPertCellWidth(),config.getPertCellHeight());
    int row=0;
    int col=-1;
    setEmpty();
    for (Iterator i=cache.getIterator();i.hasNext();){
        GraphicNode current=(GraphicNode)i.next();
View Full Code Here

  }

  protected void initModel(){


    GraphicConfiguration config=GraphicConfiguration.getInstance();
    setRowHeight(config.getRowHeight());
    setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    setCellSelectionEnabled(true);
    //setRowSelectionAllowed(true);
    //setColumnSelectionAllowed(true);
  }
View Full Code Here

    super();
  }
 
  public void addColumn(TableColumn tc){
    if (columnIndex==0){
      GraphicConfiguration config=GraphicConfiguration.getInstance();
      int w=config.getRowHeaderWidth();
      tc.setMinWidth(w);
      tc.setMaxWidth(w);
      tc.setResizable(false);
      tc.setCellRenderer(new SpreadSheetRowHeaderRenderer());
      tc.setCellEditor(null);
View Full Code Here



  public void updateSize(){
    Rectangle bounds=((NetworkModel)getModel()).getBounds();
    GraphicConfiguration config=GraphicConfiguration.getInstance();
    setPreferredSize(new Dimension(bounds.x+bounds.width+config.getPertXOffset(),bounds.y+bounds.height+config.getPertYOffset()));
  }
View Full Code Here



  public Rectangle getDrawingBounds() {
    Rectangle bounds=networkLayout.getBounds();
    GraphicConfiguration config=GraphicConfiguration.getInstance();
    return new Rectangle(bounds.x+bounds.width+config.getPertXOffset(),bounds.y+bounds.height+config.getPertYOffset());
  }
View Full Code Here

  protected void registerEditors(){
    registerEditors(false);
  }
  protected void registerEditors(boolean compact){
    if (editorsRegistered) return;
    GraphicConfiguration config=GraphicConfiguration.getInstance();
   
    //Modify here to register a custom editor
    //all the types used have to be registered here
    setAdaptedRenderer(String.class,new SimpleRenderer());
    setAdaptedEditor(String.class,new SimpleEditor(String.class));
View Full Code Here

    registerEditors(); //Consume memory
    initRowHeader(spreadSheetModel);
    initModel();
    initListeners();

    GraphicConfiguration config = GraphicConfiguration.getInstance();
    //fix for substance
    setTableHeader(createDefaultTableHeader());
    JTableHeader header = getTableHeader();
    header.setPreferredSize(new Dimension((int) header.getPreferredSize().getWidth(), config.getColumnHeaderHeight()));
    header.addMouseListener(new HeaderMouseListener(this));

   

    addMouseListener(new MouseAdapter() {
View Full Code Here

  protected void initRowHeader(CommonSpreadSheetModel spreadSheetModel){
    rowHeader.setModel(spreadSheetModel,new TimeSpreadSheetRowHeaderColumnModel());
    rowHeader.createDefaultColumnsFromModel();

    GraphicConfiguration config=GraphicConfiguration.getInstance();
    rowHeader.setRowHeight(config.getRowHeight());

  }
View Full Code Here

   
    Dimension d=spreadSheet.getPreferredSize();
    Dimension enclosing=new Dimension();
   
    //big awful hack to remove
    GraphicConfiguration config=GraphicConfiguration.getInstance();
    int rowHeaderWidth=config.getRowHeaderWidth() + spreadSheet.getRowMargin()*2; //should be rowHeader's one
   
//    TableColumnModel tm=spreadSheet.getColumnModel();
//    int w=tm.getTotalColumnWidth();
   
    enclosing.setSize(d.getWidth()/*+rowHeaderWidth*/,d.getHeight());
 
View Full Code Here

TOP

Related Classes of com.projity.graphic.configuration.GraphicConfiguration

Copyright © 2018 www.massapicom. 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.