Added glue interface for VT-06 command enums
This commit is contained in:
parent
c631260346
commit
ebe9291e5e
|
@ -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<Integer> muffinPointSequence() {
|
||||||
|
return cakePointSequence();
|
||||||
|
}
|
||||||
|
}
|
|
@ -25,9 +25,7 @@ package org.x4o.fc18.cake2.zero33.vt06;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import org.x4o.fc18.cake2.FourCornerX06BaklavaPointSequence;
|
import org.x4o.fc18.cake2.FourCornerDotColleZero33VT;
|
||||||
import org.x4o.fc18.cake2.FourCornerX08MuffinPointSequence;
|
|
||||||
import org.x4o.fc18.cake2.FourCornerX18CakePointSequence;
|
|
||||||
import org.x4o.fc18.cake2.zero33.FCDotCDC1604DashP6;
|
import org.x4o.fc18.cake2.zero33.FCDotCDC1604DashP6;
|
||||||
import org.x4o.fc18.cake2.zero33.FCDotDEC0127DashPX0;
|
import org.x4o.fc18.cake2.zero33.FCDotDEC0127DashPX0;
|
||||||
|
|
||||||
|
@ -37,7 +35,7 @@ import org.x4o.fc18.cake2.zero33.FCDotDEC0127DashPX0;
|
||||||
* @author Willem Cazander
|
* @author Willem Cazander
|
||||||
* @version 1.0 Jan 14, 2025
|
* @version 1.0 Jan 14, 2025
|
||||||
*/
|
*/
|
||||||
public enum VTDash06DotZeroACursor implements FourCornerX06BaklavaPointSequence, FourCornerX08MuffinPointSequence, FourCornerX18CakePointSequence {
|
public enum VTDash06DotZeroACursor implements FourCornerDotColleZero33VT {
|
||||||
|
|
||||||
/// VT-06 = ESC_VT06
|
/// VT-06 = ESC_VT06
|
||||||
/// + ESC_SEQ_RAKA_AT + A // select cursor function
|
/// + ESC_SEQ_RAKA_AT + A // select cursor function
|
||||||
|
@ -68,11 +66,6 @@ public enum VTDash06DotZeroACursor implements FourCornerX06BaklavaPointSequence,
|
||||||
return FCDotDEC0127DashPX0.ESC_VT06.baklavaPointsVT06Action(actionGroup, action);
|
return FCDotDEC0127DashPX0.ESC_VT06.baklavaPointsVT06Action(actionGroup, action);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<Integer> muffinPointSequence() {
|
|
||||||
return cakePointSequence();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Integer> cakePointSequence() {
|
public List<Integer> cakePointSequence() {
|
||||||
return FCDotDEC0127DashPX0.ESC_VT06.cakePointsVT06Action(actionGroup, action);
|
return FCDotDEC0127DashPX0.ESC_VT06.cakePointsVT06Action(actionGroup, action);
|
||||||
|
|
|
@ -25,9 +25,7 @@ package org.x4o.fc18.cake2.zero33.vt06;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import org.x4o.fc18.cake2.FourCornerX06BaklavaPointSequence;
|
import org.x4o.fc18.cake2.FourCornerDotColleZero33VT;
|
||||||
import org.x4o.fc18.cake2.FourCornerX08MuffinPointSequence;
|
|
||||||
import org.x4o.fc18.cake2.FourCornerX18CakePointSequence;
|
|
||||||
import org.x4o.fc18.cake2.zero33.FCDotCDC1604DashP6;
|
import org.x4o.fc18.cake2.zero33.FCDotCDC1604DashP6;
|
||||||
import org.x4o.fc18.cake2.zero33.FCDotDEC0127DashPX0;
|
import org.x4o.fc18.cake2.zero33.FCDotDEC0127DashPX0;
|
||||||
|
|
||||||
|
@ -37,7 +35,7 @@ import org.x4o.fc18.cake2.zero33.FCDotDEC0127DashPX0;
|
||||||
* @author Willem Cazander
|
* @author Willem Cazander
|
||||||
* @version 1.0 Jan 14, 2025
|
* @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_TOP(FCDotCDC1604DashP6.NX01_A),
|
||||||
VT_CLEAR_LEFT(FCDotCDC1604DashP6.NX02_B),
|
VT_CLEAR_LEFT(FCDotCDC1604DashP6.NX02_B),
|
||||||
|
@ -59,11 +57,6 @@ public enum VTDash06DotZeroCClear implements FourCornerX06BaklavaPointSequence,
|
||||||
return FCDotDEC0127DashPX0.ESC_VT06.baklavaPointsVT06Action(actionGroup, action);
|
return FCDotDEC0127DashPX0.ESC_VT06.baklavaPointsVT06Action(actionGroup, action);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<Integer> muffinPointSequence() {
|
|
||||||
return cakePointSequence();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Integer> cakePointSequence() {
|
public List<Integer> cakePointSequence() {
|
||||||
return FCDotDEC0127DashPX0.ESC_VT06.cakePointsVT06Action(actionGroup, action);
|
return FCDotDEC0127DashPX0.ESC_VT06.cakePointsVT06Action(actionGroup, action);
|
||||||
|
|
Loading…
Reference in a new issue