Spec-Zone .ru
спецификации, руководства, описания, API
|
001/* 002 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 003 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 004 * 005 * This code is free software; you can redistribute it and/or modify it 006 * under the terms of the GNU General Public License version 2 only, as 007 * published by the Free Software Foundation. Oracle designates this 008 * particular file as subject to the "Classpath" exception as provided 009 * by Oracle in the LICENSE file that accompanied this code. 010 * 011 * This code is distributed in the hope that it will be useful, but WITHOUT 012 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 013 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 014 * version 2 for more details (a copy is included in the LICENSE file that 015 * accompanied this code). 016 * 017 * You should have received a copy of the GNU General Public License version 018 * 2 along with this work; if not, write to the Free Software Foundation, 019 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 020 * 021 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 022 * or visit www.oracle.com if you need additional information or have any 023 * questions. 024 */ 025 026package javafx.scene.transform; 027 028//import com.sun.javafx.event.EventTypeUtil; 029import javafx.event.Event; 030import javafx.event.EventTarget; 031import javafx.event.EventType; 032 033/** 034 * This event is fired on a transform when any of its properties changes. 035 */ 036public final class TransformChangedEvent extends Event { 037 038 private static final long serialVersionUID = 20121107L; 039 040 /** 041 * The only valid EventType for the TransformChangedEvent. 042 */ 043 public static final EventType<TransformChangedEvent> TRANSFORM_CHANGED = 044 new EventType(Event.ANY, "TRANSFORM_CHANGED"); 045// TODO: use EventTypeUtil once it's returned 046// EventTypeUtil.registerInternalEventType(Event.ANY, "TRANSFORM_CHANGED"); 047 048 public static final EventType<TransformChangedEvent> ANY = 049 TRANSFORM_CHANGED; 050 051 /** 052 * Creates a new {@code TransformChangedEvent} with an event type 053 * of {@code TRANSFORM_CHANGED}. The source and target of the event 054 * is set to {@code NULL_SOURCE_TARGET}. 055 */ 056 public TransformChangedEvent() { 057 super(TRANSFORM_CHANGED); 058 } 059 060 /** 061 * Construct a new {@code TransformChangedEvent} with the specified event 062 * source and target. If the source or target is set to {@code null}, 063 * it is replaced by the {@code NULL_SOURCE_TARGET} value. All 064 * TransformChangedEvents have their type set to 065 * {@code TRANSFORM_CHANGED}. 066 * 067 * @param source the event source which sent the event 068 * @param target the event target to associate with the event 069 */ 070 public TransformChangedEvent(Object source, EventTarget target) { 071 super(source, target, TRANSFORM_CHANGED); 072 } 073}