Java Code Examples for com.sun.java.swing.plaf.gtk.GTKConstants.ArrowType

The following examples show how to use com.sun.java.swing.plaf.gtk.GTKConstants.ArrowType. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: jdk8u-jdk   Source File: GTKPainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
void paintMetacityElement(SynthContext context, Graphics g,
        int gtkState, String detail, int x, int y, int w, int h,
        ShadowType shadow, ArrowType direction) {
    synchronized (UNIXToolkit.GTK_LOCK) {
        if (! ENGINE.paintCachedImage(
                g, x, y, w, h, gtkState, detail, shadow, direction)) {
            ENGINE.startPainting(
                    g, x, y, w, h, gtkState, detail, shadow, direction);
            if (detail == "metacity-arrow") {
                ENGINE.paintArrow(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, direction, "", x, y, w, h);

            } else if (detail == "metacity-box") {
                ENGINE.paintBox(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, "", x, y, w, h);

            } else if (detail == "metacity-vline") {
                ENGINE.paintVline(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, "", x, y, w, h);
            }
            ENGINE.finishPainting();
        }
    }
}
 
Example 2
Source Project: dragonwell8_jdk   Source File: GTKPainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
void paintMetacityElement(SynthContext context, Graphics g,
        int gtkState, String detail, int x, int y, int w, int h,
        ShadowType shadow, ArrowType direction) {
    synchronized (UNIXToolkit.GTK_LOCK) {
        if (! ENGINE.paintCachedImage(
                g, x, y, w, h, gtkState, detail, shadow, direction)) {
            ENGINE.startPainting(
                    g, x, y, w, h, gtkState, detail, shadow, direction);
            if (detail == "metacity-arrow") {
                ENGINE.paintArrow(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, direction, "", x, y, w, h);

            } else if (detail == "metacity-box") {
                ENGINE.paintBox(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, "", x, y, w, h);

            } else if (detail == "metacity-vline") {
                ENGINE.paintVline(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, "", x, y, w, h);
            }
            ENGINE.finishPainting();
        }
    }
}
 
Example 3
Source Project: dragonwell8_jdk   Source File: GTKPainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void paintMenuArrowIcon(SynthContext context, Graphics g,
        int state, int x, int y, int w, int h, ArrowType dir) {
    int gtkState = GTKLookAndFeel.synthStateToGTKState(
            context.getRegion(), state);
    ShadowType shadow = ShadowType.OUT;
    if (gtkState == SynthConstants.MOUSE_OVER) {
        shadow = ShadowType.IN;
    }
    if (!GTKLookAndFeel.is3()) {
        x += 3;
        y += 3;
        w = h = 7;
    }
    ENGINE.paintArrow(g, context, Region.MENU_ITEM, gtkState, shadow,
            dir, "menuitem", x, y, w, h);
}
 
Example 4
Source Project: TencentKona-8   Source File: GTKPainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void paintMenuArrowIcon(SynthContext context, Graphics g,
        int state, int x, int y, int w, int h, ArrowType dir) {
    int gtkState = GTKLookAndFeel.synthStateToGTKState(
            context.getRegion(), state);
    ShadowType shadow = ShadowType.OUT;
    if (gtkState == SynthConstants.MOUSE_OVER) {
        shadow = ShadowType.IN;
    }
    if (!GTKLookAndFeel.is3()) {
        x += 3;
        y += 3;
        w = h = 7;
    }
    ENGINE.paintArrow(g, context, Region.MENU_ITEM, gtkState, shadow,
            dir, "menuitem", x, y, w, h);
}
 
Example 5
Source Project: jdk8u_jdk   Source File: GTKPainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void paintMenuArrowIcon(SynthContext context, Graphics g,
        int state, int x, int y, int w, int h, ArrowType dir) {
    int gtkState = GTKLookAndFeel.synthStateToGTKState(
            context.getRegion(), state);
    ShadowType shadow = ShadowType.OUT;
    if (gtkState == SynthConstants.MOUSE_OVER) {
        shadow = ShadowType.IN;
    }
    if (!GTKLookAndFeel.is3()) {
        x += 3;
        y += 3;
        w = h = 7;
    }
    ENGINE.paintArrow(g, context, Region.MENU_ITEM, gtkState, shadow,
            dir, "menuitem", x, y, w, h);
}
 
Example 6
Source Project: jdk8u60   Source File: GTKPainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
void paintMetacityElement(SynthContext context, Graphics g,
        int gtkState, String detail, int x, int y, int w, int h,
        ShadowType shadow, ArrowType direction) {
    synchronized (UNIXToolkit.GTK_LOCK) {
        if (! ENGINE.paintCachedImage(
                g, x, y, w, h, gtkState, detail, shadow, direction)) {
            ENGINE.startPainting(
                    g, x, y, w, h, gtkState, detail, shadow, direction);
            if (detail == "metacity-arrow") {
                ENGINE.paintArrow(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, direction, "", x, y, w, h);

            } else if (detail == "metacity-box") {
                ENGINE.paintBox(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, "", x, y, w, h);

            } else if (detail == "metacity-vline") {
                ENGINE.paintVline(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, "", x, y, w, h);
            }
            ENGINE.finishPainting();
        }
    }
}
 
Example 7
Source Project: openjdk-jdk8u   Source File: GTKPainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
void paintMetacityElement(SynthContext context, Graphics g,
        int gtkState, String detail, int x, int y, int w, int h,
        ShadowType shadow, ArrowType direction) {
    synchronized (UNIXToolkit.GTK_LOCK) {
        if (! ENGINE.paintCachedImage(
                g, x, y, w, h, gtkState, detail, shadow, direction)) {
            ENGINE.startPainting(
                    g, x, y, w, h, gtkState, detail, shadow, direction);
            if (detail == "metacity-arrow") {
                ENGINE.paintArrow(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, direction, "", x, y, w, h);

            } else if (detail == "metacity-box") {
                ENGINE.paintBox(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, "", x, y, w, h);

            } else if (detail == "metacity-vline") {
                ENGINE.paintVline(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, "", x, y, w, h);
            }
            ENGINE.finishPainting();
        }
    }
}
 
Example 8
void paintMetacityElement(SynthContext context, Graphics g,
        int gtkState, String detail, int x, int y, int w, int h,
        ShadowType shadow, ArrowType direction) {
    synchronized (UNIXToolkit.GTK_LOCK) {
        if (! ENGINE.paintCachedImage(
                g, x, y, w, h, gtkState, detail, shadow, direction)) {
            ENGINE.startPainting(
                    g, x, y, w, h, gtkState, detail, shadow, direction);
            if (detail == "metacity-arrow") {
                ENGINE.paintArrow(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, direction, "", x, y, w, h);

            } else if (detail == "metacity-box") {
                ENGINE.paintBox(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, "", x, y, w, h);

            } else if (detail == "metacity-vline") {
                ENGINE.paintVline(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, "", x, y, w, h);
            }
            ENGINE.finishPainting();
        }
    }
}
 
Example 9
Source Project: Bytecoder   Source File: GTKPainter.java    License: Apache License 2.0 6 votes vote down vote up
void paintMetacityElement(SynthContext context, Graphics g,
        int gtkState, String detail, int x, int y, int w, int h,
        ShadowType shadow, ArrowType direction) {
    synchronized (UNIXToolkit.GTK_LOCK) {
        if (! ENGINE.paintCachedImage(
                g, x, y, w, h, gtkState, detail, shadow, direction)) {
            ENGINE.startPainting(
                    g, x, y, w, h, gtkState, detail, shadow, direction);
            if (detail == "metacity-arrow") {
                ENGINE.paintArrow(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, direction, "", x, y, w, h);

            } else if (detail == "metacity-box") {
                ENGINE.paintBox(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, "", x, y, w, h);

            } else if (detail == "metacity-vline") {
                ENGINE.paintVline(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, "", x, y, w, h);
            }
            ENGINE.finishPainting();
        }
    }
}
 
Example 10
Source Project: openjdk-jdk9   Source File: GTKPainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
void paintMetacityElement(SynthContext context, Graphics g,
        int gtkState, String detail, int x, int y, int w, int h,
        ShadowType shadow, ArrowType direction) {
    synchronized (UNIXToolkit.GTK_LOCK) {
        if (! ENGINE.paintCachedImage(
                g, x, y, w, h, gtkState, detail, shadow, direction)) {
            ENGINE.startPainting(
                    g, x, y, w, h, gtkState, detail, shadow, direction);
            if (detail == "metacity-arrow") {
                ENGINE.paintArrow(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, direction, "", x, y, w, h);

            } else if (detail == "metacity-box") {
                ENGINE.paintBox(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, "", x, y, w, h);

            } else if (detail == "metacity-vline") {
                ENGINE.paintVline(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, "", x, y, w, h);
            }
            ENGINE.finishPainting();
        }
    }
}
 
Example 11
Source Project: openjdk-jdk9   Source File: GTKPainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void paintMenuArrowIcon(SynthContext context, Graphics g,
        int state, int x, int y, int w, int h, ArrowType dir) {
    int gtkState = GTKLookAndFeel.synthStateToGTKState(
            context.getRegion(), state);
    ShadowType shadow = ShadowType.OUT;
    if (gtkState == SynthConstants.MOUSE_OVER) {
        shadow = ShadowType.IN;
    }
    if (!GTKLookAndFeel.is3()) {
        x += 3;
        y += 3;
        w = h = 7;
    }
    ENGINE.paintArrow(g, context, Region.MENU_ITEM, gtkState, shadow,
            dir, "menuitem", x, y, w, h);
}
 
Example 12
Source Project: jdk8u-jdk   Source File: GTKPainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
void paintMetacityElement(SynthContext context, Graphics g,
        int gtkState, String detail, int x, int y, int w, int h,
        ShadowType shadow, ArrowType direction) {
    synchronized (UNIXToolkit.GTK_LOCK) {
        if (! ENGINE.paintCachedImage(
                g, x, y, w, h, gtkState, detail, shadow, direction)) {
            ENGINE.startPainting(
                    g, x, y, w, h, gtkState, detail, shadow, direction);
            if (detail == "metacity-arrow") {
                ENGINE.paintArrow(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, direction, "", x, y, w, h);

            } else if (detail == "metacity-box") {
                ENGINE.paintBox(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, "", x, y, w, h);

            } else if (detail == "metacity-vline") {
                ENGINE.paintVline(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, "", x, y, w, h);
            }
            ENGINE.finishPainting();
        }
    }
}
 
Example 13
Source Project: jdk8u-dev-jdk   Source File: GTKPainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
void paintMetacityElement(SynthContext context, Graphics g,
        int gtkState, String detail, int x, int y, int w, int h,
        ShadowType shadow, ArrowType direction) {
    synchronized (UNIXToolkit.GTK_LOCK) {
        if (! ENGINE.paintCachedImage(
                g, x, y, w, h, gtkState, detail, shadow, direction)) {
            ENGINE.startPainting(
                    g, x, y, w, h, gtkState, detail, shadow, direction);
            if (detail == "metacity-arrow") {
                ENGINE.paintArrow(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, direction, "", x, y, w, h);

            } else if (detail == "metacity-box") {
                ENGINE.paintBox(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, "", x, y, w, h);

            } else if (detail == "metacity-vline") {
                ENGINE.paintVline(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, "", x, y, w, h);
            }
            ENGINE.finishPainting();
        }
    }
}
 
Example 14
Source Project: hottub   Source File: GTKPainter.java    License: GNU General Public License v2.0 6 votes vote down vote up
void paintMetacityElement(SynthContext context, Graphics g,
        int gtkState, String detail, int x, int y, int w, int h,
        ShadowType shadow, ArrowType direction) {
    synchronized (UNIXToolkit.GTK_LOCK) {
        if (! ENGINE.paintCachedImage(
                g, x, y, w, h, gtkState, detail, shadow, direction)) {
            ENGINE.startPainting(
                    g, x, y, w, h, gtkState, detail, shadow, direction);
            if (detail == "metacity-arrow") {
                ENGINE.paintArrow(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, direction, "", x, y, w, h);

            } else if (detail == "metacity-box") {
                ENGINE.paintBox(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, shadow, "", x, y, w, h);

            } else if (detail == "metacity-vline") {
                ENGINE.paintVline(g, context, Region.INTERNAL_FRAME_TITLE_PANE,
                        gtkState, "", x, y, w, h);
            }
            ENGINE.finishPainting();
        }
    }
}
 
Example 15
Source Project: openjdk-8   Source File: GTKIconFactory.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void paintIcon(SynthContext context, Graphics g, int x, int y,
                      int w, int h) {
    if (context != null) {
        ArrowType arrowDir = ArrowType.RIGHT;
        if (!context.getComponent().getComponentOrientation().isLeftToRight()) {
            arrowDir = ArrowType.LEFT;
        }
        GTKPainter.INSTANCE.paintIcon(context, g,
                getMethod(), x, y, w, h, arrowDir);
    }
}
 
Example 16
Source Project: jdk1.8-source-analysis   Source File: GTKIconFactory.java    License: Apache License 2.0 5 votes vote down vote up
public void paintIcon(SynthContext context, Graphics g, int x, int y,
                      int w, int h) {
    if (context != null) {
        ArrowType arrowDir = ArrowType.RIGHT;
        if (!context.getComponent().getComponentOrientation().isLeftToRight()) {
            arrowDir = ArrowType.LEFT;
        }
        GTKPainter.INSTANCE.paintIcon(context, g,
                getMethod(), x, y, w, h, arrowDir);
    }
}
 
Example 17
Source Project: openjdk-8   Source File: GTKEngine.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void paintArrow(Graphics g, SynthContext context,
        Region id, int state, ShadowType shadowType, ArrowType direction,
        String detail, int x, int y, int w, int h) {

    state = GTKLookAndFeel.synthStateToGTKStateType(state).ordinal();
    int widget = getWidgetType(context.getComponent(), id).ordinal();
    native_paint_arrow(widget, state, shadowType.ordinal(),
            detail, x - x0, y - y0, w, h, direction.ordinal());
}
 
Example 18
Source Project: dragonwell8_jdk   Source File: GTKEngine.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void paintArrow(Graphics g, SynthContext context,
        Region id, int state, ShadowType shadowType, ArrowType direction,
        String detail, int x, int y, int w, int h) {

    state = GTKLookAndFeel.synthStateToGTKStateType(state).ordinal();
    int widget = getWidgetType(context.getComponent(), id).ordinal();
    native_paint_arrow(widget, state, shadowType.ordinal(),
            detail, x - x0, y - y0, w, h, direction.ordinal());
}
 
Example 19
Source Project: openjdk-8   Source File: GTKPainter.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void paintMenuArrowIcon(SynthContext context, Graphics g,
        int state, int x, int y, int w, int h, ArrowType dir) {
    int gtkState = GTKLookAndFeel.synthStateToGTKState(
            context.getRegion(), state);
    ShadowType shadow = ShadowType.OUT;
    if (gtkState == SynthConstants.MOUSE_OVER) {
        shadow = ShadowType.IN;
    }
    ENGINE.paintArrow(g, context, Region.MENU_ITEM, gtkState, shadow,
            dir, "menuitem", x + 3, y + 3, 7, 7);
}
 
Example 20
Source Project: openjdk-8-source   Source File: GTKEngine.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void paintArrow(Graphics g, SynthContext context,
        Region id, int state, ShadowType shadowType, ArrowType direction,
        String detail, int x, int y, int w, int h) {

    state = GTKLookAndFeel.synthStateToGTKStateType(state).ordinal();
    int widget = getWidgetType(context.getComponent(), id).ordinal();
    native_paint_arrow(widget, state, shadowType.ordinal(),
            detail, x - x0, y - y0, w, h, direction.ordinal());
}
 
Example 21
Source Project: TencentKona-8   Source File: GTKIconFactory.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void paintIcon(SynthContext context, Graphics g, int x, int y,
                      int w, int h) {
    if (context != null) {
        ArrowType arrowDir = ArrowType.RIGHT;
        if (!context.getComponent().getComponentOrientation().isLeftToRight()) {
            arrowDir = ArrowType.LEFT;
        }
        GTKPainter.INSTANCE.paintIcon(context, g,
                getMethod(), x, y, w, h, arrowDir);
    }
}
 
Example 22
Source Project: jdk8u_jdk   Source File: GTKEngine.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void paintArrow(Graphics g, SynthContext context,
        Region id, int state, ShadowType shadowType, ArrowType direction,
        String detail, int x, int y, int w, int h) {

    state = GTKLookAndFeel.synthStateToGTKStateType(state).ordinal();
    int widget = getWidgetType(context.getComponent(), id).ordinal();
    native_paint_arrow(widget, state, shadowType.ordinal(),
            detail, x - x0, y - y0, w, h, direction.ordinal());
}
 
Example 23
public void paintIcon(SynthContext context, Graphics g, int x, int y,
                      int w, int h) {
    if (context != null) {
        ArrowType arrowDir = ArrowType.RIGHT;
        if (!context.getComponent().getComponentOrientation().isLeftToRight()) {
            arrowDir = ArrowType.LEFT;
        }
        GTKPainter.INSTANCE.paintIcon(context, g,
                getMethod(), x, y, w, h, arrowDir);
    }
}
 
Example 24
Source Project: JDKSourceCode1.8   Source File: GTKPainter.java    License: MIT License 5 votes vote down vote up
public void paintMenuArrowIcon(SynthContext context, Graphics g,
        int state, int x, int y, int w, int h, ArrowType dir) {
    int gtkState = GTKLookAndFeel.synthStateToGTKState(
            context.getRegion(), state);
    ShadowType shadow = ShadowType.OUT;
    if (gtkState == SynthConstants.MOUSE_OVER) {
        shadow = ShadowType.IN;
    }
    ENGINE.paintArrow(g, context, Region.MENU_ITEM, gtkState, shadow,
            dir, "menuitem", x + 3, y + 3, 7, 7);
}
 
Example 25
Source Project: JDKSourceCode1.8   Source File: GTKEngine.java    License: MIT License 5 votes vote down vote up
public void paintArrow(Graphics g, SynthContext context,
        Region id, int state, ShadowType shadowType, ArrowType direction,
        String detail, int x, int y, int w, int h) {

    state = GTKLookAndFeel.synthStateToGTKStateType(state).ordinal();
    int widget = getWidgetType(context.getComponent(), id).ordinal();
    native_paint_arrow(widget, state, shadowType.ordinal(),
            detail, x - x0, y - y0, w, h, direction.ordinal());
}
 
Example 26
Source Project: JDKSourceCode1.8   Source File: GTKIconFactory.java    License: MIT License 5 votes vote down vote up
public void paintIcon(SynthContext context, Graphics g, int x, int y,
                      int w, int h) {
    if (context != null) {
        ArrowType arrowDir = ArrowType.RIGHT;
        if (!context.getComponent().getComponentOrientation().isLeftToRight()) {
            arrowDir = ArrowType.LEFT;
        }
        GTKPainter.INSTANCE.paintIcon(context, g,
                getMethod(), x, y, w, h, arrowDir);
    }
}
 
Example 27
Source Project: jdk8u-dev-jdk   Source File: GTKPainter.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void paintMenuArrowIcon(SynthContext context, Graphics g,
        int state, int x, int y, int w, int h, ArrowType dir) {
    int gtkState = GTKLookAndFeel.synthStateToGTKState(
            context.getRegion(), state);
    ShadowType shadow = ShadowType.OUT;
    if (gtkState == SynthConstants.MOUSE_OVER) {
        shadow = ShadowType.IN;
    }
    ENGINE.paintArrow(g, context, Region.MENU_ITEM, gtkState, shadow,
            dir, "menuitem", x + 3, y + 3, 7, 7);
}
 
Example 28
Source Project: jdk8u_jdk   Source File: GTKIconFactory.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void paintIcon(SynthContext context, Graphics g, int x, int y,
                      int w, int h) {
    if (context != null) {
        ArrowType arrowDir = ArrowType.RIGHT;
        if (!context.getComponent().getComponentOrientation().isLeftToRight()) {
            arrowDir = ArrowType.LEFT;
        }
        GTKPainter.INSTANCE.paintIcon(context, g,
                getMethod(), x, y, w, h, arrowDir);
    }
}
 
Example 29
Source Project: openjdk-jdk8u   Source File: GTKEngine.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void paintArrow(Graphics g, SynthContext context,
        Region id, int state, ShadowType shadowType, ArrowType direction,
        String detail, int x, int y, int w, int h) {

    state = GTKLookAndFeel.synthStateToGTKStateType(state).ordinal();
    int widget = getWidgetType(context.getComponent(), id).ordinal();
    native_paint_arrow(widget, state, shadowType.ordinal(),
            detail, x - x0, y - y0, w, h, direction.ordinal());
}
 
Example 30
Source Project: openjdk-jdk8u   Source File: GTKIconFactory.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void paintIcon(SynthContext context, Graphics g, int x, int y,
                      int w, int h) {
    if (context != null) {
        ArrowType arrowDir = ArrowType.RIGHT;
        if (!context.getComponent().getComponentOrientation().isLeftToRight()) {
            arrowDir = ArrowType.LEFT;
        }
        GTKPainter.INSTANCE.paintIcon(context, g,
                getMethod(), x, y, w, h, arrowDir);
    }
}