本文整理汇总了Java中org.math.plot.Plot3DPanel.setForeground方法的典型用法代码示例。如果您正苦于以下问题:Java Plot3DPanel.setForeground方法的具体用法?Java Plot3DPanel.setForeground怎么用?Java Plot3DPanel.setForeground使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.math.plot.Plot3DPanel
的用法示例。
在下文中一共展示了Plot3DPanel.setForeground方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addBase3dPanel
import org.math.plot.Plot3DPanel; //导入方法依赖的package包/类
protected void addBase3dPanel() {
GridBagLayout gbl_plotPanel = (GridBagLayout)plotPanel.getLayout();
gbl_plotPanel.columnWidths = new int[] {0, 0};
gbl_plotPanel.columnWeights = new double[]{1.0, 1.0};
newPlot3d = new Plot3DPanel("SOUTH") {
private static final long serialVersionUID = 7914951068593204419L;
public void addPlotToolBar(String location) {
super.addPlotToolBar(location);
super.plotToolBar.remove(7);
super.plotToolBar.remove(5);
super.plotToolBar.remove(4);
}
};
newPlot3d.setAutoBounds();
newPlot3d.setAutoscrolls(true);
newPlot3d.setEditable(false);
newPlot3d.setBorder(BorderFactory.createLineBorder(Color.BLACK));
newPlot3d.setForeground(Color.BLACK);
newPlot3d.getAxis(0).setColor(Color.BLACK);
newPlot3d.getAxis(1).setColor(Color.BLACK);
newPlot3d.getAxis(2).setColor(Color.BLACK);
newPlot3d.setAxisLabel(0, x3dAxisName);
newPlot3d.setAxisLabel(1, y3dAxisName);
newPlot3d.setAxisLabel(2, z3dAxisName);
GridBagConstraints gbl_chartPanel = new GridBagConstraints();
gbl_chartPanel.anchor = GridBagConstraints.CENTER;
gbl_chartPanel.insets = insets3;
gbl_chartPanel.fill = GridBagConstraints.BOTH;
gbl_chartPanel.gridx = 0;
gbl_chartPanel.gridy = 0;
plotPanel.add(plot3d, gbl_chartPanel);
gbl_chartPanel.gridx = 1;
plotPanel.add(newPlot3d, gbl_chartPanel);
}
示例2: create3dGraphTab
import org.math.plot.Plot3DPanel; //导入方法依赖的package包/类
protected void create3dGraphTab() {
plotPanel = new JPanel();
add(plotPanel, "<html><div style='text-align: center;'>3<br>D<br><br>C<br>h<br>a<br>r<br>t</div></html>");
GridBagLayout gbl_plotPanel = new GridBagLayout();
gbl_plotPanel.columnWidths = new int[] {0};
gbl_plotPanel.rowHeights = new int[] {0};
gbl_plotPanel.columnWeights = new double[]{1.0};
gbl_plotPanel.rowWeights = new double[]{1.0};
plotPanel.setLayout(gbl_plotPanel);
plot3d = new Plot3DPanel("SOUTH") {
private static final long serialVersionUID = 7914951068593204419L;
public void addPlotToolBar(String location) {
super.addPlotToolBar(location);
super.plotToolBar.remove(7);
super.plotToolBar.remove(5);
super.plotToolBar.remove(4);
}
};
plot3d.setAutoBounds();
plot3d.setAutoscrolls(true);
plot3d.setEditable(false);
plot3d.setBorder(BorderFactory.createLineBorder(Color.BLACK));
plot3d.setForeground(Color.BLACK);
plot3d.getAxis(0).setColor(Color.BLACK);
plot3d.getAxis(1).setColor(Color.BLACK);
plot3d.getAxis(2).setColor(Color.BLACK);
plot3d.setAxisLabel(0, x3dAxisName);
plot3d.setAxisLabel(1, y3dAxisName);
plot3d.setAxisLabel(2, z3dAxisName);
GridBagConstraints gbl_chartPanel = new GridBagConstraints();
gbl_chartPanel.anchor = GridBagConstraints.CENTER;
gbl_chartPanel.insets = insets3;
gbl_chartPanel.fill = GridBagConstraints.BOTH;
gbl_chartPanel.gridx = 0;
gbl_chartPanel.gridy = 0;
plotPanel.add(plot3d, gbl_chartPanel);
}
示例3: createGraghTab
import org.math.plot.Plot3DPanel; //导入方法依赖的package包/类
private void createGraghTab() {
JPanel plotPanel = new JPanel();
add(plotPanel, "<html><div style='text-align: center;'>3<br>D<br> <br>C<br>h<br>a<br>r<br>t</div></html>");
GridBagLayout gbl_plotPanel = new GridBagLayout();
gbl_plotPanel.columnWidths = new int[] {0};
gbl_plotPanel.rowHeights = new int[] {0, 0};
gbl_plotPanel.columnWeights = new double[]{1.0};
gbl_plotPanel.rowWeights = new double[]{0.0, 1.0};
plotPanel.setLayout(gbl_plotPanel);
JPanel cntlPanel = new JPanel();
GridBagConstraints gbl_ctrlPanel = new GridBagConstraints();
gbl_ctrlPanel.insets = insets3;
gbl_ctrlPanel.anchor = GridBagConstraints.NORTH;
gbl_ctrlPanel.weightx = 1.0;
gbl_ctrlPanel.fill = GridBagConstraints.HORIZONTAL;
gbl_ctrlPanel.gridx = 0;
gbl_ctrlPanel.gridy = 0;
plotPanel.add(cntlPanel, gbl_ctrlPanel);
GridBagLayout gbl_cntlPanel = new GridBagLayout();
gbl_cntlPanel.columnWidths = new int[]{0, 0, 0, 0, 0, 0};
gbl_cntlPanel.rowHeights = new int[]{0};
gbl_cntlPanel.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 1.0};
gbl_cntlPanel.rowWeights = new double[]{0};
cntlPanel.setLayout(gbl_cntlPanel);
addRadioButton(cntlPanel, 0, "Grid", "grid");
addRadioButton(cntlPanel, 1, "Histogram", "hist");
addRadioButton(cntlPanel, 2, "Bar", "bar");
addRadioButton(cntlPanel, 3, "Line", "line");
addRadioButton(cntlPanel, 4, "Scatter", "scatter");
plot = new Plot3DPanel("SOUTH") {
private static final long serialVersionUID = 7914951068593204419L;
public void addPlotToolBar(String location) {
super.addPlotToolBar(location);
super.plotToolBar.remove(7);
super.plotToolBar.remove(5);
super.plotToolBar.remove(4);
}
};
plot.setAutoBounds();
plot.setAutoscrolls(true);
plot.setEditable(false);
plot.setBorder(BorderFactory.createLineBorder(Color.BLACK));
plot.setForeground(Color.BLACK);
plot.getAxis(0).setColor(Color.BLACK);
plot.getAxis(1).setColor(Color.BLACK);
plot.getAxis(2).setColor(Color.BLACK);
GridBagConstraints gbl_chartPanel = new GridBagConstraints();
gbl_chartPanel.anchor = GridBagConstraints.CENTER;
gbl_chartPanel.insets = insets3;
gbl_chartPanel.weightx = 1.0;
gbl_chartPanel.weighty = 1.0;
gbl_chartPanel.fill = GridBagConstraints.BOTH;
gbl_chartPanel.gridx = 0;
gbl_chartPanel.gridy = 1;
plotPanel.add(plot, gbl_chartPanel);
}