jv.vecmath

## Class P_Vector

- java.lang.Object
- - jv.vecmath.P_Vector

- All Implemented Interfaces:
    java.io.Serializable
  Direct Known Subclasses:
    PbVector, PdBary, PdBaryDir, PdVector, PiVector, PvDisplayOption

      public abstract class P_Vector
      extends java.lang.Object
      implements java.io.Serializable

  Abstract base class for linear algebra vectors allowing to tag individual vectors.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `P_Vector()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `clearTag(int aBit)` Clears a single bit.
    `java.lang.Object` | `clone()` Clone object and all instance variables.
    `static P_Vector[]` | `clone(P_Vector[] src)` Duplicate array and all entries by recursively cloning all instance variables except inspector panels and lists of registered listeners.
    `static P_Vector[][]` | `clone(P_Vector[][] src)` Duplicate array and all entries by recursively cloning all instance variables except inspector panels and lists of registered listeners.
    `void` | `copy(P_Vector vec)` Copies the attribute set of another vector.
    `long` | `getBits()` Get integer array with bits.
    `java.lang.String` | `getDetail()` Get longer detail text of vector.
    `java.lang.String` | `getName()` Get name of vector.
    `java.lang.String` | `getURL()` Get URL of vector.
    `boolean` | `hasTag(int aBit)` Gets the value of a single bit.
    `static void` | `invert(java.lang.Object[] arr, int usedSize)` Invert the order of the first 'usedSize' entries inside the arr, i.e. the first entry becomes the 'usedSize-1' entry.
    `void` | `setDetail(java.lang.String detail)` Set longer detail text of vector, e.g. to be shown as overlay text.
    `void` | `setName(java.lang.String name)` Set name of vector, e.g. to be shown in display.
    `void` | `setTag(int aBit)` Sets a single bit.
    `void` | `setURL(java.lang.String url)` Set name of vector, e.g. to be shown in display.
    `java.lang.String` | `toString()` Create a multi-line string representation with detailed information about all instance variables.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### P_Vector

          public P_Vector()

  - ### Method Detail

    - #### clone

          public java.lang.Object clone()

      Clone object and all instance variables.
      Overrides:
        `clone` in class `java.lang.Object`

    - #### toString

          public java.lang.String toString()

      Create a multi-line string representation with detailed information about all instance variables.
      Overrides:
        `toString` in class `java.lang.Object`

    - #### getDetail

          public java.lang.String getDetail()

      Get longer detail text of vector.
      Returns:
        Detail text of vector
      Since:
        JavaView 3.29.004

    - #### setDetail

          public void setDetail(java.lang.String detail)

      Set longer detail text of vector, e.g. to be shown as overlay text. Assigning null will remove the corresponding text label.
      Parameters:
        `detail` - New detail text of vector
      Since:
        JavaView 3.29.004

    - #### getName

          public java.lang.String getName()

      Get name of vector.
      Returns:
        Name of vector

    - #### setName

          public void setName(java.lang.String name)

      Set name of vector, e.g. to be shown in display. Assigning null will remove the corresponding text label.
      Parameters:
        `name` - New name of vector

    - #### getURL

          public java.lang.String getURL()

      Get URL of vector.
      Returns:
        URL of vector

    - #### setURL

          public void setURL(java.lang.String url)

      Set name of vector, e.g. to be shown in display. Assigning null will remove the corresponding text label.
      Parameters:
        `url` - New URL of vector

    - #### getBits

          public long getBits()

      Get integer array with bits.

    - #### setTag

          public void setTag(int aBit)

      Sets a single bit. If the bit array does not exist then it is created. If the array too small then it is enlarged.
      Parameters:
        `aBit` - the index of the bit to be set

    - #### clearTag

          public void clearTag(int aBit)

      Clears a single bit.
      Parameters:
        `aBit` - the index of the bit to be cleared

    - #### hasTag

          public boolean hasTag(int aBit)

      Gets the value of a single bit.
      Parameters:
        `aBit` - the index of the bit to be gotten

    - #### clone

          public static P_Vector[][] clone(P_Vector[][] src)

      Duplicate array and all entries by recursively cloning all instance variables except inspector panels and lists of registered listeners. The parent relationship is maintained only within this class but not to external classes. In general, all links of the clone to external objects are set to `null`.
      See Also:
        `copy(P_Vector)`

    - #### clone

          public static P_Vector[] clone(P_Vector[] src)

      Duplicate array and all entries by recursively cloning all instance variables except inspector panels and lists of registered listeners. The parent relationship is maintained only within this class but not to external classes. In general, all links of the clone to external objects are set to `null`.
      See Also:
        `copy(P_Vector)`

    - #### copy

          public void copy(P_Vector vec)

      Copies the attribute set of another vector.
      Parameters:
        `vec` - the vector to be copied

    - #### invert

          public static void invert(java.lang.Object[] arr,
                    int usedSize)

      Invert the order of the first 'usedSize' entries inside the arr, i.e. the first entry becomes the 'usedSize-1' entry.
      Parameters:
        `arr` - array of objects.
        `usedSize` - number of used entries

"

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