org.rubato.composer.view2d
Class Selection

java.lang.Object
  extended by org.rubato.composer.view2d.Selection

public class Selection
extends java.lang.Object


Constructor Summary
Selection(WindowConfig config)
           
 
Method Summary
 void addRealPoint(double x, double y)
           
 void addScreenPoint(int x, int y)
           
 boolean contains(int screenX, int screenY)
           
 boolean contains(Point pt)
           
 void drawBackground(java.awt.Graphics2D g)
           
 void drawPoints(java.awt.Graphics2D g)
           
 java.awt.Rectangle getBounds()
           
 int getPointCount()
           
 java.util.List<Point> getPoints()
           
 void moveSelectedPoint(int screenX, int screenY)
           
 void recalcScreenCoords()
           
 void refresh()
           
 boolean removeScreenPoint(int x, int y)
           
 void select(boolean s)
           
 boolean selectPointNear(int x, int y)
           
 java.lang.String toString()
           
 void translate(int screenDx, int screenDy)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Selection

public Selection(WindowConfig config)
Method Detail

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