Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 2 (11.1.2.0.0)

E17492-01

oracle.dss.dataView
Class DataviewUtils

java.lang.Object
  extended by oracle.dss.dataView.DataviewUtils
Direct Known Subclasses:
DataviewViewStyleUtils

public class DataviewUtils
extends java.lang.Object

For internal use only. Application developers should not use this
Dataview utility methods.

Constructor Summary
DataviewUtils()
           
 
Method Summary
static int adjustForEnhancedFont(int height, boolean underline, boolean doubleunderline)
           
static int compareXMLVersions(java.lang.String ver1, java.lang.String ver2)
           
static int convertHorizAlignToEWT(int align)
          Convert horizontal Swing alignemnts to EWT
static int convertHorizAlignToJava(int ewtAlign)
          Convert horizontal EWT alignments to Swing alignments
static int convertVertAlignToEWT(int align)
          Convert vertical Swing alignemnts to EWT
static int convertVertAlignToJava(int ewtAlign)
          Convert vertical EWT alignments to Swing alignments
static void copyStyleProperties(Styleable toStyleable, Styleable fromStyleable)
          Deprecated. This will be removed due to removal of JEWT dependency, moved to DataviewViewStyleUtils
static int fontStyle(boolean bold, boolean italic)
           
static java.lang.StringBuilder getSharedStringBuilder()
          Returns an empty StringBuilder for use in methods which build a String.
static java.lang.StringBuilder getSharedStringBuilder(java.lang.String s)
          Returns a StringBuilder set to the input String for use in methods which build a String.
static java.lang.StringBuilder getSharedStringBuilder(java.lang.ThreadLocal<java.lang.StringBuilder> tl)
          Returns an empty StringBuilder for use in methods which build a String.
static java.lang.StringBuilder getSharedStringBuilder(java.lang.ThreadLocal<java.lang.StringBuilder> tl, java.lang.String s)
          Returns a StringBuilder set to the input String for use in methods which build a String.
static java.lang.StringBuilder getSharedStringBuilder2()
          Returns an empty StringBuilder for use in methods which build a String.
static java.lang.StringBuilder getSharedStringBuilder2(java.lang.String s)
          Returns a StringBuilder set to the input String for use in methods which build a String.
static boolean hasBorder(int s)
          Deprecated. due to JEWT Removal project, moved to DataviewViewStyleUtils Do we have any border given this style?
static java.awt.Color hexStringToColor(java.lang.String str)
           
static int hexStringToInt(java.lang.String str)
          Deprecated. in favor of hexStringToColor
static int scaleByZoom(int size, int zoomFactor)
           
static int scaleDownByZoom(int size, int zoomFactor)
           
static void selectPageItem(Dataview view, long pi)
          Deprecated. This will be removed due to removal of JEWT dependency, No classes are using this right now
static void setCursor(java.awt.Component component, java.awt.Cursor c)
           
static java.lang.Double toDouble(java.lang.String value, java.util.Locale locale, java.text.NumberFormat numberFormat)
           
static java.lang.String toHexString(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataviewUtils

public DataviewUtils()
Method Detail

hasBorder

public static boolean hasBorder(int s)
Deprecated. due to JEWT Removal project, moved to DataviewViewStyleUtils Do we have any border given this style?

Parameters:
s - style to check
Returns:
true if a border
For internal use only. Application developers should not use this
For internal use only. Application developers should not use this

scaleByZoom

public static int scaleByZoom(int size,
                              int zoomFactor)
Parameters:
size - number to scale
zoomFactor - whole percentage to scale by
Returns:
scaled number
For internal use only. Application developers should not use this
Scale a size by a percentage factor.

scaleDownByZoom

public static int scaleDownByZoom(int size,
                                  int zoomFactor)
Parameters:
size - number to scale
zoomFactor - whole percentage to scale by
Returns:
scaled number
For internal use only. Application developers should not use this
Scale down by the zoom factor.

adjustForEnhancedFont

public static int adjustForEnhancedFont(int height,
                                        boolean underline,
                                        boolean doubleunderline)
Parameters:
height - height to change
underline - underlined?
doubleunderline - double underlined?
Returns:
new height
For internal use only. Application developers should not use this
Adjust height based on enhancement settings.

copyStyleProperties

public static void copyStyleProperties(Styleable toStyleable,
                                       Styleable fromStyleable)
Deprecated. This will be removed due to removal of JEWT dependency, moved to DataviewViewStyleUtils

Parameters:
toStyleable - object to copy to
fromStyleable - object to copy from
For internal use only. Application developers should not use this
For internal use only. Application developers should not use this
Copies style properties from one object to another. Do not use this without Oralce JEWT imported.

selectPageItem

public static final void selectPageItem(Dataview view,
                                        long pi)
Deprecated. This will be removed due to removal of JEWT dependency, No classes are using this right now

For internal use only. Application developers should not use this
For internal use only. Application developers should not use this

convertVertAlignToEWT

public static int convertVertAlignToEWT(int align)
Convert vertical Swing alignemnts to EWT

Parameters:
align - Swing alignment
Returns:
EWT alignments

convertHorizAlignToEWT

public static int convertHorizAlignToEWT(int align)
Convert horizontal Swing alignemnts to EWT

Parameters:
align - Swing alignment
Returns:
EWT alignments

convertVertAlignToJava

public static int convertVertAlignToJava(int ewtAlign)
Convert vertical EWT alignments to Swing alignments

Parameters:
ewtAlign - EWT alignment
Returns:
Swing alignment

convertHorizAlignToJava

public static int convertHorizAlignToJava(int ewtAlign)
Convert horizontal EWT alignments to Swing alignments

Parameters:
ewtAlign - EWT alignment
Returns:
Swing alignment

compareXMLVersions

public static int compareXMLVersions(java.lang.String ver1,
                                     java.lang.String ver2)
Parameters:
ver1 - a String representation of an XML version number, for instance as it appears in the XML (e.g.- "1.7.0.6")
ver2 - the second XML version number
Returns:
-1 if ver1 < ver2, 0 if ver1 == ver2, or 1 if ver1 > ver2
For internal use only. Application developers should not use this
Compare two XML version numbers.

toHexString

public static java.lang.String toHexString(int value)
For internal use only. Application developers should not use this
Converts to Hexadecimal string having only lower 24 bits

hexStringToInt

@Deprecated
public static int hexStringToInt(java.lang.String str)
Deprecated. in favor of hexStringToColor

For internal use only. Application developers should not use this
Converts Hexadecimal string having only lower 24 bits to integer

hexStringToColor

public static java.awt.Color hexStringToColor(java.lang.String str)
For internal use only. Application developers should not use this
Converts Hexadecimal string having only lower 24 bits to Color If the string does not specify an alpha value, defaults to FF opaque

fontStyle

public static int fontStyle(boolean bold,
                            boolean italic)
Parameters:
bold - true to make the font bold, false to prohibit the font from being bold.
italic - true to make the font italicized, false to prohibit the font from being italicized.
Returns:
s The font style for the text.
For internal use only. Application developers should not use this
Specifies whether the font for the text is bold, italic, or plain. This method is set by the setFontBold and setFontItalic methods. To make the font plain, set both parameter values to false.

toDouble

public static java.lang.Double toDouble(java.lang.String value,
                                        java.util.Locale locale,
                                        java.text.NumberFormat numberFormat)
For internal use only. Application developers should not use this
This method converts a string to a Double type, returns null if invalid - parameter locale is required - parameter numberFormat is optional note: moved from gridView.FormatModel.java

setCursor

public static void setCursor(java.awt.Component component,
                             java.awt.Cursor c)
Parameters:
component - component to set the cursor on
c - cursor to set
For internal use only. Application developers should not use this
Set the given cursor on the given component and its children.

getSharedStringBuilder

public static java.lang.StringBuilder getSharedStringBuilder(java.lang.ThreadLocal<java.lang.StringBuilder> tl)
Returns an empty StringBuilder for use in methods which build a String. Uses the input ThreadLocal StringBuilder This StringBuilder object is reused for efficiency.

Returns:
For internal use only. Application developers should not use this

getSharedStringBuilder

public static java.lang.StringBuilder getSharedStringBuilder()
Returns an empty StringBuilder for use in methods which build a String. This StringBuilder object is reused for efficiency.

Returns:
For internal use only. Application developers should not use this

getSharedStringBuilder2

public static java.lang.StringBuilder getSharedStringBuilder2()
Returns an empty StringBuilder for use in methods which build a String. This StringBuilder object is reused for efficiency. This accesses a different instance of StringBuilder than getSharedStringBuilder().

Returns:
For internal use only. Application developers should not use this

getSharedStringBuilder

public static java.lang.StringBuilder getSharedStringBuilder(java.lang.ThreadLocal<java.lang.StringBuilder> tl,
                                                             java.lang.String s)
Returns a StringBuilder set to the input String for use in methods which build a String. This StringBuilder object is reused for efficiency.

Returns:
For internal use only. Application developers should not use this

getSharedStringBuilder

public static java.lang.StringBuilder getSharedStringBuilder(java.lang.String s)
Returns a StringBuilder set to the input String for use in methods which build a String. This StringBuilder object is reused for efficiency.

Returns:
For internal use only. Application developers should not use this

getSharedStringBuilder2

public static java.lang.StringBuilder getSharedStringBuilder2(java.lang.String s)
Returns a StringBuilder set to the input String for use in methods which build a String. This StringBuilder object is reused for efficiency. This accesses a different instance of StringBuilder than getSharedStringBuilder().

Returns:
For internal use only. Application developers should not use this

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 2 (11.1.2.0.0)

E17492-01

Copyright © 1997, 2011, Oracle. All rights reserved.