org.rubato.composer.view2d
Class Selection
java.lang.Object
org.rubato.composer.view2d.Selection
public class Selection
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Selection
public Selection(WindowConfig config)
getBounds
public java.awt.Rectangle getBounds()
getPointCount
public int getPointCount()
getPoints
public java.util.List<Point> getPoints()
addScreenPoint
public void addScreenPoint(int x,
int y)
addRealPoint
public void addRealPoint(double x,
double y)
removeScreenPoint
public boolean removeScreenPoint(int x,
int y)
moveSelectedPoint
public void moveSelectedPoint(int screenX,
int screenY)
translate
public void translate(int screenDx,
int screenDy)
selectPointNear
public boolean selectPointNear(int x,
int y)
recalcScreenCoords
public void recalcScreenCoords()
refresh
public void refresh()
contains
public boolean contains(Point pt)
contains
public boolean contains(int screenX,
int screenY)
select
public void select(boolean s)
drawBackground
public void drawBackground(java.awt.Graphics2D g)
drawPoints
public void drawPoints(java.awt.Graphics2D g)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object