Examples of TimeFormat


Examples of com.tagtraum.perf.gcviewer.util.TimeFormat

    private void initialiseFormatters() {
    pauseFormatter = NumberFormat.getInstance();
    pauseFormatter.setMaximumFractionDigits(5);

    totalTimeFormatter = new TimeFormat();
   
    gcTimeFormatter = NumberFormat.getInstance();
    gcTimeFormatter.setMaximumFractionDigits(2);

    throughputFormatter = NumberFormat.getInstance();
View Full Code Here

Examples of com.tagtraum.perf.gcviewer.util.TimeFormat

    public ModelPanel() {
        //setBorder(new TitledBorder(LocalisationHelper.getString("data_panel_title")));
        pauseFormatter = NumberFormat.getInstance();
        pauseFormatter.setMaximumFractionDigits(5);

        totalTimeFormatter = new TimeFormat();

        gcTimeFormatter = NumberFormat.getInstance();
        gcTimeFormatter.setMaximumFractionDigits(2);

        throughputFormatter = NumberFormat.getInstance();
View Full Code Here

Examples of com.tagtraum.perf.gcviewer.util.TimeFormat

        rowHeaderPanel.add(pauseRuler);
        setRowHeaderView(rowHeaderPanel);
        setCorner(JScrollPane.UPPER_LEFT_CORNER, new JPanel());
        setCorner(JScrollPane.LOWER_LEFT_CORNER, new JPanel());

        DateFormat dateFormatter = new TimeFormat();
        this.timestampRuler = new Ruler(false, 0, model.getRunningTime(), "", dateFormatter);
        setColumnHeaderView(timestampRuler);

        getViewport().addComponentListener(new ComponentListener() {
            public void componentResized(ComponentEvent e) {
View Full Code Here

Examples of com.vaadin.ui.Calendar.TimeFormat

            calendarComponent.setEndDate(calendar.getTime());
        }
    }

    private void updateCalendarFormat(Object format) {
        TimeFormat calFormat = null;
        if (format instanceof TimeFormat) {
            calFormat = (TimeFormat) format;
        }

        calendarComponent.setTimeFormat(calFormat);
View Full Code Here

Examples of com.vaadin.ui.Calendar.TimeFormat

            calendarComponent.setEndDate(calendar.getTime());
        }
    }

    private void updateCalendarFormat(Object format) {
        TimeFormat calFormat = null;
        if (format instanceof TimeFormat) {
            calFormat = (TimeFormat) format;
        }

        calendarComponent.setTimeFormat(calFormat);
View Full Code Here

Examples of de.sciss.gui.TimeFormat

  {
    super( new BorderLayout() );

    setBorder( new RoundedBorder( background ));
   
    frmt  = new TimeFormat( 0, null, null, 3, Locale.US );
    lb    = new Label();
    add( lb, BorderLayout.CENTER );
    lb.setOpaque( true );
    lb.setBackground( background );
//    lb.setBackground( new Color( background.getRed(), background.getGreen(), background.getBlue(), 0x7F ));
View Full Code Here

Examples of de.sciss.gui.TimeFormat

  {
    super( new BorderLayout() );

    setBorder( new RoundedBorder( background ));
   
    frmt  = new TimeFormat( 0, null, null, 3, Locale.US );
    lb    = new Label();
    add( lb, BorderLayout.CENTER );
    lb.setOpaque( true );
    lb.setBackground( background );
//    lb.setBackground( new Color( background.getRed(), background.getGreen(), background.getBlue(), 0x7F ));
View Full Code Here

Examples of de.sciss.gui.TimeFormat

   
    final Container          c    = this;
    JPanel              padPanel1, padPanel2;
    final de.sciss.app.Application  app    = AbstractApplication.getApplication();
   
    msgCursorTime  = new TimeFormat( 0, app.getResourceString( "simpleTrnsEditTimePrefix" ), null, 3, Locale.US );
    msgCursorX    = new MessageFormat( app.getResourceString( "simpleTrnsEditXMsg" ), Locale.US );   // XXX
    msgCursorY    = new MessageFormat( app.getResourceString( "simpleTrnsEditYMsg" ), Locale.US );   // XXX

//    setOpaque( false );
View Full Code Here

Examples of org.gephi.attribute.api.TimeFormat

   
    public void setup(DynamicStatistics dynamicStatistics) {
        GraphController graphController = Lookup.getDefault().lookup(GraphController.class);
        GraphModel graphModel = graphController.getGraphModel();
        AttributeModel attributeModel = graphController.getAttributeModel();
        TimeFormat timeFormat = attributeModel.getTimeFormat();

        //Bounds
        bounds = dynamicStatistics.getBounds();
        if (bounds == null) {
            bounds = graphModel.getTimeBoundsVisible();
        }
        String boundsStr = timeFormat.print(bounds.getLow())+" - "+timeFormat.print(bounds.getHigh());
        currentIntervalLabel.setText(boundsStr);

        //TimeUnit
        if (timeFormat.equals(TimeFormat.DOUBLE)) {
            windowTimeUnitCombo.setVisible(false);
            tickTimeUnitCombo.setVisible(false);
        }

        //Set latest selected item
        if (!timeFormat.equals(TimeFormat.DOUBLE)) {
            loadDefaultTimeUnits();
        }

        //Window and tick
        double initValue = 0.;
        if(bounds.getHigh() - bounds.getLow() > 1) {
            initValue = 1.;
        }
        if (timeFormat.equals(TimeFormat.DOUBLE)) {
            windowTextField.setText(initValue + "");
            tickTextField.setText(initValue + "");
        } else {
            windowTextField.setText("" + windowTimeUnit.convert((long) initValue, TimeUnit.MILLISECONDS));
            tickTextField.setText("" + tickTimeUnit.convert((long) initValue, TimeUnit.MILLISECONDS));
View Full Code Here

Examples of org.jwall.tools.TimeFormat

            setIcon( WebPolicyEditor.getIcon( "org.jwall.web.policy.CheckToken" ) );
        }

        if( arg1.getType() == TreeNode.CREATE_TOKEN_NODE ){
            CreateToken ct = (CreateToken) arg1;
            TimeFormat fmt = new TimeFormat();
            StringBuffer s = new StringBuffer( "<html>Create Token: <i>" );
            s.append( ct.getToken() );

            if( ct.getValue() != null ){
                s.append( "</i>, value: " );
                s.append( ct.getValue() );
            }
           
            s.append( "</i>, expires: <i>" );
            s.append( fmt.format( ct.getLifeTime().longValue() ) );
            s.append( "</i></html>" );
            setText( s.toString() );
            setIcon( WebPolicyEditor.getIcon( "org.jwall.web.policy.CreateToken" ) );
        }
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.