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

The following examples show how to use com.sun.java.swing.plaf.gtk.GTKConstants.ArrowType. 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 File: GTKPainter.java    From jdk8u-jdk with 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 File: GTKPainter.java    From openjdk-jdk8u with 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 File: GTKPainter.java    From hottub with 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 #4
Source File: GTKPainter.java    From TencentKona-8 with 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 File: GTKPainter.java    From jdk8u_jdk with 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 File: GTKPainter.java    From openjdk-jdk9 with 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 #7
Source File: GTKPainter.java    From openjdk-jdk9 with 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
Source File: GTKPainter.java    From jdk8u60 with 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 #9
Source File: GTKPainter.java    From dragonwell8_jdk with 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 #10
Source File: GTKPainter.java    From dragonwell8_jdk with 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 File: GTKPainter.java    From openjdk-jdk8u-backup with 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 #12
Source File: GTKPainter.java    From jdk8u-jdk with 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 File: GTKPainter.java    From jdk8u-dev-jdk with 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 File: GTKPainter.java    From Bytecoder with 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 #15
Source File: GTKIconFactory.java    From openjdk-jdk9 with 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 File: GTKEngine.java    From JDKSourceCode1.8 with 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 #17
Source File: GTKPainter.java    From jdk8u-jdk with 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 #18
Source File: GTKPainter.java    From JDKSourceCode1.8 with 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 #19
Source File: GTKIconFactory.java    From JDKSourceCode1.8 with 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 #20
Source File: GTKEngine.java    From hottub with 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 File: GTKPainter.java    From jdk8u-dev-jdk with 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 #22
Source File: GTKIconFactory.java    From jdk8u-jdk with 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 #23
Source File: GTKIconFactory.java    From jdk8u_jdk with 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 #24
Source File: GTKEngine.java    From openjdk-jdk8u with 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 #25
Source File: GTKIconFactory.java    From openjdk-jdk8u with 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 #26
Source File: GTKEngine.java    From openjdk-jdk9 with 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 #27
Source File: GTKPainter.java    From openjdk-jdk8u-backup with 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 File: GTKIconFactory.java    From openjdk-jdk8u-backup with 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 File: GTKIconFactory.java    From jdk8u-dev-jdk with 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 #30
Source File: GTKEngine.java    From openjdk-jdk8u-backup with 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());
}