org.jplot2d.element.impl
Class RGBImageMappingImpl
- java.lang.Object
-
- org.jplot2d.element.impl.ElementImpl
-
- org.jplot2d.element.impl.RGBImageMappingImpl
-
- All Implemented Interfaces:
- Element, ElementEx, RGBImageMappingEx, RGBImageMapping
public class RGBImageMappingImpl extends ElementImpl implements RGBImageMappingEx
-
-
Constructor Summary
Constructors Constructor and Description RGBImageMappingImpl()RGBImageMappingImpl(ImageBandTransformEx redTransform, ImageBandTransformEx greenTransform, ImageBandTransformEx blueTransform)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddImageGraph(RGBImageGraphEx graph)voidcalcLimits()Called by PlotEx.commit() to calculate limits for bands if neededElementExcopyStructure(java.util.Map<ElementEx,ElementEx> orig2copyMap)Create a structural copy of this element and put them into orig2copyMap.ImageBandTransformExgetBlueTransform()Returns the BandTransform of B band.java.lang.StringgetFullId()Returns the full id of this component.RGBImageGraphEx[]getGraphs()Returns all ImageGraph whose mapping are controlled by this ImageMapping.ImageBandTransformExgetGreenTransform()Returns the BandTransform of G band.java.lang.StringgetId()Returns the id string of this elementInvokeStepgetInvokeStepFormParent()Return the invoke step to get this object from its parent.RGBImageGraphExgetParent()Gets the parent of this component.ImageBandTransformExgetRedTransform()Returns the BandTransform of R band.voidremoveImageGraph(RGBImageGraphEx graph)-
Methods inherited from class org.jplot2d.element.impl.ElementImpl
copyFrom, getEnvironment, notify, setParent, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jplot2d.element.Element
getEnvironment
-
-
-
-
Constructor Detail
-
RGBImageMappingImpl
public RGBImageMappingImpl()
-
RGBImageMappingImpl
public RGBImageMappingImpl(ImageBandTransformEx redTransform, ImageBandTransformEx greenTransform, ImageBandTransformEx blueTransform)
-
-
Method Detail
-
getParent
public RGBImageGraphEx getParent()
Description copied from interface:ElementGets the parent of this component.- Specified by:
getParentin interfaceElement- Specified by:
getParentin interfaceElementEx- Specified by:
getParentin interfaceRGBImageMappingEx- Overrides:
getParentin classElementImpl- Returns:
- the parent of this component
-
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
-
getGraphs
public RGBImageGraphEx[] getGraphs()
Description copied from interface:RGBImageMappingReturns all ImageGraph whose mapping are controlled by this ImageMapping.- Specified by:
getGraphsin interfaceRGBImageMappingEx- Specified by:
getGraphsin interfaceRGBImageMapping- Returns:
- all ImageGraph whose mapping are controlled by this ImageMapping
-
addImageGraph
public void addImageGraph(RGBImageGraphEx graph)
- Specified by:
addImageGraphin interfaceRGBImageMappingEx
-
removeImageGraph
public void removeImageGraph(RGBImageGraphEx graph)
- Specified by:
removeImageGraphin interfaceRGBImageMappingEx
-
getRedTransform
public ImageBandTransformEx getRedTransform()
Description copied from interface:RGBImageMappingReturns the BandTransform of R band.- Specified by:
getRedTransformin interfaceRGBImageMappingEx- Specified by:
getRedTransformin interfaceRGBImageMapping- Returns:
- the BandTransform of R band
-
getGreenTransform
public ImageBandTransformEx getGreenTransform()
Description copied from interface:RGBImageMappingReturns the BandTransform of G band.- Specified by:
getGreenTransformin interfaceRGBImageMappingEx- Specified by:
getGreenTransformin interfaceRGBImageMapping- Returns:
- the BandTransform of G band
-
getBlueTransform
public ImageBandTransformEx getBlueTransform()
Description copied from interface:RGBImageMappingReturns the BandTransform of B band.- Specified by:
getBlueTransformin interfaceRGBImageMappingEx- Specified by:
getBlueTransformin interfaceRGBImageMapping- Returns:
- the BandTransform of B band
-
copyStructure
public ElementEx 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 interfaceElementEx- Overrides:
copyStructurein classElementImpl- Parameters:
orig2copyMap- original element to copy map- Returns:
- the structural copy of this element
-
calcLimits
public void calcLimits()
Description copied from interface:RGBImageMappingExCalled by PlotEx.commit() to calculate limits for bands if needed- Specified by:
calcLimitsin interfaceRGBImageMappingEx
-
-
DMelt 3.0 © DataMelt by jWork.ORG