/** * Check whether projector is linear * @return true if Projector is linear, else false */ public boolean isLinear() { return _scaleType.isLinear(); }
/** * Check whether projector is logarithmic * @return true if Projector is logarithmic, else false */ public boolean isLog() { return _scaleType.isLog(); }
public static JPanel makeScalePanel(final PointsView pv, String title){ AxisScale[] values = AxisScale.values(); JPanel scalePanel = new JPanel(); scalePanel.setLayout(new BoxLayout(scalePanel,BoxLayout.Y_AXIS));
/** * Sets the scale type * @param s new scale type * @return the scale type. */ protected Projector setScale(AxisScale s) { if(s.isLog() && !(_v0==0.0 && _v1==0.0)) Check.argument(_v0>0 && _v1>0,"LOG scale: v0<=0 or v1<=0"); _scaleType = s; computeShiftsAndScales(); return this; }
boolean isLeft = isLeft(); boolean isVerticalRotated = isVerticalRotated(); boolean isLogScale = (p.getScale().isLog());