Codota Logo
GCInterface.dispose
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
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

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • BoxLayout (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now