Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package org.nuiton.jaxx.widgets.status;
/*-
* #%L
* JAXX :: Widgets
* %%
* Copyright (C) 2008 - 2024 Code Lutin, Ultreia.io
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
import java.awt.Color;
import java.awt.Container;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import javax.swing.JComponent;
import javax.swing.Timer;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.nuiton.jaxx.runtime.JAXXBinding;
import org.nuiton.jaxx.runtime.JAXXContext;
import org.nuiton.jaxx.runtime.JAXXObject;
import org.nuiton.jaxx.runtime.JAXXObjectDescriptor;
import org.nuiton.jaxx.runtime.JAXXUtil;
import org.nuiton.jaxx.runtime.context.DefaultJAXXContext;
import org.nuiton.jaxx.runtime.spi.UIHandler;
import org.nuiton.jaxx.runtime.swing.SwingUtil;
public class MemoryStatusWidget extends JComponent implements ActionListener, JAXXObject {
/*-----------------------------------------------------------------------*/
/*---------------- Constants for all javaBean properties ----------------*/
/*-----------------------------------------------------------------------*/
public static final String PROPERTY_PROGRESS_BACKGROUND = "progressBackground";
public static final String PROPERTY_PROGRESS_FOREGROUND = "progressForeground";
public static final String PROPERTY_TIMER = "timer";
/*-----------------------------------------------------------------------*/
/*------------------------- Other static fields -------------------------*/
/*-----------------------------------------------------------------------*/
private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAJ1Tu24TQRS9XmKHOOGRFEgUSEYOBAmYJbURr0QWRA6RMBIRbhh7h/Wa9cwwM4s3TQoKOn6AgpYG5R8iKiQaWv8DUj6BO2PHa9A6PLbYx+yZM+eee+7nH1DUCm4IFRKeREZw0qNpSlTCTdRnZOv+7u5Ou8c6ZpPpjoqkEQpGV8EDrwWLwWRdGyCtBjL5IybfMvljJn9D9KXgjE8R1RpQ1mYvZrrLmDFwbebmjtZ+c4KspTJR47NyVeed9e3d+rDANj94AKlE+XNY9vV/IMiqnmuAFwUGVho9+ob6MeUhilMRD7GgM3ZtI6ZaP6Z99hr2Yb4BJUkVkhm4+V/2ODpHlUoDS6tbE/AtA+u/1zCIgpAZTbShJtFkm/WF2mu6j2ful5SOrGSgaI9WBpat6JToAdZAntq1DLMilQgV0/oB7bwKlUg4ln7WbiB0YNCpWOSh60KxEdr+WUaEgquz7Mb2kqy9mdOFFhRVgssGqrOTZcPxBFGjWFRnx8Ie44BvD/bVp8HR8DgLHoqr/GnXVOyxMVinROsiq+3cKAiJiWJ/m8paCxY0i3Fm3Eysnay8OUaielThOkEsE3lIdRfZivPDwy8XXnw/BV4dyrGgQZ1a/CNYMF10uiviIJV37zlxS4PTeD9vZRoot6c7djughlbaEQ+wyXdSdGrtZKcmwg52jr5+fH/l8NitAupc/ZudmWPF51CKeBxx5mZnPBa5s7IoNUsCkWU+bwoK9lmW49xddPdLuR68/CWHlTSxj8uuCvtWnTD9BJ9QmhcKBQAA";
private static final Logger log = LogManager.getLogger(MemoryStatusWidget.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List