congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
GCInterface.dispose
Code IndexAdd Tabnine to your IDE (free)

How to use
dispose
method
in
org.pentaho.di.core.gui.GCInterface

Best Java code snippets using org.pentaho.di.core.gui.GCInterface.dispose (Showing top 3 results out of 315)

origin: pentaho/pentaho-kettle

public void buildTransformationImage() {
 Point max = transMeta.getMaximum();
 Point thumb = getThumb( area, max );
 offset = getOffset( thumb, area );
 // First clear the image in the background color
 gc.setBackground( EColor.BACKGROUND );
 gc.fillRectangle( 0, 0, area.x, area.y );
 // If there is a shadow, we draw the transformation first with an alpha setting
 //
 if ( shadowSize > 0 ) {
  shadow = true;
  gc.setTransform( translationX, translationY, shadowSize, magnification );
  gc.setAlpha( 20 );
  drawTrans( thumb );
 }
 // Draw the transformation onto the image
 //
 shadow = false;
 gc.setTransform( translationX, translationY, 0, magnification );
 gc.setAlpha( 255 );
 drawTrans( thumb );
 gc.dispose();
}
origin: pentaho/pentaho-kettle

public void drawJob() {
 Point max = jobMeta.getMaximum();
 Point thumb = getThumb( area, max );
 offset = getOffset( thumb, area );
 gc.setBackground( EColor.BACKGROUND );
 if ( hori != null ) {
  hori.setThumb( thumb.x );
 }
 if ( vert != null ) {
  vert.setThumb( thumb.y );
 }
 // If there is a shadow, we draw the transformation first with an alpha
 // setting
 //
 if ( shadowSize > 0 ) {
  gc.setAlpha( 20 );
  gc.setTransform( translationX, translationY, shadowSize, magnification );
  shadow = true;
  drawJobElements();
 }
 // Draw the transformation onto the image
 //
 gc.setAlpha( 255 );
 gc.setTransform( translationX, translationY, 0, magnification );
 shadow = false;
 drawJobElements();
 gc.dispose();
}
origin: pentaho/pentaho-kettle

public Image getTransformationImage( Device device, int x, int y, float magnificationFactor ) {
 GCInterface gc = new SWTGC( device, new Point( x, y ), iconsize );
 int gridSize =
  PropsUI.getInstance().isShowCanvasGridEnabled() ? PropsUI.getInstance().getCanvasGridSize() : 1;
 TransPainter transPainter =
  new TransPainter( gc, transMeta, new Point( x, y ), new SwtScrollBar( hori ), new SwtScrollBar( vert ),
   candidate, drop_candidate, selectionRegion, areaOwners, mouseOverSteps,
   PropsUI.getInstance().getIconSize(), PropsUI.getInstance().getLineWidth(), gridSize,
   PropsUI.getInstance().getShadowSize(), PropsUI.getInstance()
   .isAntiAliasingEnabled(), PropsUI.getInstance().getNoteFont().getName(), PropsUI.getInstance()
   .getNoteFont().getHeight(), trans, PropsUI.getInstance().isIndicateSlowTransStepsEnabled() );
 transPainter.setMagnification( magnificationFactor );
 transPainter.setStepLogMap( stepLogMap );
 transPainter.setStartHopStep( startHopStep );
 transPainter.setEndHopLocation( endHopLocation );
 transPainter.setNoInputStep( noInputStep );
 transPainter.setEndHopStep( endHopStep );
 transPainter.setCandidateHopType( candidateHopType );
 transPainter.setStartErrorHopStep( startErrorHopStep );
 transPainter.setShowTargetStreamsStep( showTargetStreamsStep );
 transPainter.buildTransformationImage();
 Image img = (Image) gc.getImage();
 gc.dispose();
 return img;
}
org.pentaho.di.core.guiGCInterfacedispose

Popular methods of GCInterface

  • getImage
  • textExtent
  • drawImage
  • drawJobEntryIcon
  • drawLine
  • drawPoint
  • drawPolygon
  • drawRectangle
  • drawRoundRectangle
  • drawStepIcon
  • drawText
  • fillGradientRectangle
  • drawText,
  • fillGradientRectangle,
  • fillPolygon,
  • fillRectangle,
  • fillRoundRectangle,
  • getAlpha,
  • getArea,
  • getDeviceBounds,
  • getImageBounds

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Permission (java.security)
    Legacy security code; do not use.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now