Class VisualServices

java.lang.Object
noaa.coastwatch.gui.visual.VisualServices

public class VisualServices extends Object
The VisualServices class contains static methods that are used in conjunction with visual objects.
Since:
3.1.7
Author:
Peter Hollemans
  • Method Details

    • findMethod

      public static Method findMethod(Object object, String methodName)
      Returns the first method for the specified object with the specified name, or null if one cannot be found.
    • findGetMethod

      public static Method findGetMethod(Object object, String property)
      Returns the get method for the specified object and property, or null if no method can be found.
    • findGetValuesMethod

      public static Method findGetValuesMethod(Object object, String property)
      Returns the get values method for the specified object and property, or null if no method can be found.
    • findSetMethod

      public static Method findSetMethod(Object object, String property)
      Returns the set method for the specified object and property, or null if no method can be found.
    • hasProperty

      public static boolean hasProperty(Object object, String property)
      Returns true if the object has the specified property, or false if not. An object only has the property if there exist get and set methods for the property.
      Parameters:
      object - the object to search.
      property - the property name.
      Returns:
      true if the property is found, or false if not.
    • getProperties

      public static List getProperties(Object object)
      Returns a list of properties for the specified object. Properties are defined as those values which have corresponding get and set methods.
    • getPropertyType

      public static Class getPropertyType(Object object, String property)
      Gets the class of the specified property, or null if the object has no property with the specified name.