diff --git a/nx01-x4o-fc18/src/main/java/org/x4o/fc18/cake2/FourCornerDotColleZero33VT.java b/nx01-x4o-fc18/src/main/java/org/x4o/fc18/cake2/FourCornerDotColleZero33VT.java new file mode 100644 index 0000000..18bcd47 --- /dev/null +++ b/nx01-x4o-fc18/src/main/java/org/x4o/fc18/cake2/FourCornerDotColleZero33VT.java @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2004-2014, Willem Cazander + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +package org.x4o.fc18.cake2; + +import java.util.List; + +/// Glue interface for the command VT enums. +/// +/// @author Willem Cazander +/// @version 1.0 Jan 20, 2025 +public interface FourCornerDotColleZero33VT extends FourCornerX06BaklavaPointSequence, FourCornerX08MuffinPointSequence, FourCornerX18CakePointSequence { + + @Override + default List muffinPointSequence() { + return cakePointSequence(); + } +} diff --git a/nx01-x4o-fc18/src/main/java/org/x4o/fc18/cake2/zero33/vt06/VTDash06DotZeroACursor.java b/nx01-x4o-fc18/src/main/java/org/x4o/fc18/cake2/zero33/vt06/VTDash06DotZeroACursor.java index a221aba..03bf63d 100644 --- a/nx01-x4o-fc18/src/main/java/org/x4o/fc18/cake2/zero33/vt06/VTDash06DotZeroACursor.java +++ b/nx01-x4o-fc18/src/main/java/org/x4o/fc18/cake2/zero33/vt06/VTDash06DotZeroACursor.java @@ -25,9 +25,7 @@ package org.x4o.fc18.cake2.zero33.vt06; import java.util.List; import java.util.Objects; -import org.x4o.fc18.cake2.FourCornerX06BaklavaPointSequence; -import org.x4o.fc18.cake2.FourCornerX08MuffinPointSequence; -import org.x4o.fc18.cake2.FourCornerX18CakePointSequence; +import org.x4o.fc18.cake2.FourCornerDotColleZero33VT; import org.x4o.fc18.cake2.zero33.FCDotCDC1604DashP6; import org.x4o.fc18.cake2.zero33.FCDotDEC0127DashPX0; @@ -37,7 +35,7 @@ import org.x4o.fc18.cake2.zero33.FCDotDEC0127DashPX0; * @author Willem Cazander * @version 1.0 Jan 14, 2025 */ -public enum VTDash06DotZeroACursor implements FourCornerX06BaklavaPointSequence, FourCornerX08MuffinPointSequence, FourCornerX18CakePointSequence { +public enum VTDash06DotZeroACursor implements FourCornerDotColleZero33VT { /// VT-06 = ESC_VT06 /// + ESC_SEQ_RAKA_AT + A // select cursor function @@ -68,11 +66,6 @@ public enum VTDash06DotZeroACursor implements FourCornerX06BaklavaPointSequence, return FCDotDEC0127DashPX0.ESC_VT06.baklavaPointsVT06Action(actionGroup, action); } - @Override - public List muffinPointSequence() { - return cakePointSequence(); - } - @Override public List cakePointSequence() { return FCDotDEC0127DashPX0.ESC_VT06.cakePointsVT06Action(actionGroup, action); diff --git a/nx01-x4o-fc18/src/main/java/org/x4o/fc18/cake2/zero33/vt06/VTDash06DotZeroCClear.java b/nx01-x4o-fc18/src/main/java/org/x4o/fc18/cake2/zero33/vt06/VTDash06DotZeroCClear.java index 1b506d5..766bbef 100644 --- a/nx01-x4o-fc18/src/main/java/org/x4o/fc18/cake2/zero33/vt06/VTDash06DotZeroCClear.java +++ b/nx01-x4o-fc18/src/main/java/org/x4o/fc18/cake2/zero33/vt06/VTDash06DotZeroCClear.java @@ -25,9 +25,7 @@ package org.x4o.fc18.cake2.zero33.vt06; import java.util.List; import java.util.Objects; -import org.x4o.fc18.cake2.FourCornerX06BaklavaPointSequence; -import org.x4o.fc18.cake2.FourCornerX08MuffinPointSequence; -import org.x4o.fc18.cake2.FourCornerX18CakePointSequence; +import org.x4o.fc18.cake2.FourCornerDotColleZero33VT; import org.x4o.fc18.cake2.zero33.FCDotCDC1604DashP6; import org.x4o.fc18.cake2.zero33.FCDotDEC0127DashPX0; @@ -37,7 +35,7 @@ import org.x4o.fc18.cake2.zero33.FCDotDEC0127DashPX0; * @author Willem Cazander * @version 1.0 Jan 14, 2025 */ -public enum VTDash06DotZeroCClear implements FourCornerX06BaklavaPointSequence, FourCornerX08MuffinPointSequence, FourCornerX18CakePointSequence { +public enum VTDash06DotZeroCClear implements FourCornerDotColleZero33VT { VT_CLEAR_TOP(FCDotCDC1604DashP6.NX01_A), VT_CLEAR_LEFT(FCDotCDC1604DashP6.NX02_B), @@ -59,11 +57,6 @@ public enum VTDash06DotZeroCClear implements FourCornerX06BaklavaPointSequence, return FCDotDEC0127DashPX0.ESC_VT06.baklavaPointsVT06Action(actionGroup, action); } - @Override - public List muffinPointSequence() { - return cakePointSequence(); - } - @Override public List cakePointSequence() { return FCDotDEC0127DashPX0.ESC_VT06.cakePointsVT06Action(actionGroup, action);