abc4j API Specification

abc.ui.swing
Interface JScoreElement


public interface JScoreElement


Method Summary
 java.awt.geom.Point2D getBase()
          Return the base of this element.
 java.awt.geom.Rectangle2D getBoundingBox()
          Returns the bounding box for this score element.
 MusicElement getMusicElement()
          Returns the music element represented by this graphical score element.
 JScoreElement getScoreElementAt(java.awt.Point location)
          Returns the score element whose bouding box contains the given location.
 double getWidth()
          Returns the width of this score element.
 

Method Detail

getWidth

double getWidth()
Returns the width of this score element.

Returns:
The width of this score element.

getMusicElement

MusicElement getMusicElement()
Returns the music element represented by this graphical score element.

Returns:
The music element represented by this graphical score element. null if this graphical score element is not related to any music element.
See Also:
MusicElement

getBoundingBox

java.awt.geom.Rectangle2D getBoundingBox()
Returns the bounding box for this score element.

Returns:
the bounding box for this score element.

getScoreElementAt

JScoreElement getScoreElementAt(java.awt.Point location)
Returns the score element whose bouding box contains the given location.

Parameters:
location - A location.
Returns:
The score element whose bouding box contains the given location. null is returned if no matching element has been found.

getBase

java.awt.geom.Point2D getBase()
Return the base of this element.

Returns:
The base of this element. The base is the point that is used as a reference to draw the element at this location.

abc4j API Specification

Submit a bug or feature