Package net.sf.jiga.xtended

Examples of net.sf.jiga.xtended.JXAException


                 * only remove (~) changed bits and add (|) newMode with allbits
                 * mask (&) (no parentOption bits are stored)
                 */
                newMode = bits._getAllBits() & (mode & ~bits._getMask(modeChangeRange) | newMode);
                if (modeChangeRange == 0) {
                        throw new JXAException("mode must include one of the range bits options");
                } else {
                        String changeBitstr = "[", changeBitstrSettings = "[";
                        for (options opt : options.values()) {
                                if ((opt.bitMask() & modeChangeRange) != 0 && (opt.bitMask() & newMode) != 0) {
                                        changeBitstrSettings += opt.toString();
View Full Code Here


        public void setExclusiveMode(final int viewportMode) {
                doTask(new Runnable() {
                        @Override
                        public void run() {
                                if (0 == (viewportMode & options._VIEWPORT_BIT.bitMask())) {
                                        throw new JXAException(JXAException.LEVEL.APP, "Illegal argument for exclusive mode");
                                }
                                setMode(viewportMode | options.MODE_EXT_EXCLUSIVE.bitMask());
                        }
                });
        }
View Full Code Here

         * @throws IllegalArgumentException
         */
        public void switchFullScreen(final DisplayModeWrapper targetMin, final DisplayModeWrapper targetMax, final int bitDepth) {
                if (targetMin != null && targetMax != null) {
                        if (targetMin.compareTo(targetMax) > 0) {
                                throw new JXAException("targetMin " + targetMin + " must be lesser or equal to targetMax " + targetMax + ".");
                        }
                }
                switchFullScreen(null, targetMin, targetMax, bitDepth);
        }
View Full Code Here

    /**
     * renderContents HUD contents
     */
    private void _renderContents(Object canvas) {
        if (!render.isOn()) {
            throw new JXAException(JXAException.LEVEL.SYSTEM, "not in HUD rendering block, missing HUD.begin()");
        }
        if (!enabled) {
            return;
        }
        synchronized (contents) {
View Full Code Here

     * painted
     */
    protected Rectangle __drawString(Object graphics, String str, POS hpos, POS vpos, boolean newLine, boolean draw, boolean revertLastOutputPX) {
        assert graphics instanceof Graphics ? ((Graphics2D) graphics).getClipBounds() instanceof Rectangle : true : "graphics has no clip set and will result in nullpointerexception";
        if (!render.isOn()) {
            throw new JXAException(JXAException.LEVEL.SYSTEM, "not in HUD rendering block, missing HUD.begin()");
        }
        Color c = null;
        FloatBuffer currentColor = null;
        if (graphics instanceof Graphics) {
            Graphics2D g = (Graphics2D) graphics;
View Full Code Here

TOP

Related Classes of net.sf.jiga.xtended.JXAException

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.