import prefuse.action.ActionList; //導入依賴的package包/類/** * Updates the layout bounds of the specified instance visualization to the specified bounds, * allowing the visualization to be rendered at a higher/lower resolution. * * @param instanceVis * the instance visualization that will have its layout bounds changed * @param newLayoutBounds * the new layout bounds */public static void updateLayoutBounds( Visualization instanceVis, Rectangle2D newLayoutBounds ){ActionList axisList = (ActionList)instanceVis.getAction( "axis" );AxisLayout axisX = (AxisLayout)axisList.get( 0 );AxisLayout axisY = (AxisLayout)axisList.get( 1 );axisX.setLayoutBounds( newLayoutBounds );axisY.setLayoutBounds( newLayoutBounds );if ( axisList.size() > 2 ) {// Has labels as well.AxisLabelLayout labelX = (AxisLabelLayout)axisList.get( 2 );AxisLabelLayout labelY = (AxisLabelLayout)axisList.get( 3 );labelX.setLayoutBounds( newLayoutBounds );labelY.setLayoutBounds( newLayoutBounds );}}
import prefuse.action.ActionList; //導入依賴的package包/類private ActionList createColorizeActions( Color color ){ActionList list = new ActionList();list.add(new ColorAction(DATA_ID,VisualItem.FILLCOLOR, color.getRGB()));list.add(new ColorAction(DATA_ID,VisualItem.STROKECOLOR, color.darker().getRGB()));return list;}
import prefuse.action.ActionList; //導入依賴的package包/類public TimeOverviewView(JRangeSlider time_window_slider) {super(new Visualization());this.time_window_slider = time_window_slider;time_window_slider.addChangeListener(this);// save the reference to global datathis.d = Data.getData();eth = new FastEdgeTimeHistogram(d); ActionList draw = new ActionList(ActionList.INFINITY,200); draw.add(new RepaintAction()); m_vis.putAction("draw", draw); // TODO: this might have a locking issue m_vis.run("draw");}
import prefuse.action.ActionList; //導入依賴的package包/類public static void updateInstanceVisualizationColors( HVConfig config, Visualization vis ){ColorAction colorize = createInstanceVisualizationColorAction( config );ActionList draw = (ActionList)vis.removeAction( "draw" );draw.remove( 1 ).cancel();draw.add( 1, colorize );vis.putAction( "draw", draw );}
import prefuse.action.ActionList; //導入依賴的package包/類/** * @param histoTable * a histogrammized version of dataTable * @param startingField * the name of the field (column) of the data table * whose histogram is to be shown in the histogram graph. */public HistogramGraph( HistogramTable histoTable, String startingField, Color histogramColor ){super( new Visualization() );m_histoTable = histoTable;startingField = getStartingField( startingField );// --------------------------------------------------------------------// STEP 1: setup the visualized datam_vis.addTable( DATA_ID, m_histoTable );initializeRenderer();// --------------------------------------------------------------------// STEP 2: create actions to process the visual dataActionList colors = createColorizeActions( histogramColor );m_vis.putAction( "color", colors );ActionList draw = new ActionList();draw.add( initializeAxes( startingField ) );draw.add( colors );draw.add( new RepaintAction() );m_vis.putAction( "draw", draw );// --------------------------------------------------------------------// STEP 3: set up a display and ui components to show the visualizationinitializeWindowCharacteristics();// --------------------------------------------------------------------// STEP 4: launching the visualizationm_vis.run( "draw" );}
本文由 貴州做網站公司 整理發布,部分圖文來源于互聯網,如有侵權,請聯系我們刪除,謝謝!
網絡推廣與網站優化公司(網絡優化與推廣專家)作為數字營銷領域的核心服務提供方,其價值在于通過技術手段與策略規劃幫助企業提升線上曝光度、用戶轉化率及品牌影響力。這...
在當今數字化時代,公司網站已成為企業展示形象、傳遞信息和開展業務的重要平臺。然而,對于許多公司來說,網站建設的價格是一個關鍵考量因素。本文將圍繞“公司網站建設價...
在當今的數字化時代,企業網站已成為企業展示形象、吸引客戶和開展業務的重要平臺。然而,對于許多中小企業來說,高昂的網站建設費用可能會成為其發展的瓶頸。幸運的是,隨...
索愛k550怎么樣?索尼K550c/K550i參考價格:1250元優勢1.操作簡單,系統反應迅速。2:擁有14mm的超薄機身。3.具有豐富的視聽娛樂功能。4:支持自動對焦和實用相機功能。劣勢1.屏幕分辨率低。2.設計獨特的按鍵,手感不好。3.作為一款Cyber-shot手機,拍照功能缺乏亮點。索愛w700和k750c哪個好?愛W系列主打音樂播放器,K系列主打照片播放器。兩個系列定位不同,看你是喜歡...
冰糖葫蘆廣場舞原唱?馮曉泉?!侗呛J》是一首由張和平和杜鵬作詞,馮曉泉作曲,馮曉泉演唱的歌曲,于1995年1月1日發行。包括在專輯《龍鳳金歌榜VOL.9》中。歌詞:都說糖葫蘆是酸的,酸中包裹著甜。都說糖葫蘆是甜的,但是表現出來的是里面的酸。糖葫蘆可以和竹簽一起穿,象征幸福和團圓,把幸福和團圓聯系在一起,沒有煩惱和煩惱。如果你站得高,你會看得遠。如果你面對蒼山的召喚,你會怒而心寬,你會年輕二十歲。...
沈陽航空航天大學是什么學校?沈陽航空航天大學(SAU),簡稱“沈航”,是一所以航空航天為特色,以工科為主,包括工學、理學、文學、經濟學、管理學等學科的高等學府。是由教育部、航空工業集團公司和遼寧省、國防科工局和遼寧省共建,空軍依托培養預備役軍官的全國18所地方院校之一。學校創建于1952年,是原航空工業部下屬的六所本科航空院校之一。最初命名為沈陽航空工業學校,歷經東北第一工業學校、沈陽第一工業學校...