public TextShape(TextView textView){ this.textView = textView; }
//通过TextView的实例进行协调实现 public Point getBottomLeftPoint() { System.out.println("TextShape.getBottomLeftPoint()..."); int coordinateX = textView.getCoordinateX(); int coordinateY = textView.getCoordinateY(); returnnew Point(coordinateX, coordinateY); }
//通过TextView的实例进行协调实现 public Point getTopRightPoint() { System.out.println("TextShape.getTopRightPoint()..."); int coordinateX = textView.getCoordinateX(); int coordinateY = textView.getCoordinateY(); int height = textView.getHeight(); int width = textView.getWidth(); returnnew Point(coordinateX + width, coordinateY + height); } }
//通过所继承的TextView,进行协调实现 public Point getBottomLeftPoint() { System.out.println("TextShape2.getBottomLeftPoint()..."); int coordinateX = getCoordinateX(); int coordinateY = getCoordinateY(); returnnew Point(coordinateX, coordinateY); }
//通过所继承的TextView,进行协调实现 public Point getTopRightPoint() { System.out.println("TextShape2.getTopRightPoint()..."); int coordinateX = getCoordinateX(); int coordinateY = getCoordinateY(); int height = getHeight(); int width = getWidth(); returnnew Point(coordinateX + width, coordinateY + height); }
1、java.lang.IllegalStateException: Class invariant violation
at org.apache.log4j.LogManager.getLoggerRepository(LogManager.java:199)at org.apache.log4j.LogManager.getLogger(LogManager.java:228)
at o
hadoop jps出现process information unavailable提示解决办法
jps时出现如下信息:
3019 -- process information unavailable3053 -- process information unavailable2985 -- process information unavailable2917 --
<?php
class Image{
private $path;
function __construct($path='./'){
$this->path=rtrim($path,'/').'/';
}
//水印函数,参数:背景图,水印图,位置,前缀,TMD透明度
public function water($b,$l,$pos