Documentation of 'org.jplot2d.element.impl.ComponentEx' Java class
ComponentEx
org.jplot2d.element.impl

Interface ComponentEx

    • Method Detail

      • isMovable

        boolean isMovable()
      • setMovable

        void setMovable(boolean movable)
        Set the movable property.
      • getMooringMap

        java.util.Map<Element,Element> getMooringMap()
        Returns a map to tell why this component cannot be removed from its container. The key is the moored element, required by its value.
        Returns:
        a map. The key is the element required by its value.
      • canContribute

        boolean canContribute()
        Returns true if this component can contribute visible parts to plot rendering artifact when this component is visible. Subcomponents are not considered.
        Returns:
        the indicator
      • getEffectiveColor

        java.awt.Color getEffectiveColor()
        Returns the effective color of this component.
        Returns:
        the effective color of this component
      • getEffectiveFontName

        java.lang.String getEffectiveFontName()
      • getEffectiveFontStyle

        int getEffectiveFontStyle()
      • getEffectiveFontSize

        float getEffectiveFontSize()
      • parentEffectiveColorChanged

        void parentEffectiveColorChanged()
      • parentEffectiveFontChanged

        void parentEffectiveFontChanged()
      • thisEffectiveColorChanged

        void thisEffectiveColorChanged()
        Called when setColor() or parentEffectiveColorChanged() change the effective color of this component.
      • thisEffectiveFontChanged

        void thisEffectiveFontChanged()
        Called when setFontXxx() or parentEffectiveFontChanged() change the effective font of this component.
      • isRedrawNeeded

        boolean isRedrawNeeded()
        Returns true when this component need to be redrawn. The result only apply to cacheable component.
        Returns:
        the redraw status
      • setRedrawNeeded

        void setRedrawNeeded(boolean flag)
        Mark or clear the flag that indicate this component need to be redrawn, eg. when color changed.
        Parameters:
        flag - the flag that indicate this component need to be redrawn
      • draw

        void draw(java.awt.Graphics2D g)
        Draw this component only. All its children is not drawn.
        Parameters:
        g - to the Graphics2D drawing. The transformation of this component is not applied.
      • copyStructure

        ComponentEx copyStructure(java.util.Map<ElementEx,ElementEx> orig2copyMap)
        Create a deep copy of this component. The parent of the copy are not set.
        Specified by:
        copyStructure in interface ElementEx
        Parameters:
        orig2copyMap - original element to copy map
        Returns:
        a deep copy of this component

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.