GrxGraphItem.java
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2008, AIST, the University of Tokyo and General Robotix Inc.
00003  * All rights reserved. This program is made available under the terms of the
00004  * Eclipse Public License v1.0 which accompanies this distribution, and is
00005  * available at http://www.eclipse.org/legal/epl-v10.html
00006  * Contributors:
00007  * General Robotix Inc.
00008  * National Institute of Advanced Industrial Science and Technology (AIST) 
00009  */
00010 /*
00011  *  GrxGraphItem.java
00012  *
00013  *  Copyright (C) 2007 GeneralRobotix, Inc.
00014  *  All Rights Reserved
00015  *
00016  *  @author Yuichiro Kawasumi (General Robotix, Inc.)
00017  */
00018 
00019 package com.generalrobotix.ui.item;
00020 
00021 import com.generalrobotix.ui.GrxBaseItem;
00022 import com.generalrobotix.ui.GrxPluginManager;
00023 
00024 @SuppressWarnings("serial")
00025 public class GrxGraphItem extends GrxBaseItem {
00026         public static final String TITLE = "Graph Contents";
00027 
00028         public GrxGraphItem(String name, GrxPluginManager manager) {
00029                 super(name, manager);
00030                 setExclusive(true);
00031                 setIcon("graph.png");
00032         }
00033         
00034         public boolean create() {
00035                 setDblAry("timeRange", new double[]{1.0, 0.8});
00036                 return true;
00037         }
00038         
00039         public void restoreProperties() {
00040                 super.restoreProperties();
00041                 if(getDblAry("timeRange", null)==null)
00042                         setDblAry("timeRange", new double[]{1.0, 0.8});
00043         }
00044 }


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Apr 11 2019 03:30:16