| java.lang.Object javax.swing.plaf.synth.SynthGraphicsUtils
SynthGraphicsUtils | public class SynthGraphicsUtils (Code) | | |
Method Summary | |
public int | computeStringWidth(SynthContext context, Font font, FontMetrics metrics, String text) | public void | drawLine(SynthContext context, Object paintKey, Graphics g, int x1, int y1, int x2, int y2) | public int | getMaximumCharHeight(SynthContext context) | public Dimension | getMaximumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) | public Dimension | getMinimumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) | public Dimension | getPreferredSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) | public String | layoutText(SynthContext ss, FontMetrics fm, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int iconTextGap) | public void | paintText(SynthContext ss, Graphics g, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex, int textOffset) | public void | paintText(SynthContext ss, Graphics g, String text, int x, int y, int mnemonicIndex) | public void | paintText(SynthContext ss, Graphics g, String text, Rectangle bounds, int mnemonicIndex) |
computeStringWidth | public int computeStringWidth(SynthContext context, Font font, FontMetrics metrics, String text)(Code) | | Calculate string width with given parameters
Parameters: context - SynthContext to specify component Parameters: font - Font used to draw the string (if null font calculates from theSynthContext) Parameters: metrics - FontMetrics used to draw the string (if null metricscalculates from the SynthContext) Parameters: text - String to draw |
getMaximumCharHeight | public int getMaximumCharHeight(SynthContext context)(Code) | | Calculate string height from Context
Parameters: context - SynthContext to specify component |
getMaximumSize | public Dimension getMaximumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)(Code) | | Calculates the preferred size for the component with given parameters
|
getMinimumSize | public Dimension getMinimumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)(Code) | | Calculates the minimum size for the component with given parameters
|
getPreferredSize | public Dimension getPreferredSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)(Code) | | Calculates the maximum size for the component with given parameters
|
layoutText | public String layoutText(SynthContext ss, FontMetrics fm, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int iconTextGap)(Code) | | Layouts text and Icon in the complex JComponent
|
paintText | public void paintText(SynthContext ss, Graphics g, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex, int textOffset)(Code) | | |
|
|