You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
37 lines
1.0 KiB
package com.fr.design.mainframe; |
|
|
|
import com.fr.base.AutoChangeLineProvider; |
|
import com.fr.base.DefaultAutoChangeLine; |
|
import com.fr.base.ScreenResolution; |
|
import com.fr.design.fun.ReportLengthUNITProvider; |
|
import com.fr.design.unit.UnitConvertUtil; |
|
|
|
public class AbsoluteMeasureUIMode implements DesignerUIMode { |
|
|
|
private static class AbsoluteMeasureUIModeHolder { |
|
private static final AbsoluteMeasureUIMode absoluteMeasureUIMode = new AbsoluteMeasureUIMode(); |
|
} |
|
|
|
private AbsoluteMeasureUIMode() { |
|
|
|
} |
|
|
|
public static AbsoluteMeasureUIMode getInstance() { |
|
return AbsoluteMeasureUIModeHolder.absoluteMeasureUIMode; |
|
} |
|
|
|
@Override |
|
public ReportLengthUNITProvider parseLengthUNIT(int unitType) { |
|
return UnitConvertUtil.parseLengthUNIT(unitType); |
|
} |
|
|
|
@Override |
|
public AutoChangeLineProvider getAutoChangeLineStrategy() { |
|
return new DefaultAutoChangeLine(); |
|
} |
|
|
|
@Override |
|
public int getScreenResolution() { |
|
return ScreenResolution.getScreenResolution(); |
|
} |
|
} |