Method max(float a, float b)
Return type: float
Member of:
java.lang.Math
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
focusStroke = new BasicStroke(Math.max(1.0f,g.getFont().getSize()/15), BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 0, new float[]{g.getFont().getSize()/5,g.getFont().getSize()/5}, 0);
2
float step = Math.max((usize - 4) / 10, 0.2f);
3
focusStroke = new BasicStroke(Math.max(1.0f,g.getFont().getSize()/15), BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 0, new float[]{g.getFont().getSize()/5,g.getFont().getSize()/5}, 0);
4
this.diameter = Math.max( super.getImageWidth() - widthNeeded, 1.0f );
5
Math.max(llx, urx), Math.max(lly, ury));
6
maxDistLR= Math.max(distLR, maxDistLR);
7
menuFont = menuFont.deriveFont(Math.max(minSize, size));
8
maxVal= Math.max(maxVal,ms.maxDataS);
9
yPos += Math.max(lineHeight1, lineHeight2);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.