Search in sources :

Example 1 with CoordsType

use of eu.transkribus.core.model.beans.pagecontent.CoordsType in project TranskribusCore by Transkribus.

the class Pdf2TrpDoc method rect2Coords.

private static CoordsType rect2Coords(Rectangle r) {
    CoordsType coords = new CoordsType();
    coords.setPoints(PointStrUtils.pointsToString(r));
    return coords;
}
Also used : CoordsType(eu.transkribus.core.model.beans.pagecontent.CoordsType)

Example 2 with CoordsType

use of eu.transkribus.core.model.beans.pagecontent.CoordsType in project TranskribusCore by Transkribus.

the class KlosterTeiToPageParser method bbToCoords.

static CoordsType bbToCoords(int x, int y, int w, int h) {
    CoordsType ct = new CoordsType();
    ct.setPoints(bbToCoordsStr(x, y, w, h));
    return ct;
}
Also used : CoordsType(eu.transkribus.core.model.beans.pagecontent.CoordsType)

Example 3 with CoordsType

use of eu.transkribus.core.model.beans.pagecontent.CoordsType in project TranskribusCore by Transkribus.

the class TrpTextLineType method setCoordinates.

@Override
public void setCoordinates(String value, Object who) {
    CoordsType coords = new CoordsType();
    coords.setPoints(value);
    setCoords(coords);
    observable.setChangedAndNotifyObservers(new TrpCoordsChangedEvent(who));
}
Also used : CoordsType(eu.transkribus.core.model.beans.pagecontent.CoordsType) TrpCoordsChangedEvent(eu.transkribus.core.model.beans.pagecontent_trp.observable.TrpObserveEvent.TrpCoordsChangedEvent)

Example 4 with CoordsType

use of eu.transkribus.core.model.beans.pagecontent.CoordsType in project TranskribusCore by Transkribus.

the class TrpWordType method setCoordinates.

@Override
public void setCoordinates(String value, Object who) {
    CoordsType coords = new CoordsType();
    coords.setPoints(value);
    setCoords(coords);
    observable.setChangedAndNotifyObservers(new TrpCoordsChangedEvent(who));
}
Also used : CoordsType(eu.transkribus.core.model.beans.pagecontent.CoordsType) TrpCoordsChangedEvent(eu.transkribus.core.model.beans.pagecontent_trp.observable.TrpObserveEvent.TrpCoordsChangedEvent)

Example 5 with CoordsType

use of eu.transkribus.core.model.beans.pagecontent.CoordsType in project TranskribusCore by Transkribus.

the class TrpPrintSpaceType method setCoordinates.

@Override
public void setCoordinates(String value, Object who) {
    CoordsType coords = new CoordsType();
    coords.setPoints(value);
    setCoords(coords);
    observable.setChangedAndNotifyObservers(new TrpCoordsChangedEvent(who));
}
Also used : CoordsType(eu.transkribus.core.model.beans.pagecontent.CoordsType) TrpCoordsChangedEvent(eu.transkribus.core.model.beans.pagecontent_trp.observable.TrpObserveEvent.TrpCoordsChangedEvent)

Aggregations

CoordsType (eu.transkribus.core.model.beans.pagecontent.CoordsType)10 TrpCoordsChangedEvent (eu.transkribus.core.model.beans.pagecontent_trp.observable.TrpObserveEvent.TrpCoordsChangedEvent)5 PcGtsType (eu.transkribus.core.model.beans.pagecontent.PcGtsType)1 RegionType (eu.transkribus.core.model.beans.pagecontent.RegionType)1 TableRegionType (eu.transkribus.core.model.beans.pagecontent.TableRegionType)1 TextRegionType (eu.transkribus.core.model.beans.pagecontent.TextRegionType)1 TrpRegionType (eu.transkribus.core.model.beans.pagecontent_trp.TrpRegionType)1 TrpTextRegionType (eu.transkribus.core.model.beans.pagecontent_trp.TrpTextRegionType)1 Polygon (java.awt.Polygon)1 File (java.io.File)1