Package jsynoptic.ui

Examples of jsynoptic.ui.LongAction


    }

    protected boolean add(TimeStampedDataSource ds, boolean primary, boolean background) {
        if (ds==null) return false;

        new LongAction(LongAction.LONG_ACTION_SHAPE | LongAction.LONG_ACTION_SOURCE,
                new Object[]{ds, new Boolean(primary), new Boolean(background)},
                new Object[]{ds, this} ) {

            protected void doAction() {
View Full Code Here


   * @see jsynoptic.base.ContextualActionProvider#doAction(double, double, java.lang.Object, java.lang.String)
   */
  public boolean doAction(double x, double y, Object o, String action, CompoundEdit undoableEdit) {

    if (action.equals(resources.getString("Properties..."))) {
      new LongAction(LongAction.LONG_ACTION_SHAPE, null, this) {
        protected void doAction() {
          ChartPropertyEditPanel panel = new ChartPropertyEditPanel(chart);
          JTabbedPane tab = findTab(panel);
          PlotPanel plotPanel = null;
          if (tab!=null) tab.add(plotPanel = new PlotPanel(),0);
View Full Code Here

  /* (non-Javadoc)
   * @see jsynoptic.base.ContextualActionProvider#doAction(double, double, java.lang.Object, java.lang.String)
   */
  public boolean doAction(double x, double y, Object o, String action, CompoundEdit undoableEdit) {
    if (action.equals(resources.getString("Properties..."))) {
      new LongAction(LongAction.LONG_ACTION_SHAPE, null, this) {
        protected void doAction() {
          ChartPropertyEditPanel panel = new ChartPropertyEditPanel(chart);
          JTabbedPane tab = findTab(panel);
          PlotPanel plotPanel = null;
          if (tab!=null) tab.add(plotPanel = new PlotPanel(),0);
View Full Code Here

  /* (non-Javadoc)
   * @see jsynoptic.base.ContextualActionProvider#doAction(double, double, java.lang.Object, java.lang.String)
   */
  public boolean doAction(double x, double y, Object o, String action, CompoundEdit undoableEdit) {
    if (action.equals(resources.getString("Properties..."))) {
      new LongAction(LongAction.LONG_ACTION_SHAPE, null, this) {
        protected void doAction() {
          ChartPropertyEditPanel panel = new ChartPropertyEditPanel(chart);
          JTabbedPane tab = findTab(panel);
          PlotPanel plotPanel = null;
          if (tab!=null) tab.add(plotPanel = new PlotPanel(),0);
View Full Code Here

  /* (non-Javadoc)
   * @see jsynoptic.base.ContextualActionProvider#doAction(double, double, java.lang.Object, java.lang.String)
   */
  public boolean doAction(double x, double y, Object o, String action, CompoundEdit undoableEdit) {
    if (action.equals(resources.getString("properties"))) {
      new LongAction(LongAction.LONG_ACTION_SHAPE, null, this) {
        protected void doAction() {
          PropertiesPanel panel = createPanel();
          int result = JOptionPane.showConfirmDialog(JSynoptic.gui.getOwner(), panel,
              panel.getShapeName() + resources.getString("propertiesTitle"), JOptionPane.OK_CANCEL_OPTION,
              JOptionPane.PLAIN_MESSAGE);
View Full Code Here

    public boolean doAction(double x, double y, Object o, String action, CompoundEdit undoableEdit) {
        if (action.equals(resources.getString("SetSource"))) {
            return addDataSource((DataSource) o);
        }
        if (action.equals(resources.getString("Properties..."))) {
            new LongAction(LongAction.LONG_ACTION_SHAPE, null, this) {
                protected void doAction() {
                    HistoryTextPropertiesPanel panel = (HistoryTextPropertiesPanel) createPanel();

                    /**
                     * Only one shape properties dialog box can be displayed at
View Full Code Here

   * @see jsynoptic.base.ContextualActionProvider#doAction(double, double, java.lang.Object, java.lang.String)
   */
  public boolean doAction(double x, double y, Object o, String action, CompoundEdit undoableEdit) {

    if (action.equals(resources.getString("Properties..."))) {
      new LongAction(LongAction.LONG_ACTION_SHAPE, null, this) {
        protected void doAction() {
          ChartPropertyEditPanel panel = new ChartPropertyEditPanel(chart);
          JTabbedPane tab = findTab(panel);
          BoundsPanel plotPanel = null;
          if (tab!=null) tab.add(plotPanel = new BoundsPanel(),0);
View Full Code Here

    return (String[])v.toArray(new String[v.size()]);
  }

  public boolean doAction(double x, double y, Object o, String action, CompoundEdit undoableEdit) {
    if (action.equals(resources.getString("Properties..."))) {
      new LongAction(LongAction.LONG_ACTION_SHAPE, null, this) {
        protected void doAction() {
          ChartPropertyEditPanel panel = new ChartPropertyEditPanel(chart);
          JTabbedPane tab = findTab(panel);
          XYPlot plot = (XYPlot)chart.getXYPlot();
          PlotPanel plotPanel = new PlotPanel();
View Full Code Here

      plot.setDomainCrosshairVisible(false);
      JSynoptic.setStatus("");
    }
   
    if (action.equals(resources.getString("Properties..."))) {
      new LongAction(LongAction.LONG_ACTION_SHAPE, null, this) {
        protected void doAction() {
          ChartPropertyEditPanel panel = new ChartPropertyEditPanel(chart);
          JTabbedPane tab = findTab(panel);
          PlotPanel plotPanel = null;
          if (tab!=null) tab.add(plotPanel = new PlotPanel(),0);
View Full Code Here

    public boolean doAction(double x, double y, Object o, String action, CompoundEdit undoableEdit) {
       
        //TODO make those actions undoable
       
        if (action.equals(resources.getString("Properties..."))) {
            new LongAction(LongAction.LONG_ACTION_SHAPE, null, this) {
                protected void doAction() {
                    JPropertiesPanel panel = createPanel();

                    /**
                     * Only one shape properties dialog box can be displayed at
View Full Code Here

TOP

Related Classes of jsynoptic.ui.LongAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.