Documentation of 'vgp.tutor.sizePolygon.PjSizePolygon' Java class
PjSizePolygon ("JavaView Reference Manual")
"JavaView? v5.03.003"
vgp.tutor.sizePolygon

Class PjSizePolygon

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Runnable, PsTimeListenerIf, PsUpdateIf, PvPickListenerIf


    public class PjSizePolygon
    extends PjProject
    implements java.lang.Runnable
    Tutorial project demonstrates how to adjust the individual thickness of polygons.

    Changes the size of each edge slightly back and forth with given random initial speed. The overall speed of the system may be uniformly scaled by argument speed.

    See Also:
    Serialized Form
    Author:
    Konrad Polthier
    Version:
    04.11.06, 2.10 revised (kp) Moved to vgp.tutor.
    05.07.06, 2.00 created (kp) Copied from previous named PaSizeEdge.
    07.02.04, 1.00 created (kp)
    • Constructor Detail

      • PjSizePolygon

        public PjSizePolygon()
    • Method Detail

      • init

        public void init()
        Description copied from class: PjProject
        Initialize and reset project, stops the running animation if any. Does not reset any registered display nor geometry. They must be reset individually in each subclass.
        Overrides:
        init in class PjProject
      • start

        public void start()
        Description copied from class: PjProject
        Method is invoked during loading of a project in JavaView.

        If a project has an animation object, then the animation panel is shown when the project's this start() method is invoked during loading of the project. Use setAnimation(PsAnimation) to register an animation.

        If auto fit is enabled then scenery is scaled to fit in each display.

        Overrides:
        start in class PjProject
        See Also:
        PvViewerIf.start(), PjProject.isEnabledAutoFit()
      • compute

        public void compute()
        Create polygons with initial thickness and the rate of chance.
      • changePolygonSize

        public void changePolygonSize(double speed)
        Change size of each edge slightly back and forth with given random initial speed. The overall speed of the system may be uniformly scaled by argument speed.
      • startAnim

        public void startAnim()
        Start animation by creating a new thread
      • stopAnim

        public void stopAnim()
        Stop animation by removing the thread.
      • run

        public void run()
        Do the animation by incrementing the polygon thickness.
        Specified by:
        run in interface java.lang.Runnable
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

Ads help maintain this website.