public class SelectBoxDrawing
extends usf.saav.common.mvc.ControllerComponent.Default
implements usf.saav.common.mvc.ViewComponent, usf.saav.common.mvc.ControllerComponent
Constructor and Description |
---|
SelectBoxDrawing()
Instantiates a new select box drawing.
|
Modifier and Type | Method and Description |
---|---|
void |
clearSelection()
Clear selection.
|
void |
draw(usf.saav.common.mvc.swing.TGraphics g) |
void |
drawLegend(usf.saav.common.mvc.swing.TGraphics g) |
usf.saav.common.range.IntRange1D[] |
getSelection()
Gets the selection.
|
boolean |
mouseDragged(int mouseX,
int mouseY) |
boolean |
mousePressed(int mouseX,
int mouseY) |
boolean |
mouseReleased() |
void |
setCoordinateSystem(CoordinateSystem csc)
Sets the coordinate system.
|
void |
update() |
keyPressed, mouseDoubleClick, mouseMoved, mouseWheel
getHeight, getPosition, getU0, getV0, getWidth, inRange, setPosition, setPosition
disable, enable, isEnabled, setEnabled, setup
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
keyPressed, mouseDoubleClick, mouseMoved, mouseWheel
public SelectBoxDrawing()
public usf.saav.common.range.IntRange1D[] getSelection()
public void setCoordinateSystem(CoordinateSystem csc)
csc
- the new coordinate systempublic void draw(usf.saav.common.mvc.swing.TGraphics g)
draw
in interface usf.saav.common.mvc.ViewComponent
public void drawLegend(usf.saav.common.mvc.swing.TGraphics g)
drawLegend
in interface usf.saav.common.mvc.ViewComponent
public boolean mousePressed(int mouseX, int mouseY)
mousePressed
in interface usf.saav.common.mvc.ControllerComponent
mousePressed
in class usf.saav.common.mvc.ControllerComponent.Default
public boolean mouseDragged(int mouseX, int mouseY)
mouseDragged
in interface usf.saav.common.mvc.ControllerComponent
mouseDragged
in class usf.saav.common.mvc.ControllerComponent.Default
public boolean mouseReleased()
mouseReleased
in interface usf.saav.common.mvc.ControllerComponent
mouseReleased
in class usf.saav.common.mvc.ControllerComponent.Default
public void clearSelection()
public void update()
update
in interface usf.saav.common.mvc.BasicComponent
update
in class usf.saav.common.mvc.BasicComponent.Default