Package curve.popup
Class MoverPopupMenu
java.lang.Object
curve.popup.MoverPopupMenu
-
Field Summary
Modifier and TypeFieldDescription(package private) Board
board(package private) String
captureSreen(package private) static DotsCanvas
dc(package private) static boolean
debug(package private) static boolean
debug2click(package private) static boolean
debugConvertToCubic(package private) static boolean
debugConvertToQuad(package private) static boolean
debugDist(package private) static boolean
debugDnD(package private) static boolean
debugDraw(package private) static boolean
debugJoin(package private) static boolean
debugLine(package private) static boolean
debugMenu(package private) static boolean
debugPan(package private) static boolean
debugSelect(package private) static boolean
debugSplit(package private) static final int
dim(package private) String
drawLine(package private) String
drawWindow(package private) Interpreter
ip(package private) JFrame
jf(package private) Key
keylocationmial(package private) JMenuItem
miCancel(package private) JMenuItem
miCaptureScreen(package private) JMenuItem
miChangeCtlPointParams(package private) JMenuItem
miConvertToCubicLine(package private) JMenuItem
miConvertToQuadLine(package private) JMenuItem
miConvertToStraightLine(package private) JMenuItem
miDeselect(package private) JMenuItem
miDrawLine(package private) JMenuItem
miDumpBoard(package private) JMenuItem
miJoinPoints(package private) JMenuItem
miShowArea(package private) JMenuItem
miProperties(package private) JMenuItem
miSelect(package private) JMenuItem
miSelectOrMove(package private) JMenuItem
miSeparatePoint(package private) JMenuItem
miSetColour(package private) JMenuItem
miShowArea(package private) JMenuItem
miSplitLine(package private) JMenuItem
miStartArea(package private) JMenuItem
miStartDraw(package private) JMenuItem
miStartPan(package private) JMenuItem
miStartSelect(package private) JMenuItem
miStartStraightLineFromPoint(package private) Mover
mover(package private) static final int
pad(package private) String
panWindowrobot(package private) String
selectOrMove(package private) String
selectWindow(package private) Tr
t(package private) U
u(package private) static String
zz -
Constructor Summary
ConstructorDescriptionMoverPopupMenu
(DotsCanvas dc, U u, Mover mover, Interpreter ip, Tr t) constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBoardLink
(Board board) add board linkvoid
addInterpreterLinkvoid
addKeyLink
(Key key) add key linkvoid
addModeItems
(ArrayList<JMenuItem> mial) add mode itemsvoid
board dumpvoid
createAndShowAreaMenu
(int fx, int fy, MyArea area, Tr t) create And Show Area Menuvoid
createAndShowCtlPointMenu
(int fx, int fy, Tr t) create And Show Control Point Menuvoid
createAndShowGeneralMenu
(int fx, int fy, Tr t) create And Show General Menuvoid
createAndShowLineMenu
(int fx, int fy, Tr t) create And Show Line Menuvoid
createAndShowPointMenu
(int fx, int fy, Tr t) createAndShowPointMenuvoid
createAndShowPopup
(int fx, int fy, Tr t) create And Show Popupvoid
handle deselect all Colours(package private) void
doCancel1void
do capture screenvoid
doChangeCtlPointParams todovoid
do convert to cubic linevoid
do convert to quad linevoid
do convert to straight linevoid
do deselectvoid
do join pointsvoid
do Not Show Areavoid
do properties todovoid
doSelect()
do select(package private) void
doSelect1void
do separate pointvoid
do set colourvoid
how to turn back on when turned of and nothing on boardvoid
do split linevoid
doStartArea
(int fx, int fy) do start areavoid
do start draw modevoid
so start pan modevoid
do start select modevoid
restore ep if it has been deleteddouble
get difdouble
getLength
(double x1, double x2) get length(package private) static Point
getSuitableLocation
(Point p, Dimension d, Component c) get suitable locationvoid
handleDeselect
(Line line) handle deselectvoid
handleDoubleClickSelect
(Line line) handle double click selectvoid
handleSelect
(Line line) handle selectvoid
kill popup(package private) static void
link to Log.mes(package private) static void
logPointArray
(String z, DPoint[] pa) log point arrayreturnNearest
(PltPoint p1, PltPoint pnew1, PltPoint pnew2) return nearestvoid
split linevoid
split line
-
Field Details
-
zz
zz -
debug
static boolean debugdebug -
debugJoin
static boolean debugJoindebugJoin -
debugConvertToCubic
static boolean debugConvertToCubicdebugConvertToCubic -
debugConvertToQuad
static boolean debugConvertToQuaddebugConvertToQuad -
debugDnD
static boolean debugDnDdebugDnD -
debugLine
static boolean debugLinedebugLine -
debug2click
static boolean debug2clickdebug2click -
debugMenu
static boolean debugMenudebugMenu -
debugDist
static boolean debugDistdebugDist -
debugDraw
static boolean debugDrawdebugDraw -
debugSelect
static boolean debugSelectdebugSelect -
debugSplit
static boolean debugSplitdebugSplit -
debugPan
static boolean debugPandebugPan -
dc
dc -
dim
static final int dimdim- See Also:
-
pad
static final int padpad- See Also:
-
jf
JFrame jfjf -
u
U uu -
t
Tr tt -
ip
Interpreter ipip -
mover
Mover movermover -
key
Key keykey -
board
Board boardboard -
robot
robot -
location
location -
selectOrMove
String selectOrMoveselectOrMove -
miSelectOrMove
JMenuItem miSelectOrMovemiSelectOrMove -
drawLine
String drawLinedrawLine -
miDrawLine
JMenuItem miDrawLinemiDrawLine -
panWindow
String panWindowpanWindow -
miStartPan
JMenuItem miStartPanmiStartPan -
drawWindow
String drawWindowdrawWindow -
miStartDraw
JMenuItem miStartDrawmiStartDraw -
selectWindow
String selectWindowselectWindow -
miStartSelect
JMenuItem miStartSelectmiStartSelect -
captureSreen
String captureSreencaptureSreen -
miCaptureScreen
JMenuItem miCaptureScreenmiCaptureScreen -
miStartStraightLineFromPoint
JMenuItem miStartStraightLineFromPointmiStartStraightLineFromPoint -
miProperties
JMenuItem miPropertiesmiProperties -
miSelect
JMenuItem miSelectmiSelect -
miDeselect
JMenuItem miDeselectmiDeselect -
miJoinPoints
JMenuItem miJoinPointsmiJoinPoints -
miSeparatePoint
JMenuItem miSeparatePointmiSeparatePoint -
miConvertToCubicLine
JMenuItem miConvertToCubicLinemiConvertToCubicLine -
miConvertToQuadLine
JMenuItem miConvertToQuadLinemiConvertToQuadLine -
miSplitLine
JMenuItem miSplitLinemiSplitLine -
miConvertToStraightLine
JMenuItem miConvertToStraightLinemiConvertToStraightLine -
miChangeCtlPointParams
JMenuItem miChangeCtlPointParamsmiChangeCtlPointParams -
miCancel
JMenuItem miCancelmiCancel -
miDumpBoard
JMenuItem miDumpBoardmiDumpBoard -
miSetColour
JMenuItem miSetColourmiSetColour -
miStartArea
JMenuItem miStartAreamiStartArea -
miShowArea
JMenuItem miShowAreamiShowArea -
miNotShowArea
JMenuItem miNotShowAreamiShowArea -
mial
-
-
Constructor Details
-
MoverPopupMenu
constructor- Parameters:
dc
- -u
- -mover
- -ip
- -t
- -
-
-
Method Details
-
addBoardLink
-
doCancel1
void doCancel1()doCancel1 -
doSelect1
void doSelect1()doSelect1 -
addInterpreterLink
-
addKeyLink
-
log
-
logPointArray
-
createAndShowPopup
create And Show Popup- Parameters:
fx
- -fy
- -t
- -
-
createAndShowPointMenu
createAndShowPointMenu- Parameters:
fx
- -fy
- -t
- -
-
createAndShowCtlPointMenu
create And Show Control Point Menu- Parameters:
fx
- -fy
- -t
- -
-
createAndShowAreaMenu
-
doNotShowArea
public void doNotShowArea()do Not Show Area -
doShowArea
public void doShowArea()how to turn back on when turned of and nothing on board
maybe turn on via main menu for now - todo
or search for pltpoint in all areas
-
createAndShowLineMenu
create And Show Line Menu- Parameters:
fx
- -fy
- -t
- -
-
addModeItems
-
createAndShowGeneralMenu
create And Show General Menu- Parameters:
fx
- -fy
- -t
- -
-
killPopup
public void killPopup()kill popup -
doSetColour
public void doSetColour()do set colour -
doCaptureScreen
public void doCaptureScreen()do capture screen -
doStartArea
public void doStartArea(int fx, int fy) do start area- Parameters:
fx
- -fy
- -
-
doStartSelectMode
public void doStartSelectMode()do start select mode -
doStartPanMode
public void doStartPanMode()so start pan mode -
doStartDrawMode
public void doStartDrawMode()do start draw mode -
doConvertToCubicLine
public void doConvertToCubicLine()do convert to cubic line
divide into thirds to move up two control points
-
doConvertToQuadLine
public void doConvertToQuadLine()do convert to quad line
divide into thirds to move up two control points
-
doSplitLine
public void doSplitLine()do split line -
splitLine
public void splitLine()split line -
splitLine
-
fixEP
-
returnNearest
-
getdif
-
getLength
public double getLength(double x1, double x2) get length- Parameters:
x1
- -x2
- -- Returns:
- length
-
doConvertToStraightLine
public void doConvertToStraightLine()do convert to straight line -
doSeparatePoint
public void doSeparatePoint()do separate point -
doJoinPoints
public void doJoinPoints()do join points -
boardDump
public void boardDump()board dump -
doChangeCtlPointParams
public void doChangeCtlPointParams()doChangeCtlPointParams todo -
doProperties
public void doProperties()do properties todo -
handleDoubleClickSelect
-
doDeselect
public void doDeselect()do deselect -
doSelect
public void doSelect()do select -
handleSelect
-
handleDeselect
-
deselectAllColours
public void deselectAllColours()handle deselect all Colours -
getSuitableLocation
-