Class EmfIntervalBoundModelValue
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.v8.dt.dcs.ui.aef.models.chart.EmfIntervalBoundModelValue
-
- All Implemented Interfaces:
IModel
,IValidable
,IIntervalBoundModelValue
public class EmfIntervalBoundModelValue extends Model implements IIntervalBoundModelValue
EMF value implementation ofIIntervalBoundModelValue
.
-
-
Constructor Summary
Constructors Constructor Description EmfIntervalBoundModelValue(AxisInterval interval, org.eclipse.emf.ecore.EStructuralFeature feature)
Сonstructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes this model.IChange
getChange()
EmfValue<Date>
getDateValue()
Gets the date value.EmfValue<Double>
getNumberValue()
Gets the number value.boolean
isLower()
Checks if model value represents lower bound of interval.boolean
isNumeric()
Checks if model value represents numeric interval or date interval.void
setNumeric(boolean value)
Sets numeric or date mode.-
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, createWorkingCopy, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline, toString
-
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, validate, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
-
-
-
Constructor Detail
-
EmfIntervalBoundModelValue
public EmfIntervalBoundModelValue(AxisInterval interval, org.eclipse.emf.ecore.EStructuralFeature feature)
Сonstructor.- Parameters:
interval
- - interval to create model value for, cannot benull
.feature
- - interval side feature, must be either AXIS_INTERVAL__LEFT_IS_NUM or AXIS_INTERVAL__RIGHT_IS_NUM.
-
-
Method Detail
-
dispose
public void dispose()
Description copied from interface:IModel
Disposes this model.
-
isLower
public boolean isLower()
Description copied from interface:IIntervalBoundModelValue
Checks if model value represents lower bound of interval.- Specified by:
isLower
in interfaceIIntervalBoundModelValue
- Returns:
true
if model value represents lower bound of interval.
-
isNumeric
public boolean isNumeric()
Description copied from interface:IIntervalBoundModelValue
Checks if model value represents numeric interval or date interval.- Specified by:
isNumeric
in interfaceIIntervalBoundModelValue
- Returns:
true
if model value represents numeric interval.
-
getChange
public IChange getChange()
-
getNumberValue
public EmfValue<Double> getNumberValue()
Description copied from interface:IIntervalBoundModelValue
Gets the number value.- Specified by:
getNumberValue
in interfaceIIntervalBoundModelValue
- Returns:
- the number value.
-
getDateValue
public EmfValue<Date> getDateValue()
Description copied from interface:IIntervalBoundModelValue
Gets the date value.- Specified by:
getDateValue
in interfaceIIntervalBoundModelValue
- Returns:
- the date value.
-
setNumeric
public void setNumeric(boolean value)
Description copied from interface:IIntervalBoundModelValue
Sets numeric or date mode.- Specified by:
setNumeric
in interfaceIIntervalBoundModelValue
- Parameters:
value
-true
for numeric mode.
-
-