Java Code Examples for org.jfree.ui.TextAnchor#equals()

The following examples show how to use org.jfree.ui.TextAnchor#equals() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AttrStringUtils.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
private static boolean isHorizontalRight(TextAnchor anchor) {
    return anchor.equals(TextAnchor.TOP_RIGHT) 
            || anchor.equals(TextAnchor.CENTER_RIGHT) 
            || anchor.equals(TextAnchor.HALF_ASCENT_RIGHT) 
            || anchor.equals(TextAnchor.BASELINE_RIGHT)
            || anchor.equals(TextAnchor.BOTTOM_RIGHT);
}
 
Example 2
Source File: AttrStringUtils.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
private static boolean isHorizontalRight(TextAnchor anchor) {
    return anchor.equals(TextAnchor.TOP_RIGHT) 
            || anchor.equals(TextAnchor.CENTER_RIGHT) 
            || anchor.equals(TextAnchor.HALF_ASCENT_RIGHT) 
            || anchor.equals(TextAnchor.BASELINE_RIGHT)
            || anchor.equals(TextAnchor.BOTTOM_RIGHT);
}
 
Example 3
Source File: AttrStringUtils.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
private static boolean isHorizontalLeft(TextAnchor anchor) {
    return anchor.equals(TextAnchor.TOP_LEFT) 
            || anchor.equals(TextAnchor.CENTER_LEFT) 
            || anchor.equals(TextAnchor.HALF_ASCENT_LEFT) 
            || anchor.equals(TextAnchor.BASELINE_LEFT) 
            || anchor.equals(TextAnchor.BOTTOM_LEFT);
}
 
Example 4
Source File: AttrStringUtils.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
private static boolean isHorizontalCenter(TextAnchor anchor) {
    return anchor.equals(TextAnchor.TOP_CENTER) 
            || anchor.equals(TextAnchor.CENTER) 
            || anchor.equals(TextAnchor.HALF_ASCENT_CENTER) 
            || anchor.equals(TextAnchor.BASELINE_CENTER) 
            || anchor.equals(TextAnchor.BOTTOM_CENTER);
}
 
Example 5
Source File: AttrStringUtils.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
private static boolean isHorizontalRight(TextAnchor anchor) {
    return anchor.equals(TextAnchor.TOP_RIGHT) 
            || anchor.equals(TextAnchor.CENTER_RIGHT) 
            || anchor.equals(TextAnchor.HALF_ASCENT_RIGHT) 
            || anchor.equals(TextAnchor.BASELINE_RIGHT)
            || anchor.equals(TextAnchor.BOTTOM_RIGHT);
}
 
Example 6
Source File: AttrStringUtils.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
private static boolean isHorizontalCenter(TextAnchor anchor) {
    return anchor.equals(TextAnchor.TOP_CENTER) 
            || anchor.equals(TextAnchor.CENTER) 
            || anchor.equals(TextAnchor.HALF_ASCENT_CENTER) 
            || anchor.equals(TextAnchor.BASELINE_CENTER) 
            || anchor.equals(TextAnchor.BOTTOM_CENTER);
}
 
Example 7
Source File: AttrStringUtils.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
private static boolean isHorizontalCenter(TextAnchor anchor) {
    return anchor.equals(TextAnchor.TOP_CENTER) 
            || anchor.equals(TextAnchor.CENTER) 
            || anchor.equals(TextAnchor.HALF_ASCENT_CENTER) 
            || anchor.equals(TextAnchor.BASELINE_CENTER) 
            || anchor.equals(TextAnchor.BOTTOM_CENTER);
}
 
Example 8
Source File: AttrStringUtils.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
private static boolean isHorizontalRight(TextAnchor anchor) {
    return anchor.equals(TextAnchor.TOP_RIGHT) 
            || anchor.equals(TextAnchor.CENTER_RIGHT) 
            || anchor.equals(TextAnchor.HALF_ASCENT_RIGHT) 
            || anchor.equals(TextAnchor.BASELINE_RIGHT)
            || anchor.equals(TextAnchor.BOTTOM_RIGHT);
}
 
Example 9
Source File: AttrStringUtils.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
private static boolean isHorizontalLeft(TextAnchor anchor) {
    return anchor.equals(TextAnchor.TOP_LEFT) 
            || anchor.equals(TextAnchor.CENTER_LEFT) 
            || anchor.equals(TextAnchor.HALF_ASCENT_LEFT) 
            || anchor.equals(TextAnchor.BASELINE_LEFT) 
            || anchor.equals(TextAnchor.BOTTOM_LEFT);
}
 
Example 10
Source File: AttrStringUtils.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
private static boolean isHorizontalLeft(TextAnchor anchor) {
    return anchor.equals(TextAnchor.TOP_LEFT) 
            || anchor.equals(TextAnchor.CENTER_LEFT) 
            || anchor.equals(TextAnchor.HALF_ASCENT_LEFT) 
            || anchor.equals(TextAnchor.BASELINE_LEFT) 
            || anchor.equals(TextAnchor.BOTTOM_LEFT);
}
 
Example 11
Source File: AttrStringUtils.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
private static boolean isHorizontalLeft(TextAnchor anchor) {
    return anchor.equals(TextAnchor.TOP_LEFT) 
            || anchor.equals(TextAnchor.CENTER_LEFT) 
            || anchor.equals(TextAnchor.HALF_ASCENT_LEFT) 
            || anchor.equals(TextAnchor.BASELINE_LEFT) 
            || anchor.equals(TextAnchor.BOTTOM_LEFT);
}
 
Example 12
Source File: AttrStringUtils.java    From buffer_bci with GNU General Public License v3.0 4 votes vote down vote up
private static boolean isBaseline(TextAnchor anchor) {
    return anchor.equals(TextAnchor.BASELINE_LEFT) 
            || anchor.equals(TextAnchor.BASELINE_CENTER) 
            || anchor.equals(TextAnchor.BASELINE_RIGHT);
}
 
Example 13
Source File: AttrStringUtils.java    From SIMVA-SoS with Apache License 2.0 4 votes vote down vote up
private static boolean isHalfAscent(TextAnchor anchor) {
    return anchor.equals(TextAnchor.HALF_ASCENT_LEFT) 
            || anchor.equals(TextAnchor.HALF_ASCENT_CENTER)
            || anchor.equals(TextAnchor.HALF_ASCENT_RIGHT);
}
 
Example 14
Source File: AttrStringUtils.java    From SIMVA-SoS with Apache License 2.0 4 votes vote down vote up
private static boolean isBaseline(TextAnchor anchor) {
    return anchor.equals(TextAnchor.BASELINE_LEFT) 
            || anchor.equals(TextAnchor.BASELINE_CENTER) 
            || anchor.equals(TextAnchor.BASELINE_RIGHT);
}
 
Example 15
Source File: AttrStringUtils.java    From buffer_bci with GNU General Public License v3.0 4 votes vote down vote up
private static boolean isBottom(TextAnchor anchor) {
    return anchor.equals(TextAnchor.BOTTOM_LEFT) 
            || anchor.equals(TextAnchor.BOTTOM_CENTER) 
            || anchor.equals(TextAnchor.BOTTOM_RIGHT);
}
 
Example 16
Source File: AttrStringUtils.java    From ECG-Viewer with GNU General Public License v2.0 4 votes vote down vote up
private static boolean isHalfHeight(TextAnchor anchor) {
    return anchor.equals(TextAnchor.CENTER_LEFT) 
            || anchor.equals(TextAnchor.CENTER) 
            || anchor.equals(TextAnchor.CENTER_RIGHT);
}
 
Example 17
Source File: AttrStringUtils.java    From ccu-historian with GNU General Public License v3.0 4 votes vote down vote up
private static boolean isBaseline(TextAnchor anchor) {
    return anchor.equals(TextAnchor.BASELINE_LEFT) 
            || anchor.equals(TextAnchor.BASELINE_CENTER) 
            || anchor.equals(TextAnchor.BASELINE_RIGHT);
}
 
Example 18
Source File: AttrStringUtils.java    From buffer_bci with GNU General Public License v3.0 4 votes vote down vote up
private static boolean isHalfAscent(TextAnchor anchor) {
    return anchor.equals(TextAnchor.HALF_ASCENT_LEFT) 
            || anchor.equals(TextAnchor.HALF_ASCENT_CENTER)
            || anchor.equals(TextAnchor.HALF_ASCENT_RIGHT);
}
 
Example 19
Source File: AttrStringUtils.java    From buffer_bci with GNU General Public License v3.0 4 votes vote down vote up
private static boolean isHalfAscent(TextAnchor anchor) {
    return anchor.equals(TextAnchor.HALF_ASCENT_LEFT) 
            || anchor.equals(TextAnchor.HALF_ASCENT_CENTER)
            || anchor.equals(TextAnchor.HALF_ASCENT_RIGHT);
}
 
Example 20
Source File: AttrStringUtils.java    From openstock with GNU General Public License v3.0 4 votes vote down vote up
private static boolean isBaseline(TextAnchor anchor) {
    return anchor.equals(TextAnchor.BASELINE_LEFT) 
            || anchor.equals(TextAnchor.BASELINE_CENTER) 
            || anchor.equals(TextAnchor.BASELINE_RIGHT);
}