JavaView® v2.00.008

jv.geom
Class PgPolygon_Menu

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--jv.objectGui.PsMethodMenu
                          |
                          +--jv.project.PgGeometry_Menu
                                |
                                +--jv.geom.PgPointSet_Menu
                                      |
                                      +--jv.geom.PgPolygon_Menu
All Implemented Interfaces:
java.awt.event.ActionListener, java.lang.Cloneable, java.util.Collection, java.util.EventListener, java.awt.event.ItemListener, java.util.List, PsUpdateIf, java.io.Serializable

public class PgPolygon_Menu
extends PgPointSet_Menu

Add specific menu items to 'method' menu in control panel to invoke methods from menu.

Version:
18.07.99, 2.00 revised (kp) Method calls changed and PsMenu replaced with standard java.awt.Menu.
00.00.98, 1.00 created (kp)
Author:
Konrad Polthier
See Also:
PgGeometry_Menu, Serialized Form

Field Summary
protected  PgPolygon m_polygon
           
static java.lang.String[] m_polygonMethod
           
static int MTHD_CLOSE
           
static int MTHD_LENGTH
           
static int MTHD_MAKE_NORMALS
           
static int MTHD_SHOW_EDGE_LABELS
           
static int MTHD_SHOW_POLYGON_END_ARROW
           
static int MTHD_SHOW_POLYGON_START_ARROW
           
static int MTHD_TRIANGULATE
           
 
Fields inherited from class jv.geom.PgPointSet_Menu
m_pointSet, m_pointSetMethod, MTHD_ENABLE_DEFAULT_LABEL, MTHD_FLIP_ORIENTATION, MTHD_MAKE_VERTEX_TEXTURE_BND, MTHD_MARK_VERTICES, MTHD_MOVE_TO_ORIGIN, MTHD_PRINT_BNDBOX, MTHD_PRINT_CENTER, MTHD_PROJECT_TO_SPHERE, MTHD_REMOVE_MARKED_VERTICES, MTHD_REMOVE_VECTOR_FIELDS, MTHD_SHOW_GLOBAL_VERTEX_COLOR, MTHD_SHOW_MARKED_VERTICES, MTHD_SHOW_TITLE, MTHD_SHOW_VECTOR_ARROWS, MTHD_SHOW_VERTEX_LABELS, MTHD_SHOW_VERTEX_NORMAL_ARROW, MTHD_UNMARK_VERTICES, MTHD_VERTEX_COLOR_FROM_VECTOR, MTHD_VERTEX_COLOR_FROM_XYZ, MTHD_VERTEX_COLOR_FROM_Z, MTHD_VERTEX_COLOR_FROM_Z_HUE
 
Fields inherited from class jv.project.PgGeometry_Menu
m_geometry, m_geometryMethod, MTHD_PRINT_ALL, MTHD_UPDATE
 
Fields inherited from class jv.objectGui.PsMethodMenu
m_language, m_name
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
PgPolygon_Menu()
           
 
Method Summary
 boolean applyMethod(java.lang.String aMethod)
          Invoke action determined by current string.
 void init(PsObject anObject)
          Register the target geometry, and subclasses should register all menu items and submenus.
 
Methods inherited from class jv.geom.PgPointSet_Menu
update
 
Methods inherited from class jv.objectGui.PsMethodMenu
actionPerformed, addMenu, addMenu, addMenuItem, addMenuItem, clone, getFather, getIndexOfMethod, getLanguage, getMenu, getMenuItem, getName, hasMenu, hasMenuItem, itemStateChanged, removeMenu, removeMenuItem, setName, setParent
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jv.object.PsUpdateIf
getFather, getName, setParent
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

MTHD_CLOSE

public static final int MTHD_CLOSE

MTHD_TRIANGULATE

public static final int MTHD_TRIANGULATE

MTHD_LENGTH

public static final int MTHD_LENGTH

MTHD_MAKE_NORMALS

public static final int MTHD_MAKE_NORMALS

MTHD_SHOW_POLYGON_START_ARROW

public static final int MTHD_SHOW_POLYGON_START_ARROW

MTHD_SHOW_POLYGON_END_ARROW

public static final int MTHD_SHOW_POLYGON_END_ARROW

MTHD_SHOW_EDGE_LABELS

public static final int MTHD_SHOW_EDGE_LABELS

m_polygonMethod

public static final java.lang.String[] m_polygonMethod

m_polygon

protected PgPolygon m_polygon
Constructor Detail

PgPolygon_Menu

public PgPolygon_Menu()
Method Detail

init

public void init(PsObject anObject)
Description copied from class: PsMethodMenu
Register the target geometry, and subclasses should register all menu items and submenus.
Overrides:
init in class PgPointSet_Menu
Following copied from class: jv.objectGui.PsMethodMenu
Parameters:
argument - used by subclasses to specify object on which action shall be executed.

applyMethod

public boolean applyMethod(java.lang.String aMethod)
Description copied from class: PsMethodMenu
Invoke action determined by current string. This method returns false, and should be overwritten by subclasses.
Overrides:
applyMethod in class PgPointSet_Menu

JavaView® v2.00.008

The software JavaView® is copyright protected. All Rights Reserved.