|
|||||||||
| Home >> All >> com >> virtuosotechnologies >> asaph >> [ standardgui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.virtuosotechnologies.asaph.standardgui
Class LineTextView

java.lang.Objectcom.virtuosotechnologies.asaph.standardgui.LineMemberView
com.virtuosotechnologies.asaph.standardgui.LineTextView
- class LineTextView
- extends LineMemberView
LineMemberView representing a fragment of normal text
| Field Summary | |
private float |
baseline_
|
private boolean |
blank_
|
private float |
leftLimit_
|
private float |
rightLimit_
|
private java.lang.String |
str_
|
private java.awt.font.TextLayout |
textLayout_
|
| Constructor Summary | |
(package private) |
LineTextView(com.virtuosotechnologies.asaph.model.CommentString model,
java.lang.String str,
float xpos,
float width,
float baseline,
java.awt.font.FontRenderContext frc)
Constructor |
private |
LineTextView(com.virtuosotechnologies.asaph.model.SongLineMember model,
java.lang.String str,
java.awt.Font font,
float xpos,
float width,
float baseline,
java.awt.font.FontRenderContext frc)
Constructor |
(package private) |
LineTextView(com.virtuosotechnologies.asaph.model.TextString model,
java.lang.String str,
float xpos,
float width,
float baseline,
java.awt.font.FontRenderContext frc)
Constructor |
| Method Summary | |
(package private) float |
getBaseline()
Accessor for baseline |
(package private) java.awt.geom.Line2D |
getCaretSegment(int offset,
float x,
float y)
Accessor for the caret line segment given a character position and xy offsets. |
(package private) int |
getCharacterCount()
Accessor for number of characters |
(package private) int[] |
getDoubleClickOffsetsForPosition(float x,
float y)
Get offset given a position. |
(package private) float |
getHeight()
Accessor for height |
(package private) com.virtuosotechnologies.asaph.model.SongLineMember |
getModel()
Accessor for model |
(package private) int |
getOffsetForPosition(float x,
float y)
Get offset given a position. |
(package private) java.lang.String |
getText()
Get the string |
(package private) float |
getTop()
Accessor for top |
(package private) float |
getWidth()
Accessor for width |
(package private) float |
getXForOffset(int offset)
Get the x position (in coordinates relative to the line, not the component) for the given offset. |
(package private) float |
getXPos()
Accessor for x position |
private boolean |
isAlphanumeric(char ch)
|
(package private) void |
paint(java.awt.Graphics2D g2d,
float x,
float y)
Draw |
(package private) void |
setLeftLimit(float leftLimit)
Set left limit |
(package private) void |
setRightLimit(float rightLimit)
Set right limit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
textLayout_
private java.awt.font.TextLayout textLayout_
baseline_
private float baseline_
leftLimit_
private float leftLimit_
rightLimit_
private float rightLimit_
blank_
private boolean blank_
str_
private java.lang.String str_
| Constructor Detail |
LineTextView
private LineTextView(com.virtuosotechnologies.asaph.model.SongLineMember model, java.lang.String str, java.awt.Font font, float xpos, float width, float baseline, java.awt.font.FontRenderContext frc)
- Constructor
LineTextView
LineTextView(com.virtuosotechnologies.asaph.model.TextString model, java.lang.String str, float xpos, float width, float baseline, java.awt.font.FontRenderContext frc)
- Constructor
LineTextView
LineTextView(com.virtuosotechnologies.asaph.model.CommentString model, java.lang.String str, float xpos, float width, float baseline, java.awt.font.FontRenderContext frc)
- Constructor
| Method Detail |
getText
java.lang.String getText()
- Get the string
setLeftLimit
void setLeftLimit(float leftLimit)
- Set left limit
setRightLimit
void setRightLimit(float rightLimit)
- Set right limit
getCharacterCount
int getCharacterCount()
- Accessor for number of characters
getBaseline
float getBaseline()
- Accessor for baseline
getTop
float getTop()
- Accessor for top
getHeight
float getHeight()
- Accessor for height
getOffsetForPosition
int getOffsetForPosition(float x,
float y)
- Get offset given a position.
getDoubleClickOffsetsForPosition
int[] getDoubleClickOffsetsForPosition(float x,
float y)
- Get offset given a position.
isAlphanumeric
private boolean isAlphanumeric(char ch)
getXForOffset
float getXForOffset(int offset)
- Get the x position (in coordinates relative to the line, not the component)
for the given offset.
getCaretSegment
java.awt.geom.Line2D getCaretSegment(int offset, float x, float y)
- Accessor for the caret line segment given a character position and
xy offsets.
paint
void paint(java.awt.Graphics2D g2d, float x, float y)
- Draw
- Specified by:
paintin classLineMemberView
getModel
com.virtuosotechnologies.asaph.model.SongLineMember getModel()
- Accessor for model
getXPos
float getXPos()
- Accessor for x position
getWidth
float getWidth()
- Accessor for width
|
|||||||||
| Home >> All >> com >> virtuosotechnologies >> asaph >> [ standardgui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC