Package net.helipilot50.stocktrade.displayproject.controls

Examples of net.helipilot50.stocktrade.displayproject.controls.TextGraphic$qq_Resolver


     * TextGraphic will never obtain the focus, nor is it opaque.
     * @param text - the text of the JLabel
     * @return the newly created JLabel
     */
    public static TextGraphic newTextGraphic(String text) {
        TextGraphic jl = new TextGraphic(text);
        jl.setFocusable(false);
        // TF:21/11/07:removed the margin from here and added it to the GraphicFactory itself.
        //UIutils.labelWidth(jl);
        return jl;
    }
View Full Code Here


        //UIutils.labelWidth(jl);
        return jl;
    }
   
    public static TextGraphic newTextGraphic() {
      TextGraphic jl = new TextGraphic();
      jl.setFocusable(false);
      return jl;
    }
View Full Code Here

     * TextGraphic will never obtain the focus, nor is it opaque.
     * @param text - the text of the JLabel
     * @return the newly created JLabel
     */
    public static TextGraphic newTextGraphic(int column, int row) {
      TextGraphic jl = newTextGraphic();
      Row.set(jl, row);
      Column.set(jl, column);
      return jl;
    }
View Full Code Here

            int frameWeight,
            int heightPolicy,
            int row,
            int state,
            int widthPolicy ){
      TextGraphic jl = newTextGraphic(column, font, frameWeight, heightPolicy, row, widthPolicy);
        UIutils.setState(jl, state);
        // TF:15/02/2010:Corrected this name to qq_AppData from aa_AppData
        jl.putClientProperty("qq_AppData", appData);


        return jl;
    }
View Full Code Here

            Font font,
            int frameWeight,
            int heightPolicy,
            int row,
            int widthPolicy ){
      TextGraphic jl = newTextGraphic(font);
        Column.set(jl, column);
        FrameWeight.set(jl, frameWeight);
        HeightPolicy.set(jl, heightPolicy);
        Row.set(jl, row);
        WidthPolicy.set(jl, widthPolicy);
View Full Code Here

    public static TextGraphic newTextGraphic(int column,
        Font font,
        int row,
        int state,
        String text) {
      TextGraphic jl = newTextGraphic(text);
      jl.setFont(font);
      Column.set(jl, column);
      Row.set(jl, row);
      WidgetState.set(jl, state);
     
      return jl;
View Full Code Here

   
    public static TextGraphic newTextGraphic(int column,
        Font font,
        int row,
        String text) {
      TextGraphic jl = newTextGraphic(text);
      jl.setFont(font);
      Column.set(jl, column);
      Row.set(jl, row);
     
      return jl;
    }
View Full Code Here

        int gravity,
        Container parent,
        int penColor,
        int row,
        String text) {
      TextGraphic jl = newTextGraphic(text);
      GridCell cell = GridCell.get(jl);
      cell.setCellGravity(gravity);
      cell.setRow(row-1);
      cell.setColumn(column-1);
View Full Code Here

            Dimension areaSize = tc.getPreferredSize();
            int lineSize = areaSize.height / lineCount;
            int visibleLineSize = this.lines * lineSize;
            ((JScrollPane)tc.getParent().getParent()).setPreferredSize(new Dimension(currentSize.width, visibleLineSize));
        } else if (this._component instanceof TextGraphic){
            TextGraphic tg = (TextGraphic)this._component;
            Font font = tg.getFont();
            FontMetrics fm = tg.getFontMetrics(font);
            int lineSize = fm.getHeight();
            Dimension currentSize = tg.getPreferredSize();
            int lineCount = tg.getLineCount();
            tg.setPreferredSize(new Dimension(currentSize.width, (lineSize * lineCount)));
        } else if (this._component instanceof OutlineField) { // CraigM: 15/10/2007
            ((OutlineField)this._component).setVisibleRows(this.lines);
        }
    }
View Full Code Here

            Dimension areaSize = tc.getPreferredSize();
            int lineSize = areaSize.height / lineCount;
            int visibleLineSize = currentSize.height / lineSize;
            return visibleLineSize;
        } else if (comp instanceof TextGraphic){
            TextGraphic tg = (TextGraphic)comp;
            Dimension size = tg.getPreferredSize();
            Font font = tg.getFont();
            FontMetrics fm = tg.getFontMetrics(font);
            int lineSize = fm.getHeight();
            return (int) size.getHeight() / lineSize;
        } else if (comp instanceof OutlineField) { // CraigM: 15/10/2007
            return ((OutlineField)comp).getVisibleRowCount();
        }
View Full Code Here

TOP

Related Classes of net.helipilot50.stocktrade.displayproject.controls.TextGraphic$qq_Resolver

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.