Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.virtuosotechnologies.asaph.standardgui
Class ChordGroupView  view ChordGroupView download ChordGroupView.java

java.lang.Object
  extended bycom.virtuosotechnologies.asaph.standardgui.ChordGroupView

class ChordGroupView
extends java.lang.Object

View of a group of chords associated with one ChordAnnotation


Nested Class Summary
(package private) static class ChordGroupView.EditResults
           
 
Field Summary
private  int anchorView_
           
private  float bottom_
           
private  java.util.List chordViews_
           
private  float leftLimit_
           
private  com.virtuosotechnologies.asaph.model.ChordAnnotation model_
           
private  LineChordPlaceholderView placeholderView_
           
private  float rightLimit_
           
private  float top_
           
private  float width_
           
private  float xpos_
           
 
Constructor Summary
(package private) ChordGroupView(com.virtuosotechnologies.asaph.model.ChordAnnotation model, float xpos, float width, float top, float bottom)
          Constructor
 
Method Summary
(package private)  void addChordFragment(ChordFragmentView view)
           
private  int fillStringList(int leftView, int leftPos, int rightView, int rightPos, java.util.List list)
           
private  int[] fillStringList(java.lang.String string, java.util.List list)
           
(package private)  int getFragmentCount()
          Get number of chord fragment views
(package private)  float getLeftLimit()
          Get left limit
(package private)  com.virtuosotechnologies.asaph.model.ChordAnnotation getModel()
          Get model
(package private)  ChordFragmentView getNthChordFragment(int n)
          Get indexed chord fragment view
(package private)  LineChordPlaceholderView getPlaceholderView()
          Get corresponding placeholder view
(package private)  java.lang.String getRangeAsString(int leftView, int leftPos, int rightView, int rightPos)
           
(package private)  ChordGroupView.EditResults getReplacementResults(int leftView, int leftPos, int rightView, int rightPos, java.lang.String replacement)
           
(package private)  float getRightLimit()
          Get right limit
(package private)  float getXPos()
          Accessor for x position
(package private)  boolean isInXLimits(float x)
          Is an x position within the limits
(package private)  void paint(java.awt.Graphics2D g2d, float x, float y)
          Draw
(package private)  void paintBackground(java.awt.Graphics2D g2d, float x, float y)
          Draw
(package private)  void setLeftLimit(float limit)
          Set left limit
(package private)  void setPlaceholderView(LineChordPlaceholderView placeholderView)
           
(package private)  void setRightLimit(float limit)
          Set right limit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model_

private com.virtuosotechnologies.asaph.model.ChordAnnotation model_

xpos_

private float xpos_

width_

private float width_

top_

private float top_

bottom_

private float bottom_

placeholderView_

private LineChordPlaceholderView placeholderView_

chordViews_

private java.util.List chordViews_

anchorView_

private int anchorView_

leftLimit_

private float leftLimit_

rightLimit_

private float rightLimit_
Constructor Detail

ChordGroupView

ChordGroupView(com.virtuosotechnologies.asaph.model.ChordAnnotation model,
               float xpos,
               float width,
               float top,
               float bottom)
Constructor

Method Detail

setPlaceholderView

void setPlaceholderView(LineChordPlaceholderView placeholderView)

addChordFragment

void addChordFragment(ChordFragmentView view)

getModel

com.virtuosotechnologies.asaph.model.ChordAnnotation getModel()
Get model


getXPos

float getXPos()
Accessor for x position


getPlaceholderView

LineChordPlaceholderView getPlaceholderView()
Get corresponding placeholder view


isInXLimits

boolean isInXLimits(float x)
Is an x position within the limits


getLeftLimit

float getLeftLimit()
Get left limit


getRightLimit

float getRightLimit()
Get right limit


setLeftLimit

void setLeftLimit(float limit)
Set left limit


setRightLimit

void setRightLimit(float limit)
Set right limit


getFragmentCount

int getFragmentCount()
Get number of chord fragment views


getNthChordFragment

ChordFragmentView getNthChordFragment(int n)
Get indexed chord fragment view


paintBackground

void paintBackground(java.awt.Graphics2D g2d,
                     float x,
                     float y)
Draw


paint

void paint(java.awt.Graphics2D g2d,
           float x,
           float y)
Draw


getReplacementResults

ChordGroupView.EditResults getReplacementResults(int leftView,
                                                 int leftPos,
                                                 int rightView,
                                                 int rightPos,
                                                 java.lang.String replacement)

fillStringList

private int[] fillStringList(java.lang.String string,
                             java.util.List list)

fillStringList

private int fillStringList(int leftView,
                           int leftPos,
                           int rightView,
                           int rightPos,
                           java.util.List list)

getRangeAsString

java.lang.String getRangeAsString(int leftView,
                                  int leftPos,
                                  int rightView,
                                  int rightPos)