Package mindustry.editor
Class MapView
java.lang.Object
arc.scene.Element
mindustry.editor.MapView
- All Implemented Interfaces:
arc.input.GestureDetector.GestureListener
public class MapView
extends arc.scene.Element
implements arc.input.GestureDetector.GestureListener
-
Field Summary
Fields inherited from class arc.scene.Element
color, cullable, fillParent, height, name, originX, originY, parent, parentAlpha, rotation, scaleX, scaleY, touchable, touchablility, translation, userObject, visibility, visible, width, x, y -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidact(float delta) voidcenter()voiddraw()getTool()booleanisGrid()booleanpan(float x, float y, float deltaX, float deltaY) booleanpinch(arc.math.geom.Vec2 initialPointer1, arc.math.geom.Vec2 initialPointer2, arc.math.geom.Vec2 pointer1, arc.math.geom.Vec2 pointer2) voidarc.math.geom.Point2project(float x, float y) voidsetGrid(boolean grid) voidsetTool(EditorTool tool) booleanzoom(float initialDistance, float distance) Methods inherited from class arc.scene.Element
actions, addAction, addCaptureListener, addListener, change, changed, clear, clearActions, clearListeners, clicked, clicked, clicked, clicked, clipBegin, clipBegin, clipEnd, dragged, exited, fire, fireClick, getActions, getCaptureListeners, getHeight, getListeners, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, getRight, getRotation, getScene, getTop, getWidth, getX, getY, getZIndex, hasActions, hasKeyboard, hasMouse, hasParent, hasScroll, hit, hovered, invalidate, invalidateHierarchy, isAscendantOf, isDescendantOf, isDescendantOf, isTouchable, keepInStage, keyDown, keyDown, layout, localToAscendantCoordinates, localToParentCoordinates, localToStageCoordinates, moveBy, needsLayout, notify, pack, parentToLocalCoordinates, released, remove, removeAction, removeCaptureListener, removeListener, requestKeyboard, requestScroll, rotateBy, rotationChanged, scaleBy, scaleBy, screenToLocalCoordinates, scrolled, setBounds, setColor, setColor, setFillParent, setHeight, setLayoutEnabled, setOrigin, setOrigin, setPosition, setPosition, setRotation, setRotationOrigin, setScale, setScale, setScene, setSize, setSize, setTranslation, setWidth, setZIndex, sizeBy, sizeBy, sizeChanged, stageToLocalCoordinates, tapped, toBack, toFront, toString, touchable, update, updateVisibility, validate, visibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface arc.input.GestureDetector.GestureListener
fling, longPress, panStop, tap, touchDown
-
Constructor Details
-
MapView
public MapView()
-
-
Method Details
-
getTool
-
setTool
-
isGrid
public boolean isGrid() -
setGrid
public void setGrid(boolean grid) -
center
public void center() -
act
public void act(float delta) - Overrides:
actin classarc.scene.Element
-
project
public arc.math.geom.Point2 project(float x, float y) -
draw
public void draw()- Overrides:
drawin classarc.scene.Element
-
pan
public boolean pan(float x, float y, float deltaX, float deltaY) - Specified by:
panin interfacearc.input.GestureDetector.GestureListener
-
zoom
public boolean zoom(float initialDistance, float distance) - Specified by:
zoomin interfacearc.input.GestureDetector.GestureListener
-
pinch
public boolean pinch(arc.math.geom.Vec2 initialPointer1, arc.math.geom.Vec2 initialPointer2, arc.math.geom.Vec2 pointer1, arc.math.geom.Vec2 pointer2) - Specified by:
pinchin interfacearc.input.GestureDetector.GestureListener
-
pinchStop
public void pinchStop()- Specified by:
pinchStopin interfacearc.input.GestureDetector.GestureListener
-