ElegantJCharts Java API Specification v2.0

com.elegantj.graphx
Class Common

java.lang.Object
  |
  +--com.elegantj.graphx.Common

public class Common
extends java.lang.Object

This class provides Common functionality Which is not in older version of java like Java-1.1


Constructor Summary
Common()
           
 
Method Summary
static boolean contains(java.awt.Polygon inPoly, java.awt.Rectangle inRect)
          This method returns Boolean values for the condition Given Rectangle is in Given Polygon
static java.lang.String getDisplayValue(java.util.Vector map, java.lang.String dataValue)
          The Display value for given data value is retrieved here.
static boolean intersect(java.awt.Polygon inPoly, java.awt.Rectangle inRect)
          This method returns Boolean values for the condition Given Rectangle intersects with Given Polygon
static java.lang.String replaceAll(java.lang.String mainString, java.lang.String replaces, java.lang.String replacer)
          This method replaces all Occurrence Strings with replacer String From mainString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Common

public Common()
Method Detail

replaceAll

public static java.lang.String replaceAll(java.lang.String mainString,
                                          java.lang.String replaces,
                                          java.lang.String replacer)
This method replaces all Occurrence Strings with replacer String From mainString

Parameters:
mainString - Source String
replaces - String which should be replaced
replacer - String which should be placed
Returns:
String String with out replaces String

contains

public static boolean contains(java.awt.Polygon inPoly,
                               java.awt.Rectangle inRect)
This method returns Boolean values for the condition Given Rectangle is in Given Polygon

Parameters:
inPoly - Polygon Object
inRect - Rectangle Object
Returns:
boolean true if polygon contain rectangle otherwise false

intersect

public static boolean intersect(java.awt.Polygon inPoly,
                                java.awt.Rectangle inRect)
This method returns Boolean values for the condition Given Rectangle intersects with Given Polygon

Parameters:
inPoly - Polygon Object
inRect - Rectangle Object
Returns:
boolean true if polygon intersects rectangle otherwise false

getDisplayValue

public static java.lang.String getDisplayValue(java.util.Vector map,
                                               java.lang.String dataValue)
The Display value for given data value is retrieved here.

Parameters:
dataValue - Data value
Returns:
String Dispaly value for given Data value

ElegantJCharts Java API Specification v2.0

For any feedback, suggestion, or query, please revert back to support@elegantcharts.com

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjcharts.com
All Rights Reserved.