MCPcopy Create free account
hub / github.com/catabriga/graphwar / mouseMoved

Method mouseMoved

src/Graphwar/GraphButton.java:121–140  ·  view source on GitHub ↗
(MouseEvent arg0)

Source from the content-addressed store, hash-verified

119 }
120
121 public void mouseMoved(MouseEvent arg0)
122 {
123 if(contains(arg0.getX(), arg0.getY()))
124 {
125 if(this.mouseOver==false)
126 {
127 this.mouseOver = true;
128 this.repaint();
129 }
130 }
131 else
132 {
133 if(this.mouseOver==true)
134 {
135 this.mouseOver = false;
136 this.repaint();
137 }
138
139 }
140 }
141
142 public void mouseClicked(MouseEvent arg0)
143 {

Callers

nothing calls this directly

Calls 3

containsMethod · 0.95
getXMethod · 0.45
getYMethod · 0.45

Tested by

no test coverage detected