org.rubato.composer.view2d
Class View2DModel

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

public class View2DModel
extends java.lang.Object


Constructor Summary
View2DModel(Form form)
           
 
Method Summary
 boolean axesDefined()
           
 Form getBaseForm()
           
 java.util.ArrayList<Denotator> getDenotators()
           
 Form getForm()
           
 Selection getNewSelection()
           
 Selection getSelectionAt(int screenX, int screenY)
           
 java.util.List<Selection> getSelections()
           
 WindowConfig getWindowConfig()
           
 Module getXModule()
           
 int[] getXPath()
           
 Module getYModule()
           
 int[] getYPath()
           
 boolean hasSelections()
           
 void removeSelection(Selection selection)
           
 double screenToWorldX(int x)
           
 double screenToWorldY(int y)
           
 boolean selectionsContain(Point point)
           
 void setDenotators(java.util.ArrayList<Denotator> denotators)
           
 void setForm(Form form)
           
 void setLimits(double xmin, double xmax, double ymin, double ymax)
           
 void setScreenSize(int width, int height)
           
 void setWindowConfig(WindowConfig windowConfig)
           
 void setXAxis(Module module, int[] path)
           
 void setXModule(Module module)
           
 void setXPath(int[] path)
           
 void setYAxis(Module module, int[] path)
           
 void setYModule(Module module)
           
 void setYPath(int[] path)
           
 void unsetXAxis()
           
 void unsetYAxis()
           
 int worldToScreenX(double x)
           
 int worldToScreenY(double y)
           
 void zoom(double fx, double fy)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

View2DModel

public View2DModel(Form form)
Method Detail

setDenotators

public void setDenotators(java.util.ArrayList<Denotator> denotators)

getDenotators

public java.util.ArrayList<Denotator> getDenotators()

setWindowConfig

public void setWindowConfig(WindowConfig windowConfig)

getWindowConfig

public WindowConfig getWindowConfig()

setLimits

public void setLimits(double xmin,
                      double xmax,
                      double ymin,
                      double ymax)

zoom

public void zoom(double fx,
                 double fy)

worldToScreenX

public int worldToScreenX(double x)

worldToScreenY

public int worldToScreenY(double y)

screenToWorldX

public double screenToWorldX(int x)

screenToWorldY

public double screenToWorldY(int y)

setScreenSize

public void setScreenSize(int width,
                          int height)

setForm

public void setForm(Form form)

getForm

public Form getForm()

getBaseForm

public Form getBaseForm()

setXAxis

public void setXAxis(Module module,
                     int[] path)

unsetXAxis

public void unsetXAxis()

setYAxis

public void setYAxis(Module module,
                     int[] path)

unsetYAxis

public void unsetYAxis()

axesDefined

public boolean axesDefined()

setXModule

public void setXModule(Module module)

getXModule

public Module getXModule()

setYModule

public void setYModule(Module module)

getYModule

public Module getYModule()

setXPath

public void setXPath(int[] path)

getXPath

public int[] getXPath()

setYPath

public void setYPath(int[] path)

getYPath

public int[] getYPath()

getNewSelection

public Selection getNewSelection()

getSelectionAt

public Selection getSelectionAt(int screenX,
                                int screenY)

getSelections

public java.util.List<Selection> getSelections()

removeSelection

public void removeSelection(Selection selection)

hasSelections

public boolean hasSelections()

selectionsContain

public boolean selectionsContain(Point point)