MCPcopy Index your code
hub / github.com/processing/processing / zoom

Method zoom

app/src/processing/app/ui/Toolkit.java:828–835  ·  view source on GitHub ↗
(int pixels)

Source from the content-addressed store, hash-verified

826
827
828 static public int zoom(int pixels) {
829 if (zoom == 0) {
830 zoom = parseZoom();
831 }
832 // Deal with 125% scaling badness
833 // https://github.com/processing/processing/issues/4902
834 return (int) Math.ceil(zoom * pixels);
835 }
836
837
838 static public Dimension zoom(int w, int h) {

Callers 15

getFontMethod · 0.95
DetailPanelClass · 0.95
StatusPanelClass · 0.95
ListPanelMethod · 0.95
ManagerTabsClass · 0.95
ManagerTabsMethod · 0.95
paintComponentMethod · 0.95
ContributionTabClass · 0.95
ManagerFrameClass · 0.95
ManagerFrameMethod · 0.95
makeFrameMethod · 0.95
updateAppearanceMethod · 0.95

Calls 2

parseZoomMethod · 0.95
ceilMethod · 0.80

Tested by

no test coverage detected