Documentation of 'vmm3d.planecurve.parametric.DecoratedCurve' Java class
DecoratedCurve
vmm3d.planecurve.parametric

Class DecoratedCurve

    • Constructor Detail

      • DecoratedCurve

        public DecoratedCurve()
    • Method Detail

      • setWantedColor

        public void setWantedColor(java.awt.Color color)
      • getWantedColor

        public java.awt.Color getWantedColor()
      • setStrokeSize

        public void setStrokeSize(int size)
      • getStrokeSize

        public int getStrokeSize()
      • getCreateAnimation

        public Animation getCreateAnimation(View view)
        Description copied from class: PlaneCurveParametric
        Returns an animation that shows the curve being drawn bit-by-bit.
        Overrides:
        getCreateAnimation in class PlaneCurveParametric
        Parameters:
        view - The View where the creation animation will be shown. If this is null or if it is not an instance of PlaneCurveParametric.PlaneCurveParametricView, then the return value is null.
        Returns:
        A creation animation for the given View of this Exhibit. The return value can be null to indicate that no creation animation is to be run.
      • doDraw

        public void doDraw(org.freehep.graphics2d.VectorGraphics g,
                           View view,
                           Transform transform)
        Draw the curve in a specified View. If the View belongs to the class PlaneCurveParametric.PlaneCurveParametricView, then only a fraction of the curve might be drawn, as specified in the View; this feature is used in the creation animation for the curve. If the View belongs to the subclass DecoratedCurve.MMOView of PlaneCurveParametricView (which is the default), then the curve can be in some other color besides the default (this happens during the create animation, when the curve is being constructed).
        Overrides:
        doDraw in class PlaneCurveParametric
        Parameters:
        g - The graphics context where the Exhibit is being drawn. It has already been cleared to the background color (assuming that drawing is being done in the usual way, as defined in the top-level View class).
        view - The View that is drawing the Exhibit; this object contains other information that might be of use, such as the Display, if any, associated with the View.
        transform - Contains information about the rectangular area in the xy-plane that is being drawn and about the rectangle of pixels in the graphics context where it is drawn. Note that at least for the top-level View class, transform.getX() and transform.getY() can be assumed to be zero.
        See Also:
        #render(Graphics2D, View, Transform, ArrayList), Exhibit.computeDrawData(View, boolean, Transform, Transform)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.