MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getDefaultFlags

Method getDefaultFlags

ij/src/main/java/ij/gui/Plot.java:794–801  ·  view source on GitHub ↗

The default flags, taking PlotWindow.noGridLines, PlotWindow.noTicks into account

()

Source from the content-addressed store, hash-verified

792
793 /** The default flags, taking PlotWindow.noGridLines, PlotWindow.noTicks into account */
794 public static int getDefaultFlags() {
795 int defaultFlags = 0;
796 if (!PlotWindow.noGridLines) //note that log ticks are also needed because the range may span less than a decade, then no grid is visible
797 defaultFlags |= X_GRID | Y_GRID | X_NUMBERS | Y_NUMBERS | X_LOG_TICKS | Y_LOG_TICKS;
798 if (!PlotWindow.noTicks)
799 defaultFlags |= X_TICKS | Y_TICKS | X_MINOR_TICKS | Y_MINOR_TICKS | X_NUMBERS | Y_NUMBERS | X_LOG_TICKS | Y_LOG_TICKS;
800 return defaultFlags;
801 }
802
803 /** Adds a curve or set of points to this plot, where 'type' is
804 * "line", "connected circle", "filled", "bar", "separated bar", "circle", "box", "triangle", "diamond", "cross",

Callers 2

actionPerformedMethod · 0.95
PlotMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected