| java.lang.Object org.netbeans.modules.visualweb.designer.CssUtilities
CssUtilities | final public class CssUtilities (Code) | | Utilites for css box visual formatting.
author: Peter Zavadsky author: Tor Norbye (the old font stuff) |
Field Summary | |
final public static int | AUTO |
Method Summary | |
public static int | getCssLength(Element element, int property) XXX Copy also in insync/FacesDnDSupport. | public static Font | getDesignerFontForElement(Element element, String text, int defaultFontSize) Gets designer Font for specified element and text.
Parameters: element - Element for which the Font is provided Parameters: text - text based on which the font is selected (according the priority listand the ability to show all its characters. | public static FontMetrics | getDesignerFontMetricsForElement(Element element, String text, int defaultFontSize) Gets FontMetrics for the designer Font used for specified
Element and text. |
AUTO | final public static int AUTO(Code) | | |
getCssLength | public static int getCssLength(Element element, int property)(Code) | | XXX Copy also in insync/FacesDnDSupport.
XXX Copy also in designer/jsf/../DomDocumentImpl
XXX Provides the auto value as AUTO , revise that, it looks very dangerous.
TODO At least move into designer/cssengine.
|
getDesignerFontForElement | public static Font getDesignerFontForElement(Element element, String text, int defaultFontSize)(Code) | | Gets designer Font for specified element and text.
Parameters: element - Element for which the Font is provided Parameters: text - text based on which the font is selected (according the priority listand the ability to show all its characters. |
getDesignerFontMetricsForElement | public static FontMetrics getDesignerFontMetricsForElement(Element element, String text, int defaultFontSize)(Code) | | Gets FontMetrics for the designer Font used for specified
Element and text.
Parameters: element - Element which used font's metrics is gonna be provided Parameters: text - text based on which the font is selected (according the priority listand the ability to show all its characters). See Also: CssUtilities.getDesignerFontForElement See Also: |
|
|