Package java.awt

Examples of java.awt.Component$ImageParameters$DrawingParameters


        }
    }
   
    public void saveSettings() {
        for (Setting setting : components.keySet()) {
            Component c = components.get(setting);
            Object value = setting.getValue();
           
            if (c instanceof IComponent) {
                value = ((IComponent) c).getValue()
            } else if (c instanceof JTextComponent) {
View Full Code Here


        evenOddColors = b;
    }
   
    @Override
    public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
        Component component = (Component) value;
        component.setFont(DcSettings.getFont(DcRepository.Settings.stSystemFontNormal));
        setElementColor(isSelected, component, index);
        return component;
    }
View Full Code Here

    {
      return value;
    }
    if (value instanceof Component)
    {
      final Component c = (Component) value;
      return new DrawableWrapper(createComponentDrawable(runtime, c));
    }
    if (value instanceof DrawableWrapper)
    {
      return value;
View Full Code Here

    }

    @Override
    public void actionPerformed(ActionEvent e) {
       
        Component top = null;
        Component parent = getParent();
        while (parent != null) {
            parent = parent.getParent();
            top = parent != null ? parent : top;
        }
       
        DatePickerDialog dp;
        if (top != null && top instanceof JFrame)
View Full Code Here

   
    @Override
    public Component getTableCellRendererComponent(
            JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
       
        Component renderer = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
       
        if (((DcTable) table).isIgnoringPaintRequests())
            return renderer;
       
        setHorizontalAlignment(JLabel.LEFT);
View Full Code Here

    @Override
    public Component getTableCellRendererComponent(
            JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {

        Component renderer = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
        setHorizontalAlignment(JLabel.RIGHT); // Reset right justify again
       
        if (value instanceof Long) {
            String s = Utilities.toFileSizeString((Long) value);
            setText(s);
View Full Code Here

   
    @Override
    public Component getTableCellRendererComponent(
            JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {

        Component renderer = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
       
        if (sdf == null)
      sdf = new SimpleDateFormat("yyyy-MM-dd");
       
        if (value instanceof Date) {
View Full Code Here

   
    @Override
    public Component getTableCellRendererComponent(
            JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
       
        Component renderer = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
       
        if (((DcTable) table).isIgnoringPaintRequests())
            return renderer;
       
        setHorizontalAlignment(JLabel.RIGHT); // Reset right justify again
View Full Code Here

            GeneratorLoader gl = (GeneratorLoader) it.next();
            String prettyName = gl.getPrettyName();
            comboBoxItems[count++] = prettyName;

            Component glGui = gl.getGUI();
            if (glGui == null) {
                glGui = new JLabel("No options available.");
            }

            cards.add(glGui, prettyName);
View Full Code Here

            gridbag.setConstraints(gotoButton, c);
            bfPanel.add(gotoButton);

            while (it.hasNext()) {
                Layer layer = (Layer) it.next();
                Component layerGUI = layer.getGUI();
                if (layerGUI != null) {
                    tabs.addTab(layer.getName(), layerGUI);
                } else {
                    tabs.addTab(layer.getName(), getEmptyGUIFiller(layer));
                }
View Full Code Here

TOP

Related Classes of java.awt.Component$ImageParameters$DrawingParameters

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.