Moved blocks to block package
This commit is contained in:
parent
57fc8cfa44
commit
74dc027642
@ -8,7 +8,7 @@ import org.warp.picalculator.gui.graphicengine.RenderingLoop;
|
|||||||
import org.warp.picalculator.device.Keyboard;
|
import org.warp.picalculator.device.Keyboard;
|
||||||
import org.warp.picalculator.device.Keyboard.Key;
|
import org.warp.picalculator.device.Keyboard.Key;
|
||||||
import org.warp.picalculator.device.KeyboardEventListener;
|
import org.warp.picalculator.device.KeyboardEventListener;
|
||||||
import org.warp.picalculator.gui.expression.BlockContainer;
|
import org.warp.picalculator.gui.expression.blocks.BlockContainer;
|
||||||
import org.warp.picalculator.gui.expression.containers.NormalInputContainer;
|
import org.warp.picalculator.gui.expression.containers.NormalInputContainer;
|
||||||
import org.warp.picalculator.gui.graphicengine.BinaryFont;
|
import org.warp.picalculator.gui.graphicengine.BinaryFont;
|
||||||
import org.warp.picalculator.gui.graphicengine.Skin;
|
import org.warp.picalculator.gui.graphicengine.Skin;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.warp.picalculator.gui.expression;
|
package org.warp.picalculator.gui.expression.blocks;
|
||||||
|
|
||||||
import org.warp.picalculator.gui.GraphicalElement;
|
import org.warp.picalculator.gui.GraphicalElement;
|
||||||
|
import org.warp.picalculator.gui.expression.Caret;
|
||||||
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
||||||
import org.warp.picalculator.gui.graphicengine.Renderer;
|
import org.warp.picalculator.gui.graphicengine.Renderer;
|
||||||
|
|
@ -1,5 +1,6 @@
|
|||||||
package org.warp.picalculator.gui.expression;
|
package org.warp.picalculator.gui.expression.blocks;
|
||||||
|
|
||||||
|
import org.warp.picalculator.gui.expression.Caret;
|
||||||
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
||||||
import org.warp.picalculator.gui.graphicengine.Renderer;
|
import org.warp.picalculator.gui.graphicengine.Renderer;
|
||||||
|
|
@ -1,8 +1,10 @@
|
|||||||
package org.warp.picalculator.gui.expression;
|
package org.warp.picalculator.gui.expression.blocks;
|
||||||
|
|
||||||
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
|
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
|
||||||
|
|
||||||
import org.warp.picalculator.gui.GraphicalElement;
|
import org.warp.picalculator.gui.GraphicalElement;
|
||||||
|
import org.warp.picalculator.gui.expression.Caret;
|
||||||
|
import org.warp.picalculator.gui.expression.CaretState;
|
||||||
import org.warp.picalculator.gui.graphicengine.BinaryFont;
|
import org.warp.picalculator.gui.graphicengine.BinaryFont;
|
||||||
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
||||||
import org.warp.picalculator.gui.graphicengine.Renderer;
|
import org.warp.picalculator.gui.graphicengine.Renderer;
|
@ -1,5 +1,6 @@
|
|||||||
package org.warp.picalculator.gui.expression;
|
package org.warp.picalculator.gui.expression.blocks;
|
||||||
|
|
||||||
|
import org.warp.picalculator.gui.expression.Caret;
|
||||||
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
||||||
import org.warp.picalculator.gui.graphicengine.Renderer;
|
import org.warp.picalculator.gui.graphicengine.Renderer;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package org.warp.picalculator.gui.expression;
|
package org.warp.picalculator.gui.expression.blocks;
|
||||||
|
|
||||||
public class BlockExponentialNotation extends BlockPower {
|
public class BlockExponentialNotation extends BlockPower {
|
||||||
@Override
|
@Override
|
@ -1,5 +1,6 @@
|
|||||||
package org.warp.picalculator.gui.expression;
|
package org.warp.picalculator.gui.expression.blocks;
|
||||||
|
|
||||||
|
import org.warp.picalculator.gui.expression.Caret;
|
||||||
import org.warp.picalculator.gui.graphicengine.BinaryFont;
|
import org.warp.picalculator.gui.graphicengine.BinaryFont;
|
||||||
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
||||||
import org.warp.picalculator.gui.graphicengine.Renderer;
|
import org.warp.picalculator.gui.graphicengine.Renderer;
|
@ -1,8 +1,8 @@
|
|||||||
package org.warp.picalculator.gui.expression;
|
package org.warp.picalculator.gui.expression.blocks;
|
||||||
|
|
||||||
import org.warp.picalculator.gui.expression.Block;
|
|
||||||
import org.warp.picalculator.gui.expression.BlockContainer;
|
|
||||||
import org.warp.picalculator.gui.expression.Caret;
|
import org.warp.picalculator.gui.expression.Caret;
|
||||||
|
import org.warp.picalculator.gui.expression.blocks.Block;
|
||||||
|
import org.warp.picalculator.gui.expression.blocks.BlockContainer;
|
||||||
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
||||||
import org.warp.picalculator.gui.graphicengine.Renderer;
|
import org.warp.picalculator.gui.graphicengine.Renderer;
|
||||||
|
|
@ -1,5 +1,6 @@
|
|||||||
package org.warp.picalculator.gui.expression;
|
package org.warp.picalculator.gui.expression.blocks;
|
||||||
|
|
||||||
|
import org.warp.picalculator.gui.expression.Caret;
|
||||||
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
||||||
import org.warp.picalculator.gui.graphicengine.Renderer;
|
import org.warp.picalculator.gui.graphicengine.Renderer;
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
package org.warp.picalculator.gui.expression.containers;
|
package org.warp.picalculator.gui.expression.containers;
|
||||||
|
|
||||||
import org.warp.picalculator.gui.expression.Block;
|
import org.warp.picalculator.gui.expression.blocks.Block;
|
||||||
import org.warp.picalculator.gui.expression.BlockChar;
|
import org.warp.picalculator.gui.expression.blocks.BlockChar;
|
||||||
import org.warp.picalculator.math.MathematicalSymbols;
|
import org.warp.picalculator.math.MathematicalSymbols;
|
||||||
|
|
||||||
public class InlineInputContainer extends InputContainer {
|
public class InlineInputContainer extends InputContainer {
|
||||||
|
@ -4,10 +4,10 @@ import java.io.ObjectOutputStream;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.warp.picalculator.gui.GraphicalElement;
|
import org.warp.picalculator.gui.GraphicalElement;
|
||||||
import org.warp.picalculator.gui.expression.Block;
|
|
||||||
import org.warp.picalculator.gui.expression.BlockContainer;
|
|
||||||
import org.warp.picalculator.gui.expression.Caret;
|
import org.warp.picalculator.gui.expression.Caret;
|
||||||
import org.warp.picalculator.gui.expression.CaretState;
|
import org.warp.picalculator.gui.expression.CaretState;
|
||||||
|
import org.warp.picalculator.gui.expression.blocks.Block;
|
||||||
|
import org.warp.picalculator.gui.expression.blocks.BlockContainer;
|
||||||
import org.warp.picalculator.gui.expression.layouts.InputLayout;
|
import org.warp.picalculator.gui.expression.layouts.InputLayout;
|
||||||
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
||||||
import org.warp.picalculator.gui.graphicengine.Renderer;
|
import org.warp.picalculator.gui.graphicengine.Renderer;
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package org.warp.picalculator.gui.expression.containers;
|
package org.warp.picalculator.gui.expression.containers;
|
||||||
|
|
||||||
import org.warp.picalculator.gui.expression.Block;
|
import org.warp.picalculator.gui.expression.blocks.Block;
|
||||||
import org.warp.picalculator.gui.expression.BlockChar;
|
import org.warp.picalculator.gui.expression.blocks.BlockChar;
|
||||||
import org.warp.picalculator.gui.expression.BlockDivision;
|
import org.warp.picalculator.gui.expression.blocks.BlockDivision;
|
||||||
import org.warp.picalculator.gui.expression.BlockParenthesis;
|
import org.warp.picalculator.gui.expression.blocks.BlockParenthesis;
|
||||||
import org.warp.picalculator.gui.expression.BlockPower;
|
import org.warp.picalculator.gui.expression.blocks.BlockPower;
|
||||||
import org.warp.picalculator.gui.expression.BlockSquareRoot;
|
import org.warp.picalculator.gui.expression.blocks.BlockSquareRoot;
|
||||||
import org.warp.picalculator.math.MathematicalSymbols;
|
import org.warp.picalculator.math.MathematicalSymbols;
|
||||||
|
|
||||||
public class NormalInputContainer extends InputContainer {
|
public class NormalInputContainer extends InputContainer {
|
||||||
|
@ -3,10 +3,10 @@ package org.warp.picalculator.gui.expression.containers;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.warp.picalculator.gui.GraphicalElement;
|
import org.warp.picalculator.gui.GraphicalElement;
|
||||||
import org.warp.picalculator.gui.expression.Block;
|
|
||||||
import org.warp.picalculator.gui.expression.BlockContainer;
|
|
||||||
import org.warp.picalculator.gui.expression.Caret;
|
import org.warp.picalculator.gui.expression.Caret;
|
||||||
import org.warp.picalculator.gui.expression.CaretState;
|
import org.warp.picalculator.gui.expression.CaretState;
|
||||||
|
import org.warp.picalculator.gui.expression.blocks.Block;
|
||||||
|
import org.warp.picalculator.gui.expression.blocks.BlockContainer;
|
||||||
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
||||||
import org.warp.picalculator.gui.graphicengine.Renderer;
|
import org.warp.picalculator.gui.graphicengine.Renderer;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package org.warp.picalculator.gui.expression.layouts;
|
package org.warp.picalculator.gui.expression.layouts;
|
||||||
|
|
||||||
import org.warp.picalculator.gui.expression.Block;
|
import org.warp.picalculator.gui.expression.blocks.Block;
|
||||||
|
|
||||||
public interface InputLayout {
|
public interface InputLayout {
|
||||||
public Block parseChar(char c);
|
public Block parseChar(char c);
|
||||||
|
@ -17,8 +17,8 @@ import org.warp.picalculator.Utils;
|
|||||||
import org.warp.picalculator.device.Keyboard;
|
import org.warp.picalculator.device.Keyboard;
|
||||||
import org.warp.picalculator.device.Keyboard.Key;
|
import org.warp.picalculator.device.Keyboard.Key;
|
||||||
import org.warp.picalculator.gui.DisplayManager;
|
import org.warp.picalculator.gui.DisplayManager;
|
||||||
import org.warp.picalculator.gui.expression.Block;
|
import org.warp.picalculator.gui.expression.blocks.Block;
|
||||||
import org.warp.picalculator.gui.expression.BlockContainer;
|
import org.warp.picalculator.gui.expression.blocks.BlockContainer;
|
||||||
import org.warp.picalculator.gui.expression.containers.InputContainer;
|
import org.warp.picalculator.gui.expression.containers.InputContainer;
|
||||||
import org.warp.picalculator.gui.expression.containers.NormalInputContainer;
|
import org.warp.picalculator.gui.expression.containers.NormalInputContainer;
|
||||||
import org.warp.picalculator.gui.expression.containers.NormalOutputContainer;
|
import org.warp.picalculator.gui.expression.containers.NormalOutputContainer;
|
||||||
|
@ -6,14 +6,14 @@ import java.util.Arrays;
|
|||||||
|
|
||||||
import org.warp.picalculator.Error;
|
import org.warp.picalculator.Error;
|
||||||
import org.warp.picalculator.Errors;
|
import org.warp.picalculator.Errors;
|
||||||
import org.warp.picalculator.gui.expression.Block;
|
import org.warp.picalculator.gui.expression.blocks.Block;
|
||||||
import org.warp.picalculator.gui.expression.BlockChar;
|
import org.warp.picalculator.gui.expression.blocks.BlockChar;
|
||||||
import org.warp.picalculator.gui.expression.BlockContainer;
|
import org.warp.picalculator.gui.expression.blocks.BlockContainer;
|
||||||
import org.warp.picalculator.gui.expression.BlockDivision;
|
import org.warp.picalculator.gui.expression.blocks.BlockDivision;
|
||||||
import org.warp.picalculator.gui.expression.BlockExponentialNotation;
|
import org.warp.picalculator.gui.expression.blocks.BlockExponentialNotation;
|
||||||
import org.warp.picalculator.gui.expression.BlockParenthesis;
|
import org.warp.picalculator.gui.expression.blocks.BlockParenthesis;
|
||||||
import org.warp.picalculator.gui.expression.BlockPower;
|
import org.warp.picalculator.gui.expression.blocks.BlockPower;
|
||||||
import org.warp.picalculator.gui.expression.BlockSquareRoot;
|
import org.warp.picalculator.gui.expression.blocks.BlockSquareRoot;
|
||||||
import org.warp.picalculator.gui.expression.containers.InputContainer;
|
import org.warp.picalculator.gui.expression.containers.InputContainer;
|
||||||
import org.warp.picalculator.math.Function;
|
import org.warp.picalculator.math.Function;
|
||||||
import org.warp.picalculator.math.FunctionOperator;
|
import org.warp.picalculator.math.FunctionOperator;
|
||||||
|
Loading…
Reference in New Issue
Block a user