org.jplot2d.element.impl
Class AxisRangeLockGroupImpl
- java.lang.Object
-
- org.jplot2d.element.impl.ElementImpl
-
- org.jplot2d.element.impl.AxisRangeLockGroupImpl
-
- All Implemented Interfaces:
- AxisRangeLockGroup, Element, AxisRangeLockGroupEx, ElementEx, Joinable
public class AxisRangeLockGroupImpl extends ElementImpl implements AxisRangeLockGroupEx
-
-
Constructor Summary
Constructors Constructor and Description AxisRangeLockGroupImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddRangeManager(AxisTransformEx axis)booleancalcAutoRange()Calculate auto range when necessary.voidcopyFrom(ElementEx src)Copies all properties from given src to this element.java.lang.StringgetFullId()Returns the full id of this component.java.lang.StringgetId()Returns the id string of this elementInvokeStepgetInvokeStepFormParent()Return the invoke step to get this object from its parent.AxisTransformExgetParent()Gets the parent of this component.ElementExgetPrim()Returns the primary referencer.AxisTransformExgetPrimaryAxis()AxisTransformEx[]getRangeManagers()Returns all axes belongs to this group.intindexOfRangeManager(AxisTransformEx rangeManager)booleanisAutoRange()Return the autorange status of this axis group.booleanisZoomable()Returnstrueif this AxisRangeLockGroup can be zoomed byPlot.zoomXRange(double, double)orPlot.zoomYRange(double, double).voidnotify(Notice msg)Element call this method to notify message to its parent.voidreAutoRange()Force re-autorange this axis group.voidremoveRangeManager(AxisTransformEx axis)voidsetAutoRange(boolean autoRange)If true set the range of the axis group to allow to display the minimum and maximum value of the Layer.voidsetZoomable(boolean zoomable)Sets if this AxisRangeLockGroup can be zoomed byPlot.zoomXRange(double, double)orPlot.zoomYRange(double, double).voidvalidateAxesRange()Validate axes range after axis type or axis transform type changed.voidzoomNormalRange(Range npRange)Zoom the given normalized range to entire axis.voidzoomRange(double start, double end)Zoom the given range to entire axisvoidzoomVirtualRange(Range range, java.util.Map<AxisTransformEx,NormalTransform> vtMap)-
Methods inherited from class org.jplot2d.element.impl.ElementImpl
copyStructure, getEnvironment, setParent, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jplot2d.element.impl.ElementEx
copyStructure, setParent
-
Methods inherited from interface org.jplot2d.element.Element
getEnvironment
-
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Description copied from interface:ElementReturns the id string of this element
-
getFullId
public java.lang.String getFullId()
Description copied from interface:ElementExReturns the full id of this component. The full id is composed of series of ids concatenated with dots. The 1st id is the id of this element, the 2nd id is the id of the parent of this element, etc, until the root plot.- Specified by:
getFullIdin interfaceElementEx- Overrides:
getFullIdin classElementImpl- Returns:
- the full id of this component
-
getInvokeStepFormParent
public InvokeStep getInvokeStepFormParent()
Description copied from interface:ElementExReturn the invoke step to get this object from its parent.- Specified by:
getInvokeStepFormParentin interfaceElementEx- Returns:
- the invoke step
-
getParent
public AxisTransformEx getParent()
Description copied from interface:ElementGets the parent of this component.- Specified by:
getParentin interfaceElement- Specified by:
getParentin interfaceAxisRangeLockGroupEx- Specified by:
getParentin interfaceElementEx- Overrides:
getParentin classElementImpl- Returns:
- the parent of this component
-
getPrim
public ElementEx getPrim()
Description copied from interface:JoinableReturns the primary referencer.
-
notify
public void notify(Notice msg)
Description copied from interface:ElementExElement call this method to notify message to its parent.- Specified by:
notifyin interfaceElementEx- Overrides:
notifyin classElementImpl- Parameters:
msg- the notice message
-
copyFrom
public void copyFrom(ElementEx src)
Description copied from interface:ElementExCopies all properties from given src to this element. Notice properties of sub-elements are not copied over.- Specified by:
copyFromin interfaceElementEx- Overrides:
copyFromin classElementImpl- Parameters:
src- the src
-
indexOfRangeManager
public int indexOfRangeManager(AxisTransformEx rangeManager)
- Specified by:
indexOfRangeManagerin interfaceAxisRangeLockGroupEx
-
getRangeManagers
public AxisTransformEx[] getRangeManagers()
Description copied from interface:AxisRangeLockGroupReturns all axes belongs to this group.- Specified by:
getRangeManagersin interfaceAxisRangeLockGroup- Specified by:
getRangeManagersin interfaceAxisRangeLockGroupEx- Returns:
- all axes belongs to this group
-
addRangeManager
public void addRangeManager(AxisTransformEx axis)
- Specified by:
addRangeManagerin interfaceAxisRangeLockGroupEx
-
removeRangeManager
public void removeRangeManager(AxisTransformEx axis)
- Specified by:
removeRangeManagerin interfaceAxisRangeLockGroupEx
-
getPrimaryAxis
public AxisTransformEx getPrimaryAxis()
- Specified by:
getPrimaryAxisin interfaceAxisRangeLockGroupEx
-
isAutoRange
public boolean isAutoRange()
Description copied from interface:AxisRangeLockGroupReturn the autorange status of this axis group.- Specified by:
isAutoRangein interfaceAxisRangeLockGroup- Returns:
- true if the axis is in autorange status
-
setAutoRange
public void setAutoRange(boolean autoRange)
Description copied from interface:AxisRangeLockGroupIf true set the range of the axis group to allow to display the minimum and maximum value of the Layer.- Specified by:
setAutoRangein interfaceAxisRangeLockGroup
-
isZoomable
public boolean isZoomable()
Description copied from interface:AxisRangeLockGroupReturnstrueif this AxisRangeLockGroup can be zoomed byPlot.zoomXRange(double, double)orPlot.zoomYRange(double, double). By default an AxisRangeLockGroup is zoomable.- Specified by:
isZoomablein interfaceAxisRangeLockGroup- Returns:
- if this AxisRangeLockGroup can be zoomed
-
setZoomable
public void setZoomable(boolean zoomable)
Description copied from interface:AxisRangeLockGroupSets if this AxisRangeLockGroup can be zoomed byPlot.zoomXRange(double, double)orPlot.zoomYRange(double, double).- Specified by:
setZoomablein interfaceAxisRangeLockGroup- Parameters:
zoomable- the flag
-
reAutoRange
public void reAutoRange()
Description copied from interface:AxisRangeLockGroupExForce re-autorange this axis group. This method is called when layer data set changes, layer attach/detach to an axis of this group, or axis type change- Specified by:
reAutoRangein interfaceAxisRangeLockGroupEx
-
calcAutoRange
public boolean calcAutoRange()
Description copied from interface:AxisRangeLockGroupExCalculate auto range when necessary.- Specified by:
calcAutoRangein interfaceAxisRangeLockGroupEx- Returns:
trueif auto range is calculated for this group
-
zoomVirtualRange
public void zoomVirtualRange(Range range, java.util.Map<AxisTransformEx,NormalTransform> vtMap)
- Specified by:
zoomVirtualRangein interfaceAxisRangeLockGroupEx
-
zoomRange
public void zoomRange(double start, double end)Description copied from interface:AxisRangeLockGroupZoom the given range to entire axis- Specified by:
zoomRangein interfaceAxisRangeLockGroup- Parameters:
start- the normalized startend- the normalized end
-
zoomNormalRange
public void zoomNormalRange(Range npRange)
Description copied from interface:AxisRangeLockGroupExZoom the given normalized range to entire axis. All axes in this lock group are changed. If the orthogonal axes are autoRange, they need to be re-autoRange.- Specified by:
zoomNormalRangein interfaceAxisRangeLockGroupEx
-
validateAxesRange
public void validateAxesRange()
Description copied from interface:AxisRangeLockGroupExValidate axes range after axis type or axis transform type changed.- Specified by:
validateAxesRangein interfaceAxisRangeLockGroupEx
-
-
DMelt 3.0 © DataMelt by jWork.ORG