Package javax.swing.plaf

Examples of javax.swing.plaf.ComponentUI


    JTextComponent componentForTransitions = SubstanceCoreUtilities
        .getTextComponentForTransitions(c);

    if (componentForTransitions != null) {
      ComponentUI ui = componentForTransitions.getUI();
      if (ui instanceof Trackable) {
        Trackable trackable = (Trackable) ui;
        ButtonModel transitionModel = trackable.getTransitionModel();
        state = ComponentState.getState(transitionModel,
            componentForTransitions);
View Full Code Here


    // to preserve the full width of the text

    @Override
    public boolean getScrollableTracksViewportWidth() {
        Component parent = getParent();
        ComponentUI myui = getUI();

        return parent != null ? (myui.getPreferredSize(this).width <= parent.getSize().width) : true;
    }
View Full Code Here

        svgGen.setTopLevelGroup(topLevelGroup);
    }


    private static void paintComponent(JComponent cmp, SVGGraphics2D svgGen){
        ComponentUI ui = UIManager.getUI(cmp);
        if(ui != null){
            ui.installUI(cmp);
            ui.update(svgGen, cmp);
        }
    }
View Full Code Here

    public boolean getAutoscrolls() {
        return autoscrolls;
    }

    protected void setUI(ComponentUI newUI) {
        ComponentUI oldUI = ui;
        if (ui != null) {
            ui.uninstallUI(this);
        }
        ui = newUI;
        if (ui != null) {
View Full Code Here

     * Returns a multiplexing UI instance if any of the auxiliary
     * <code>LookAndFeel</code>s supports this UI.  Otherwise, just returns the
     * UI object obtained from the default <code>LookAndFeel</code>.
     */
    public static ComponentUI createUI(JComponent a) {
        ComponentUI mui = new MultiPopupMenuUI();
        return MultiLookAndFeel.createUIs(mui,
                                          ((MultiPopupMenuUI) mui).uis,
                                          a);
    }
View Full Code Here

     * Returns a multiplexing UI instance if any of the auxiliary
     * <code>LookAndFeel</code>s supports this UI.  Otherwise, just returns the
     * UI object obtained from the default <code>LookAndFeel</code>.
     */
    public static ComponentUI createUI(JComponent a) {
        ComponentUI mui = new MultiScrollBarUI();
        return MultiLookAndFeel.createUIs(mui,
                                          ((MultiScrollBarUI) mui).uis,
                                          a);
    }
View Full Code Here

     * Returns a multiplexing UI instance if any of the auxiliary
     * <code>LookAndFeel</code>s supports this UI.  Otherwise, just returns the
     * UI object obtained from the default <code>LookAndFeel</code>.
     */
    public static ComponentUI createUI(JComponent a) {
        ComponentUI mui = new MultiOptionPaneUI();
        return MultiLookAndFeel.createUIs(mui,
                                          ((MultiOptionPaneUI) mui).uis,
                                          a);
    }
View Full Code Here

     * Returns a multiplexing UI instance if any of the auxiliary
     * <code>LookAndFeel</code>s supports this UI.  Otherwise, just returns the
     * UI object obtained from the default <code>LookAndFeel</code>.
     */
    public static ComponentUI createUI(JComponent a) {
        ComponentUI mui = new MultiToolBarUI();
        return MultiLookAndFeel.createUIs(mui,
                                          ((MultiToolBarUI) mui).uis,
                                          a);
    }
View Full Code Here

     * Returns a multiplexing UI instance if any of the auxiliary
     * <code>LookAndFeel</code>s supports this UI.  Otherwise, just returns the
     * UI object obtained from the default <code>LookAndFeel</code>.
     */
    public static ComponentUI createUI(JComponent a) {
        ComponentUI mui = new MultiColorChooserUI();
        return MultiLookAndFeel.createUIs(mui,
                                          ((MultiColorChooserUI) mui).uis,
                                          a);
    }
View Full Code Here

     * Returns a multiplexing UI instance if any of the auxiliary
     * <code>LookAndFeel</code>s supports this UI.  Otherwise, just returns the
     * UI object obtained from the default <code>LookAndFeel</code>.
     */
    public static ComponentUI createUI(JComponent a) {
        ComponentUI mui = new MultiTreeUI();
        return MultiLookAndFeel.createUIs(mui,
                                          ((MultiTreeUI) mui).uis,
                                          a);
    }
View Full Code Here

TOP

Related Classes of javax.swing.plaf.ComponentUI

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.