当前位置: 首页>>代码示例>>Java>>正文


Java SimpleIntegerProperty类代码示例

本文整理汇总了Java中javafx.beans.property.SimpleIntegerProperty的典型用法代码示例。如果您正苦于以下问题:Java SimpleIntegerProperty类的具体用法?Java SimpleIntegerProperty怎么用?Java SimpleIntegerProperty使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SimpleIntegerProperty类属于javafx.beans.property包,在下文中一共展示了SimpleIntegerProperty类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SequenceVisualizer

import javafx.beans.property.SimpleIntegerProperty; //导入依赖的package包/类
/**
 * Create instance of {@link SequenceVisualizer}.
 */
public SequenceVisualizer() {
    sequenceProperty = new SimpleStringProperty();
    offsetProperty = new SimpleIntegerProperty();
    onScreenBasesProperty = new SimpleIntegerProperty();
    hoveredBaseIdProperty = new SimpleIntegerProperty(-1);

    sequenceProperty.addListener((observable, oldValue, newValue) -> {
        if (offsetProperty.get() == 0) {
            draw(); // force redraw if offset remains unchanged.
        }
        offsetProperty.set(0);
    });
    offsetProperty.addListener((observable, oldValue, newValue) -> draw());
    hoveredBaseIdProperty.addListener((observable, oldValue, newValue) -> draw());

    visibleProperty = new SimpleBooleanProperty(false);
}
 
开发者ID:ProgrammingLife2017,项目名称:hygene,代码行数:21,代码来源:SequenceVisualizer.java

示例2: beforeEach

import javafx.beans.property.SimpleIntegerProperty; //导入依赖的package包/类
@BeforeEach
void beforeEach() throws GfaParseException {
    bookmark = new Bookmark(0, 5, 32, "1234");

    final GraphStore graphStore = new GraphStore();

    graphVisualizer = mock(GraphVisualizer.class);
    sequenceVisualizer = mock(SequenceVisualizer.class);
    graphDimensionsCalculator = mock(GraphDimensionsCalculator.class);

    centerNodeIdProperty = new SimpleIntegerProperty(-1);
    radiusProperty = new SimpleIntegerProperty(-1);
    when(graphDimensionsCalculator.getCenterNodeIdProperty()).thenReturn(centerNodeIdProperty);
    when(graphDimensionsCalculator.getRadiusProperty()).thenReturn(radiusProperty);

    simpleBookmarkStore = new SimpleBookmarkStore(
            graphStore, graphVisualizer, graphDimensionsCalculator, sequenceVisualizer);
}
 
开发者ID:ProgrammingLife2017,项目名称:hygene,代码行数:19,代码来源:SimpleBookmarkStoreTest.java

示例3: initialize

import javafx.beans.property.SimpleIntegerProperty; //导入依赖的package包/类
/**
 * Initializes the FXML controller class.
 */
@Override
public void initialize(URL url, ResourceBundle rb) {
    billItems = FXCollections.observableArrayList();

    itemNameColumn.setCellValueFactory((param) -> {
        return new SimpleStringProperty(param.getValue().getName());
    });

    qtyColumn.setCellValueFactory((param) -> {
        return new SimpleIntegerProperty(param.getValue().getQuantity())
                .asObject();
    });

    priceColumn.setCellValueFactory((param) -> {
        return new SimpleStringProperty(
            String.format("%.2f", param.getValue().getTotalPrice())
        );
    });

    billTable.setItems(billItems);
}
 
开发者ID:maillouxc,项目名称:git-rekt,代码行数:25,代码来源:CustomerBillScreenController.java

示例4: Add_purchase

import javafx.beans.property.SimpleIntegerProperty; //导入依赖的package包/类
public Add_purchase(String purchaseHsn, String purchaseItem, String purchaseBatch, Integer purchaseQuantity, Float purchaseCost, Float purchaseMrp, String purchaseSalt, String purchaseCompany, String purchaseType, String purchaseExpiry, String purchaseMfd, Integer purchaseSgst, Integer purchaseCgst, Integer purchaseIgst, Integer purchaseIpunit, Integer purchasePpitem) {
    this.purchaseHsn = new SimpleStringProperty(purchaseHsn);
    this.purchaseItem = new SimpleStringProperty(purchaseItem);
    this.purchaseBatch = new SimpleStringProperty(purchaseBatch);
    this.purchaseQuantity = new SimpleIntegerProperty(purchaseQuantity);
    this.purchaseCost = new SimpleFloatProperty(purchaseCost);
    this.purchaseMrp = new SimpleFloatProperty(purchaseMrp);
    this.purchaseSalt = new SimpleStringProperty(purchaseSalt);
    this.purchaseCompany = new SimpleStringProperty(purchaseCompany);
    this.purchaseType = new SimpleStringProperty(purchaseType);
    this.purchaseExpiry = new SimpleStringProperty(purchaseExpiry);
    this.purchaseMfd = new SimpleStringProperty(purchaseMfd);
    this.purchaseSgst = new SimpleIntegerProperty(purchaseSgst);
    this.purchaseCgst = new SimpleIntegerProperty(purchaseCgst);
    this.purchaseIgst = new SimpleIntegerProperty(purchaseIgst);
    this.purchaseIpunit = new SimpleIntegerProperty(purchaseIpunit);
    this.purchasePpitem = new SimpleIntegerProperty(purchasePpitem);
}
 
开发者ID:alchemsynergy,项目名称:alchem,代码行数:19,代码来源:Add_purchase.java

示例5: Medicine

import javafx.beans.property.SimpleIntegerProperty; //导入依赖的package包/类
public Medicine(int code, String name, String salt, String company, String type, String hsn, String batch, String expiry, int quantity, float mrp, float cost, int sgst, int cgst, int igst) {
    this.code = new SimpleIntegerProperty(code);
    this.name = new SimpleStringProperty(name);
    this.salt = new SimpleStringProperty(salt);
    this.company = new SimpleStringProperty(company);
    this.type = new SimpleStringProperty(type);
    this.hsn = new SimpleStringProperty(hsn);
    this.batch = new SimpleStringProperty(batch);
    this.expiry = new SimpleStringProperty(expiry);
    this.quantity = new SimpleIntegerProperty(quantity);
    this.mrp = new SimpleFloatProperty(mrp);
    this.cost = new SimpleFloatProperty(cost);
    this.sgst = new SimpleIntegerProperty(sgst);
    this.cgst = new SimpleIntegerProperty(cgst);
    this.igst = new SimpleIntegerProperty(igst);
}
 
开发者ID:alchemsynergy,项目名称:alchem,代码行数:17,代码来源:Medicine.java

示例6: TX

import javafx.beans.property.SimpleIntegerProperty; //导入依赖的package包/类
private TX(int id, String desc, BigDecimal amount){
    this.amount = new SimpleStringProperty(amount.toPlainString());
    this.desc = new SimpleStringProperty(desc);
    this.id = new SimpleIntegerProperty(id);
    this.sortID = id;

    this.timeFilled = new SimpleLongProperty(0);
    this.status = new SimpleStringProperty("Requested");
    this.pin = new SimpleStringProperty("");
}
 
开发者ID:Roxas240,项目名称:CryptoPayAPI,代码行数:11,代码来源:Main.java

示例7: GlobalConfig

import javafx.beans.property.SimpleIntegerProperty; //导入依赖的package包/类
/**
 * Creates a default configuration. Paths are set to <tt>[Path to ... Executable]</tt>.
 */
public GlobalConfig() {
  verificationTimeout = new SimpleIntegerProperty(3600);
  simulationTimeout = new SimpleIntegerProperty(60);
  windowMaximized = new SimpleBooleanProperty(true);
  windowHeight = new SimpleIntegerProperty(600);
  windowWidth = new SimpleIntegerProperty(800);
  editorFontSize = new SimpleIntegerProperty(12);
  maxLineRollout = new SimpleIntegerProperty(50);
  editorFontFamily = new SimpleStringProperty("DejaVu Sans Mono");
  showLineNumbers = new SimpleBooleanProperty(true);
  uiLanguage = new SimpleStringProperty("EN");
  nuxmvFilename = new SimpleStringProperty(
      ExecutableLocator.findExecutableFileAsString("nuXmv")
          .orElse("[Path to nuXmv Executable]"));
  z3Path = new SimpleStringProperty(
      ExecutableLocator.findExecutableFileAsString("z3")
      .orElse("[Path to Z3 Executable]"));
  getetaCommand =
      new SimpleStringProperty("java -jar /path/to/geteta.jar -c ${code} -t ${spec} -x");
}
 
开发者ID:VerifAPS,项目名称:stvs,代码行数:24,代码来源:GlobalConfig.java

示例8: Transition

import javafx.beans.property.SimpleIntegerProperty; //导入依赖的package包/类
public Transition(int sourceState, double sourceCoefficient, int sourceDelay, int operandState,
        double operandCoefficient, int operandDelay, int resultState, double resultCoefficient,
        double probability, int type, int mode, String description) {
    mSourceState = new SimpleIntegerProperty(sourceState);
    mSourceCoefficient = new SimpleDoubleProperty(sourceCoefficient);
    mSourceDelay = new SimpleIntegerProperty(sourceDelay);
    mOperandState = new SimpleIntegerProperty(operandState);
    mOperandCoefficient = new SimpleDoubleProperty(operandCoefficient);
    mOperandDelay = new SimpleIntegerProperty(operandDelay);
    mResultState = new SimpleIntegerProperty(resultState);
    mResultCoefficient = new SimpleDoubleProperty(resultCoefficient);
    mProbability = new SimpleDoubleProperty(probability);
    mType = new SimpleIntegerProperty(type);
    mMode = new SimpleIntegerProperty(mode);
    mDescription = new SimpleStringProperty(description);
}
 
开发者ID:yuriy-budiyev,项目名称:population,代码行数:17,代码来源:Transition.java

示例9: Driver

import javafx.beans.property.SimpleIntegerProperty; //导入依赖的package包/类
public Driver(String name) {
    this.name = new SimpleStringProperty(name);
    this.displayName = new SimpleStringProperty(name);

    String[] nameChunks = name.split(" ");
    if (nameChunks.length == 1) {
        this.shortName = new SimpleStringProperty(name);
    } else {
        String firstName = nameChunks[0];
        String lastName = nameChunks[nameChunks.length - 1];
        this.shortName = new SimpleStringProperty(firstName.charAt(0) + ". " + lastName);
    }

    this.car = new SimpleObjectProperty<>(new Car("", new CarClass("", Color.rgb(255, 0, 0))));
    this.team = new SimpleStringProperty("");
    this.seriesPoints = new SimpleIntegerProperty(0);
    this.pointsAdjust = new SimpleStringProperty("");
}
 
开发者ID:SenorPez,项目名称:project-cars-replay-enhancer-ui,代码行数:19,代码来源:Driver.java

示例10: TextSearchComposite

import javafx.beans.property.SimpleIntegerProperty; //导入依赖的package包/类
/**
 * 생성자
 *
 * @param parent
 * @param content
 */
public TextSearchComposite(Parent parent, ObservableValue<String> content) {
	loader = new FXMLLoader();
	loader.setLocation(TextSearchComposite.class.getResource("TextSearchView.fxml"));
	loader.setRoot(this);
	loader.setController(this);
	try {
		loader.load();
		this.contentProperty = new SimpleStringProperty();
		this.contentProperty.bind(content);
		this.searchResultVOProperty = new SimpleObjectProperty<>();
		slidingStartIndexProperty = new SimpleIntegerProperty();

		this.parent = parent;
	} catch (IOException e) {
		LOGGER.error(ValueUtil.toString(e));
	}

	Platform.runLater(() -> txtFindTextContent.requestFocus());

}
 
开发者ID:callakrsos,项目名称:Gargoyle,代码行数:27,代码来源:TextSearchComposite.java

示例11: onDeath

import javafx.beans.property.SimpleIntegerProperty; //导入依赖的package包/类
@Override
public void onDeath() {
    dying = true;

    sprite.setImage(Config.Images.EXPLOSION);
    sprite.setViewport(new Rectangle2D(0, 0, 40, 40));

    SimpleIntegerProperty frameProperty = new SimpleIntegerProperty();
    frameProperty.addListener((obs, old, newValue) -> {
        if (newValue.intValue() > old.intValue())
            sprite.setViewport(new Rectangle2D((newValue.intValue() % 5) * 40, (newValue.intValue() / 5) * 40, 40, 40));
    });

    Timeline t = new Timeline(new KeyFrame(Duration.seconds(1), new KeyValue(frameProperty, 24)));
    t.setOnFinished(event -> {
        alive = false;
    });
    t.play();

    Config.Audio.EXPLOSION.play();
}
 
开发者ID:AlmasB,项目名称:FXGLGames,代码行数:22,代码来源:Enemy.java

示例12: Powerup

import javafx.beans.property.SimpleIntegerProperty; //导入依赖的package包/类
public Powerup(float x, float y, PowerType type) {
    super(x, y, Config.BLOCK_SIZE, Config.BLOCK_SIZE, BodyType.KINEMATIC, false);

    this.type = type;

    sprite = new ImageView(Config.Images.POWERUP);
    sprite.setFitHeight(Config.BLOCK_SIZE);
    sprite.setFitWidth(Config.BLOCK_SIZE);
    sprite.setViewport(new Rectangle2D(0, 0, 81, 81));

    getChildren().add(sprite);

    SimpleIntegerProperty frameProperty = new SimpleIntegerProperty();
    frameProperty.addListener((obs, old, newValue) -> {
        if (newValue.intValue() > old.intValue())
            sprite.setViewport(new Rectangle2D(newValue.intValue() * 81, (type.ordinal() + 1) * 81, 81, 81));
    });

    timeline = new Timeline(new KeyFrame(Duration.seconds(2), new KeyValue(frameProperty, 7)));
    timeline.setCycleCount(Timeline.INDEFINITE);
    timeline.play();
}
 
开发者ID:AlmasB,项目名称:FXGLGames,代码行数:23,代码来源:Powerup.java

示例13: Coin

import javafx.beans.property.SimpleIntegerProperty; //导入依赖的package包/类
public Coin(float x, float y) {
    super(x, y, Config.BLOCK_SIZE, Config.BLOCK_SIZE, BodyType.KINEMATIC, false);

    sprite = new ImageView(Config.Images.COIN);
    sprite.setFitHeight(Config.BLOCK_SIZE);
    sprite.setFitWidth(Config.BLOCK_SIZE);
    sprite.setViewport(new Rectangle2D(0, 0, 128, 128));

    getChildren().add(sprite);

    SimpleIntegerProperty frameProperty = new SimpleIntegerProperty();
    frameProperty.addListener((obs, old, newValue) -> {
        if (newValue.intValue() > old.intValue())
            sprite.setViewport(new Rectangle2D((newValue.intValue() % 8) * 128, (newValue.intValue() / 8) * 128, 128, 128));
    });

    timeline = new Timeline(new KeyFrame(Duration.seconds(2), new KeyValue(frameProperty, 23)));
    timeline.setCycleCount(Timeline.INDEFINITE);
    timeline.play();
}
 
开发者ID:AlmasB,项目名称:FXGLGames,代码行数:21,代码来源:Coin.java

示例14: ArmorSet

import javafx.beans.property.SimpleIntegerProperty; //导入依赖的package包/类
public ArmorSet() {
	name = new SimpleStringProperty("");
	items = new HashMap<>();
	stats = new HashMap<>();

	Arrays.asList(ArmorStats.values())
		.forEach(as ->
			stats.put(as, new SimpleIntegerProperty(0)));

	Arrays.asList(Slot.values())
		.forEach( s ->
			items.put(s, new SimpleObjectProperty<>()));

	items.values().stream()
		.forEach(p -> p.addListener(e -> recalculateStats()));

}
 
开发者ID:landonreams,项目名称:osrs-equipment-builder,代码行数:18,代码来源:ArmorSet.java

示例15: BuildWallConfigurationImpl

import javafx.beans.property.SimpleIntegerProperty; //导入依赖的package包/类
/**
 * Constructs a new {@link BuildWallConfigurationImpl}.
 */
public BuildWallConfigurationImpl() {
   buildNumberColour = new SimpleObjectProperty<>( DEFAULT_TEXT_COLOUR );
   buildNumberFont = new SimpleObjectProperty<>( DEFAULT_PROPERTIES_FONT );
   
   completionEstimateColour = new SimpleObjectProperty<>( DEFAULT_TEXT_COLOUR );
   completionEstimateFont = new SimpleObjectProperty<>( DEFAULT_PROPERTIES_FONT );
   
   jobNameColour = new SimpleObjectProperty<>( DEFAULT_TEXT_COLOUR );
   jobNameFont = new SimpleObjectProperty<>( DEFAULT_JOB_NAME_FONT );
   
   numberOfColumns = new SimpleIntegerProperty( DEFAULT_NUMBER_OF_COLUMNS );
   
   jobPolicies = new SynchronizedObservableMap<>();
   jobPanelDescriptionProvider = new SimpleObjectProperty<>( JobPanelDescriptionProviders.Default );
   
   detailColour = new SimpleObjectProperty<>( DEFAULT_TEXT_COLOUR );
   detailFont = new SimpleObjectProperty<>( DEFAULT_PROPERTIES_FONT );
}
 
开发者ID:DanGrew,项目名称:JttDesktop,代码行数:22,代码来源:BuildWallConfigurationImpl.java


注:本文中的javafx.beans.property.SimpleIntegerProperty类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。