org.jplot2d.element.impl
Class PlotImpl
- java.lang.Object
-
- org.jplot2d.element.impl.ElementImpl
-
- org.jplot2d.element.impl.ComponentImpl
-
- org.jplot2d.element.impl.ContainerImpl
-
- org.jplot2d.element.impl.PlotImpl
-
- All Implemented Interfaces:
- Element, ComponentEx, ContainerEx, ElementEx, PlotEx, PComponent, Plot
public class PlotImpl extends ContainerImpl implements PlotEx
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadaptiveZoomX()Adaptive zoom the x range for all axes in this plot.voidadaptiveZoomY()Adaptive zoom the y range for all axes in this plot.voidaddLayer(Layer layer)Add a layer to this plot.voidaddLayer(Layer layer, Axis xaxis, Axis yaxis)Add a layer to this plot.voidaddLayer(Layer layer, AxisTransform xRangeManager, AxisTransform yRangeManager)Add a layer to this plot.voidaddSubplot(Plot subplot, java.lang.Object constraint)Add a subplot with a constraint to this plot.voidaddTitle(Title title)voidaddXAxes(Axis[] axes)Add the given axes created byElementFactory.createAxes(int)as x-axesvoidaddXAxis(Axis axis)voidaddYAxes(Axis[] axes)Add the given axes created byElementFactory.createAxes(int)as y-axesvoidaddYAxis(Axis axis)booleancanContribute()Returnstrueif this component can contribute visible parts to plot rendering artifact when this component is visible.voidcommit()Apply all pending changes on this plot.voidcopyFrom(ElementEx src)Copies all properties from given src to this element.PlotImplcopyStructure(java.util.Map<ElementEx,ElementEx> orig2copyMap)Create a structural copy of this element and put them into orig2copyMap.PlotImplcopyStructureCascade(java.util.Map<ElementEx,ElementEx> orig2copyMap)Create a structural copy of this plot, without linking layer and axis transform.voiddraw(java.awt.Graphics2D g)Draw this component only.java.awt.geom.Rectangle2DgetBounds()Returns the paper bounds relative to its location.ComponentEx[]getComponents()Returns the components in this container.java.lang.ObjectgetConstraint(Plot subplot)Returns the constraint of the specified subplot in the current LayoutManager.java.awt.geom.Dimension2DgetContainerSize()Returns the container size in device coordinate system.java.awt.geom.Dimension2DgetContentConstrant()Returns the contents constraint of this plot.java.awt.geom.Dimension2DgetContentSize()Returns the size of content area.java.lang.StringgetId()Returns the id string of this elementInvokeStepgetInvokeStepFormParent()Return the invoke step to get this object from its parent.LayergetLayer(int index)Gets the nth layer in this plot.LayerEx[]getLayers()Returns all layers in the order of added.LayoutDirectorgetLayoutDirector()Gets the layout director for this plot.LegendExgetLegend()Returns the legend of this plot.java.awt.geom.Point2DgetLocation()Gets the location of this plot in its parent plot.PlotMarginExgetMargin()Returns the margin area of this plot.java.util.Map<Element,Element>getMooringMap()Returns a map to tell why this component cannot be removed from its container.NotifiergetNotifier()PaperTransformgetPaperTransform()Returns the paper transform of this component, which can be used to convert between device coordinate and paper coordinate of this component.PlotExgetParent()Gets the parent of this component.java.awt.geom.Dimension2DgetPreferredContentSize()Returns the the preferred content area size.doublegetScale()Returns the scale of this plot.java.lang.StringgetShortId()Returns the short id of this plot.java.awt.geom.Dimension2DgetSize()Returns the paper size of this component.SizeModegetSizeMode()Returns the size mode of this plot.PlotExgetSubplot(int i)Gets the nth subplot in this plot.PlotEx[]getSubplots()Gets the nth subplot in this plot.TitleExgetTitle(int index)Gets the nth title in this plot.TitleEx[]getTitles()Returns all titles in the order of added.AxisEx[]getXAxes()AxisExgetXAxis(int index)AxisEx[]getYAxes()AxisExgetYAxis(int index)intindexOf(LayerEx layer)intindexOf(PlotEx subplot)intindexOf(TitleEx title)intindexOfXAxis(AxisEx axis)intindexOfYAxis(AxisEx axis)voidinvalidate()Invalidates this component.booleanisRerenderNeeded()Returns the flag that indicate if this plot is needed to be re-rendered.booleanisValid()Determines whether this plot is valid.static voidlinkLayerAndAxisTransform(PlotEx plot, java.util.Map<ElementEx,ElementEx> orig2copyMap)Deep search layers to find the copy whoes range manager not been linked, and set for them.voidnotify(Notice msg)Element call this method to notify message to its parent.voidparentPaperTransformChanged()voidremoveLayer(Layer layer)voidremoveSubplot(Plot subplot)remove the specified subplot from this plot.voidremoveTitle(Title title)voidremoveXAxis(Axis axis)Removes the specified X axis from this plot if it is present.voidremoveYAxis(Axis axis)Removes the specified Y axis from this plot if it is present.voidsetConstraint(Plot subplot, java.lang.Object constraint)Sets the constraint of the specified subplot in the current LayoutManager.voidsetContainerSize(java.awt.geom.Dimension2D size)Sets the container size.voidsetContentConstrant(java.awt.geom.Dimension2D constraint)Impose contents constraint on this plot.voidsetContentSize(java.awt.geom.Dimension2D csize)Sets the content size by layout director.voidsetLayoutDirector(LayoutDirector director)Sets the layout director for this plot.voidsetLocation(double locX, double locY)voidsetLocation(java.awt.geom.Point2D p)Moves this plot to a new location.voidsetNotifier(Notifier notifier)Sets a notifier to receive all notice messages.voidsetPreferredContentSize(java.awt.geom.Dimension2D size)Sets the preferred content area sizevoidsetPreferredContentSize(double width, double height)Sets the preferred content area sizevoidsetRerenderNeeded(boolean flag)Mark or clear the flag that indicate this plot artifact need to be re-rendered.voidsetScale(double scale)Sets scale of this plot.voidsetSize(java.awt.geom.Dimension2D size)Sets the paper size of this plot.voidsetSize(double width, double height)Sets the paper size of this plot.voidsetSizeMode(SizeMode sizeMode)Sets a size mode to manage the size and scale of this plot according to its container size.voidsetSubplotConstraint(Plot subplot, java.lang.Object constraint)Set a new layout constraint for the given subplot.voidvalidate()Mark this component has a valid layout.voidzoomXRange(double start, double end)Zoom the given range to entire X axis.voidzoomYRange(double start, double end)Zoom the given range to entire Y axis.-
Methods inherited from class org.jplot2d.element.impl.ContainerImpl
thisEffectiveColorChanged, thisEffectiveFontChanged
-
Methods inherited from class org.jplot2d.element.impl.ComponentImpl
addPropertyChangeListener, getColor, getEffectiveColor, getEffectiveFont, getEffectiveFontName, getEffectiveFontSize, getEffectiveFontStyle, getFontName, getFontScale, getFontSize, getFontStyle, getSelectableBounds, getZOrder, isCacheable, isMovable, isRedrawNeeded, isSelectable, isVisible, parentEffectiveColorChanged, parentEffectiveFontChanged, removePropertyChangeListener, setCacheable, setColor, setFont, setFontName, setFontScale, setFontSize, setFontStyle, setMovable, setRedrawNeeded, setSelectable, setVisible, setZOrder
-
Methods inherited from class org.jplot2d.element.impl.ElementImpl
getEnvironment, getFullId, 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.ComponentEx
getEffectiveColor, getEffectiveFontName, getEffectiveFontSize, getEffectiveFontStyle, isMovable, isRedrawNeeded, parentEffectiveColorChanged, parentEffectiveFontChanged, setMovable, setRedrawNeeded, thisEffectiveColorChanged, thisEffectiveFontChanged
-
Methods inherited from interface org.jplot2d.element.PComponent
getColor, getEffectiveFont, getFontName, getFontScale, getFontSize, getFontStyle, getSelectableBounds, getZOrder, isCacheable, isSelectable, isVisible, setCacheable, setColor, setFont, setFontName, setFontScale, setFontSize, setFontStyle, setSelectable, setVisible, setZOrder
-
Methods inherited from interface org.jplot2d.element.Element
getEnvironment
-
-
-
-
Constructor Detail
-
PlotImpl
public PlotImpl()
-
PlotImpl
public PlotImpl(LegendEx legend)
-
-
Method Detail
-
getShortId
public java.lang.String getShortId()
Description copied from interface:PlotExReturns the short id of this plot. The short 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 but not include the root plot.- Specified by:
getShortIdin interfacePlotEx- Returns:
- the short id of this plot.
-
getId
public java.lang.String getId()
Description copied from interface:ElementReturns the id string of this element
-
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 PlotEx getParent()
Description copied from interface:ElementGets the parent of this component.- Specified by:
getParentin interfaceElement- Specified by:
getParentin interfaceComponentEx- Specified by:
getParentin interfaceElementEx- Specified by:
getParentin interfacePlotEx- Specified by:
getParentin interfacePComponent- Specified by:
getParentin interfacePlot- Overrides:
getParentin classComponentImpl- Returns:
- the parent of this component
-
getMooringMap
public java.util.Map<Element,Element> getMooringMap()
Description copied from interface:ComponentExReturns a map to tell why this component cannot be removed from its container. The key is the moored element, required by its value.- Specified by:
getMooringMapin interfaceComponentEx- Overrides:
getMooringMapin classComponentImpl- Returns:
- a map. The key is the element required by its value.
-
getContainerSize
public java.awt.geom.Dimension2D getContainerSize()
Description copied from interface:PlotReturns the container size in device coordinate system.- Specified by:
getContainerSizein interfacePlot- Returns:
- the container size
-
setContainerSize
public void setContainerSize(java.awt.geom.Dimension2D size)
Description copied from interface:PlotSets the container size. The container size is given in device coordinate system and used by size mode to derive paper size and scale. The default value is 640x480 pixels.If the size mode is
nullwhen calling this method, an IllegalStateException will be thrown.- Specified by:
setContainerSizein interfacePlot
-
getSizeMode
public SizeMode getSizeMode()
Description copied from interface:PlotReturns the size mode of this plot.- Specified by:
getSizeModein interfacePlot- Returns:
-
setSizeMode
public void setSizeMode(SizeMode sizeMode)
Description copied from interface:PlotSets a size mode to manage the size and scale of this plot according to its container size. The mode must be set when displaying a plot in a swing/swt component.- Specified by:
setSizeModein interfacePlot
-
getLocation
public java.awt.geom.Point2D getLocation()
Description copied from interface:PlotGets the location of this plot in its parent plot. The origin of a plot is the bottom-left corner of the content box (the intersect point of left axis and bottom axis). For root plot, the returned value is always (0,0)- Specified by:
getLocationin interfacePComponent- Specified by:
getLocationin interfacePlot- Returns:
- an instance of
Pointrepresenting the base point of this plot
-
setLocation
public final void setLocation(java.awt.geom.Point2D p)
Description copied from interface:PlotMoves this plot to a new location. The new location is specified by point and is given in the parent's paper coordinate space.Notice: This method should be called when the parent plot's layout director does not manage subplots, such as
SimpleLayoutDirector, otherwise the location will be overwrite by the layout director.For root plot, this method has no effect.
- Specified by:
setLocationin interfacePlot
-
setLocation
public void setLocation(double locX, double locY)- Specified by:
setLocationin interfacePlot
-
getSize
public java.awt.geom.Dimension2D getSize()
Description copied from interface:PComponentReturns the paper size of this component.- Specified by:
getSizein interfacePComponent- Returns:
-
setSize
public final void setSize(java.awt.geom.Dimension2D size)
Description copied from interface:PlotSets the paper size of this plot. This method only take effect when size mode isnull. Otherwise the size is decided by size mode.
-
setSize
public void setSize(double width, double height)Description copied from interface:PlotSets the paper size of this plot. This method only take effect when size mode isnull. Otherwise the size is decided by size mode.For subplot, the size is set by layout manager.
-
getBounds
public java.awt.geom.Rectangle2D getBounds()
Description copied from interface:PComponentReturns the paper bounds relative to its location. The units of bounds is pt (1/72 inch)- Specified by:
getBoundsin interfacePComponent- Overrides:
getBoundsin classComponentImpl- Returns:
- the paper bounds of this component.
-
getScale
public double getScale()
Description copied from interface:PlotReturns the scale of this plot. The scale is ratio device size to paper size.
-
setScale
public void setScale(double scale)
Description copied from interface:PlotSets scale of this plot. This method only take effect when size mode isnull. Otherwise the scale is decided by size mode.
-
getPaperTransform
public PaperTransform getPaperTransform()
Description copied from interface:PComponentReturns the paper transform of this component, which can be used to convert between device coordinate and paper coordinate of this component. The original point of paper coordinate is the location point of this component.Returns
nullif the component is not added to a plot or not laid out- Specified by:
getPaperTransformin interfacePComponent- Overrides:
getPaperTransformin classComponentImpl- Returns:
- the paper transform of this component
-
parentPaperTransformChanged
public void parentPaperTransformChanged()
- Specified by:
parentPaperTransformChangedin interfacePlotEx
-
getMargin
public PlotMarginEx getMargin()
Description copied from interface:PlotReturns the margin area of this plot.
-
getLayoutDirector
public LayoutDirector getLayoutDirector()
Description copied from interface:PlotGets the layout director for this plot.- Specified by:
getLayoutDirectorin interfacePlot- Returns:
- the layout director for this plot.
-
setLayoutDirector
public void setLayoutDirector(LayoutDirector director)
Description copied from interface:PlotSets the layout director for this plot.- Specified by:
setLayoutDirectorin interfacePlot- Parameters:
director- the layout director
-
getConstraint
public java.lang.Object getConstraint(Plot subplot)
Description copied from interface:PlotReturns the constraint of the specified subplot in the current LayoutManager.- Specified by:
getConstraintin interfacePlot- Parameters:
subplot- The subplot whose constraint is being set- Returns:
- the constraint
-
setConstraint
public void setConstraint(Plot subplot, java.lang.Object constraint)
Description copied from interface:PlotSets the constraint of the specified subplot in the current LayoutManager.- Specified by:
setConstraintin interfacePlot- Parameters:
subplot- The subplot whose constraint is being setconstraint- the constraint
-
getContentConstrant
public java.awt.geom.Dimension2D getContentConstrant()
Description copied from interface:PlotExReturns the contents constraint of this plot.- Specified by:
getContentConstrantin interfacePlotEx- Returns:
- the contents constraint
-
setContentConstrant
public void setContentConstrant(java.awt.geom.Dimension2D constraint)
Description copied from interface:PlotExImpose contents constraint on this plot. This method is called by a plot's layout director, when laying out subplots of the plot.- Specified by:
setContentConstrantin interfacePlotEx- Parameters:
constraint- the contents constraint
-
isValid
public boolean isValid()
Description copied from interface:PlotExDetermines whether this plot is valid. A plot is valid when it is correctly sized and positioned within its parent plot and all its axes, titles, legend and subplot are also valid.- Specified by:
isValidin interfacePlotEx- Returns:
trueif the component is valid,falseotherwise- See Also:
PlotEx.validate(),PlotEx.invalidate()
-
invalidate
public void invalidate()
Description copied from interface:PlotExInvalidates this component. This component and all parents above it are marked as needing to be laid out. This method can be called often, so it needs to execute quickly.- Specified by:
invalidatein interfacePlotEx- See Also:
PlotEx.validate()
-
validate
public void validate()
Description copied from interface:PlotExMark this component has a valid layout.- Specified by:
validatein interfacePlotEx- See Also:
PlotEx.invalidate()
-
isRerenderNeeded
public boolean isRerenderNeeded()
Description copied from interface:PlotExReturns the flag that indicate if this plot is needed to be re-rendered. This flag will control if rendering process is executed by all renderers of a RenderEnvironment.- Specified by:
isRerenderNeededin interfacePlotEx- Returns:
- the flag that indicate if this plot is needed to be re-rendered
-
setRerenderNeeded
public void setRerenderNeeded(boolean flag)
Description copied from interface:PlotExMark or clear the flag that indicate this plot artifact need to be re-rendered. Any component changes which do not require redraw and require re-render the plot can call this method. eg, when a cacheable component removed.- Specified by:
setRerenderNeededin interfacePlotEx- Parameters:
flag- the flag that indicate this plot artifact need to be re-rendered
-
getNotifier
public Notifier getNotifier()
- Specified by:
getNotifierin interfacePlotEx
-
setNotifier
public void setNotifier(Notifier notifier)
Description copied from interface:PlotExSets a notifier to receive all notice messages.- Specified by:
setNotifierin interfacePlotEx
-
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
-
getPreferredContentSize
public java.awt.geom.Dimension2D getPreferredContentSize()
Description copied from interface:PlotReturns the the preferred content area size.- Specified by:
getPreferredContentSizein interfacePlot- Returns:
- the the preferred content area size
-
setPreferredContentSize
public void setPreferredContentSize(java.awt.geom.Dimension2D size)
Description copied from interface:PlotSets the preferred content area size- Specified by:
setPreferredContentSizein interfacePlot- Parameters:
size- the size in Dimension2D
-
setPreferredContentSize
public void setPreferredContentSize(double width, double height)Description copied from interface:PlotSets the preferred content area size- Specified by:
setPreferredContentSizein interfacePlot- Parameters:
width- the widthheight- the height
-
getContentSize
public java.awt.geom.Dimension2D getContentSize()
Description copied from interface:PlotReturns the size of content area.- Specified by:
getContentSizein interfacePlot- Returns:
- the size of content area.
-
setContentSize
public void setContentSize(java.awt.geom.Dimension2D csize)
Description copied from interface:PlotExSets the content size by layout director. All layers in this plot have the same viewport size.The layout manager guarantee this method is called after setting plot margin, and no matter if the content size is changed.
- Specified by:
setContentSizein interfacePlotEx- Parameters:
csize- the content size
-
getComponents
public ComponentEx[] getComponents()
Description copied from interface:ContainerExReturns the components in this container.- Specified by:
getComponentsin interfaceContainerEx- Returns:
- an array of sub-components
-
getLegend
public LegendEx getLegend()
Description copied from interface:PlotReturns the legend of this plot.
-
getTitle
public TitleEx getTitle(int index)
Description copied from interface:PlotGets the nth title in this plot.
-
getTitles
public TitleEx[] getTitles()
Description copied from interface:PlotReturns all titles in the order of added.
-
removeTitle
public void removeTitle(Title title)
- Specified by:
removeTitlein interfacePlot
-
indexOfXAxis
public int indexOfXAxis(AxisEx axis)
- Specified by:
indexOfXAxisin interfacePlotEx
-
indexOfYAxis
public int indexOfYAxis(AxisEx axis)
- Specified by:
indexOfYAxisin interfacePlotEx
-
getXAxes
public AxisEx[] getXAxes()
-
getYAxes
public AxisEx[] getYAxes()
-
addXAxes
public void addXAxes(Axis[] axes)
Description copied from interface:PlotAdd the given axes created byElementFactory.createAxes(int)as x-axes
-
addYAxes
public void addYAxes(Axis[] axes)
Description copied from interface:PlotAdd the given axes created byElementFactory.createAxes(int)as y-axes
-
removeXAxis
public void removeXAxis(Axis axis)
Description copied from interface:PlotRemoves the specified X axis from this plot if it is present.- Specified by:
removeXAxisin interfacePlot- Parameters:
axis- the X axis to be removed
-
removeYAxis
public void removeYAxis(Axis axis)
Description copied from interface:PlotRemoves the specified Y axis from this plot if it is present.- Specified by:
removeYAxisin interfacePlot- Parameters:
axis- the Y axis to be removed
-
getLayer
public Layer getLayer(int index)
Description copied from interface:PlotGets the nth layer in this plot.
-
getLayers
public LayerEx[] getLayers()
Description copied from interface:PlotReturns all layers in the order of added.
-
addLayer
public void addLayer(Layer layer)
Description copied from interface:PlotAdd a layer to this plot. The layer will not associate with any axis range manager. Before the layer associate axis transform byLayer.setAxesTransform(AxisTransform, AxisTransform), all its subcomponents are invisible.
-
addLayer
public void addLayer(Layer layer, AxisTransform xRangeManager, AxisTransform yRangeManager)
Description copied from interface:PlotAdd a layer to this plot. The layer will associate with the given X/Y axis range manager to control which part show in the plot viewport.
-
addLayer
public void addLayer(Layer layer, Axis xaxis, Axis yaxis)
Description copied from interface:PlotAdd a layer to this plot. The layer will associate with the given X/Y axis' range manager to control which part show in the plot viewport. Equivalent toaddLayer(layer, xaxis.getTickManager().getRangeManager(), yaxis.getTickManager().getRangeManager())
-
removeLayer
public void removeLayer(Layer layer)
- Specified by:
removeLayerin interfacePlot
-
getSubplot
public PlotEx getSubplot(int i)
Description copied from interface:PlotGets the nth subplot in this plot.- Specified by:
getSubplotin interfacePlot- Parameters:
i- the index of the component to get.- Returns:
- the nth subplot in this subplot
-
getSubplots
public PlotEx[] getSubplots()
Description copied from interface:PlotGets the nth subplot in this plot.- Specified by:
getSubplotsin interfacePlotEx- Specified by:
getSubplotsin interfacePlot- Returns:
- the nth subplot in this plot
-
addSubplot
public void addSubplot(Plot subplot, java.lang.Object constraint)
Description copied from interface:PlotAdd a subplot with a constraint to this plot.- Specified by:
addSubplotin interfacePlot- Parameters:
subplot- the subplot to be addedconstraint- an object expressing layout constraints
-
setSubplotConstraint
public void setSubplotConstraint(Plot subplot, java.lang.Object constraint)
Description copied from interface:PlotSet a new layout constraint for the given subplot.- Specified by:
setSubplotConstraintin interfacePlot- Parameters:
subplot- the subplotconstraint- an object expressing layout constraints
-
removeSubplot
public void removeSubplot(Plot subplot)
Description copied from interface:Plotremove the specified subplot from this plot.- Specified by:
removeSubplotin interfacePlot
-
canContribute
public boolean canContribute()
Description copied from interface:ComponentExReturnstrueif this component can contribute visible parts to plot rendering artifact when this component is visible. Subcomponents are not considered.- Specified by:
canContributein interfaceComponentEx- Overrides:
canContributein classComponentImpl- Returns:
- the indicator
-
copyStructure
public PlotImpl copyStructure(java.util.Map<ElementEx,ElementEx> orig2copyMap)
Description copied from interface:ElementExCreate a structural copy of this element and put them into orig2copyMap. All properties are not copied. The parent of the copy are not set by this method.- Specified by:
copyStructurein interfaceComponentEx- Specified by:
copyStructurein interfaceElementEx- Specified by:
copyStructurein interfacePlotEx- Overrides:
copyStructurein classComponentImpl- Parameters:
orig2copyMap- original element to copy map- Returns:
- the structural copy of this element
-
copyStructureCascade
public PlotImpl copyStructureCascade(java.util.Map<ElementEx,ElementEx> orig2copyMap)
Description copied from interface:PlotExCreate a structural copy of this plot, without linking layer and axis transform.- Specified by:
copyStructureCascadein interfacePlotEx
-
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 classComponentImpl- Parameters:
src- the src
-
linkLayerAndAxisTransform
public static void linkLayerAndAxisTransform(PlotEx plot, java.util.Map<ElementEx,ElementEx> orig2copyMap)
Deep search layers to find the copy whoes range manager not been linked, and set for them.- Parameters:
plot- the plot to be copiedorig2copyMap-
-
draw
public void draw(java.awt.Graphics2D g)
Description copied from interface:ComponentExDraw this component only. All its children is not drawn.- Specified by:
drawin interfaceComponentEx- Overrides:
drawin classContainerImpl- Parameters:
g- to the Graphics2D drawing. The transformation of this component is not applied.
-
commit
public void commit()
Description copied from interface:PlotExApply all pending changes on this plot. After this method is called, all axis range and layout are valid.
-
zoomXRange
public void zoomXRange(double start, double end)Description copied from interface:PlotZoom the given range to entire X axis. The behavior is like, creating a temporary AxisRangeLockGroup to group all AxisRangeLockGroups which zoomable aretruein this plot, and zoom the range on it.- Specified by:
zoomXRangein interfacePlot- Parameters:
start- the normalized startend- the normalized end
-
zoomYRange
public void zoomYRange(double start, double end)Description copied from interface:PlotZoom the given range to entire Y axis. The behavior is like, creating a temporary AxisRangeLockGroup to group all AxisRangeLockGroups which zoomable aretruein this plot, and zoom the range on it.- Specified by:
zoomYRangein interfacePlot- Parameters:
start- the normalized startend- the normalized end
-
adaptiveZoomX
public void adaptiveZoomX()
Description copied from interface:PlotAdaptive zoom the x range for all axes in this plot. Only axes whoes AxisRangeLockGroups is zoomable are zoomed.- Specified by:
adaptiveZoomXin interfacePlot
-
adaptiveZoomY
public void adaptiveZoomY()
Description copied from interface:PlotAdaptive zoom the y range for all axes in this plot. Only axes whoes AxisRangeLockGroups is zoomable are zoomed.- Specified by:
adaptiveZoomYin interfacePlot
-
-
DMelt 3.0 © DataMelt by jWork.ORG