super(datastore);
}
- public Rangetype(VamsasAppDatastore datastore, Vobject vobj, Class jvClass)
+ public Rangetype(VamsasAppDatastore datastore, Vobject vobj,
+ Class jvClass)
{
super(datastore, vobj, jvClass);
}
int[] se = null;
if (dseta.getSegCount() > 0 && dseta.getPosCount() > 0)
{
- throw new Error(MessageManager.getString("error.invalid_vamsas_rangetype_cannot_resolve_lists"));
+ throw new Error(MessageManager.getString(
+ "error.invalid_vamsas_rangetype_cannot_resolve_lists"));
}
if (dseta.getSegCount() > 0)
{
// could do a polarity for pos range too. and pass back indication of
// discontinuities.
int pos = dseta.getPos(0).getI();
- se = new int[]
- { pos, pos };
+ se = new int[] { pos, pos };
for (int p = 0, pSize = dseta.getPosCount(); p < pSize; p++)
{
pos = dseta.getPos(p).getI();
int[] se = null;
if (dseta.getSegCount() > 0 && dseta.getPosCount() > 0)
{
- throw new Error(MessageManager.getString("error.invalid_vamsas_rangetype_cannot_resolve_lists"));
+ throw new Error(MessageManager.getString(
+ "error.invalid_vamsas_rangetype_cannot_resolve_lists"));
}
if (dseta.getSegCount() > 0)
{
int[] se = null;
if (range.getSegCount() > 0 && range.getPosCount() > 0)
{
- throw new Error(MessageManager.getString("error.invalid_vamsas_rangetype_cannot_resolve_lists"));
+ throw new Error(MessageManager.getString(
+ "error.invalid_vamsas_rangetype_cannot_resolve_lists"));
}
if (range.getSegCount() > 0)
{
* @param maprange
* where the from range is the local mapped range, and the to range
* is the 'mapped' range in the MapRangeType
- * @param default unit for local
- * @param default unit for mapped
+ * @param default
+ * unit for local
+ * @param default
+ * unit for mapped
* @return MapList
*/
protected jalview.util.MapList parsemapType(MapType maprange, int localu,
int[] mappedRange = getIntervals(maprange.getMapped());
long lu = maprange.getLocal().hasUnit() ? maprange.getLocal().getUnit()
: localu;
- long mu = maprange.getMapped().hasUnit() ? maprange.getMapped()
- .getUnit() : mappedu;
+ long mu = maprange.getMapped().hasUnit()
+ ? maprange.getMapped().getUnit()
+ : mappedu;
ml = new jalview.util.MapList(localRange, mappedRange, (int) lu,
(int) mu);
return ml;
{
if (ml == null)
{
- throw new Error(MessageManager.getString("error.implementation_error_maplist_is_null"));
+ throw new Error(MessageManager
+ .getString("error.implementation_error_maplist_is_null"));
}
maprange.setLocal(new Local());
maprange.setMapped(new Mapped());